Skip to Content
Mastering Linux Security and Hardening - Second Edition
book

Mastering Linux Security and Hardening - Second Edition

by Donald A. Tevault
February 2020
Intermediate to advanced
666 pages
15h 45m
English
Packt Publishing
Content preview from Mastering Linux Security and Hardening - Second Edition

Creating an stunnel connection on CentOS 8 – client side

In this procedure, we'll configure a CentOS 8 machine to send its logs to the log server (it doesn't matter whether the log server is running on CentOS or Ubuntu):

  1. Install stunnel:
sudo dnf install stunnel
  1. In the /etc/stunnel directory, create the stunnel.conf file with the following contents:
client=yesfips=yes[speak to server]accept=127.0.0.1:6514connect=192.168.0.161:30000
In the connect line, substitute the IP address of your own log server for the one you see here.
  1. Enable and start the stunnel daemon:
sudo systemctl enable --now stunnel
  1. At the bottom of the /etc/rsyslog.conf file, look for this line:
Target="192.168.0.161" Port="514" Protocol="tcp")

Change it to this:

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Linux Security and Hardening - Third Edition

Mastering Linux Security and Hardening - Third Edition

Donald A. Tevault
UNIX and Linux System Administration Handbook, 5th Edition

UNIX and Linux System Administration Handbook, 5th Edition

Trent R. Hein, Evi Nemeth, Garth Snyder, Ben Whaley, Dan Mackin

Publisher Resources

ISBN: 9781838981778Supplemental Content