02.01.2016 Views

Linux

linux_admin_text-1.0.0_2

linux_admin_text-1.0.0_2

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6 <br />

<br />

$ModLoad TCP $InputTCPServerRun<br />

TCP <br />

[root@server ~]# vi /etc/rsyslog.conf<br />

<br />

# Provides TCP syslog reception<br />

$ModLoad imtcp #<br />

$InputTCPServerRun 514 #<br />

rsyslog rsyslogd TCP 514 <br />

<br />

[root@server ~]# service rsyslog restart<br />

: [ OK ]<br />

: [ OK ]<br />

[root@server ~]# lsof -i:514<br />

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME<br />

rsyslogd 24138 root 1u IPv4 107209 0t0 TCP ∗:shell (LISTEN)<br />

rsyslogd 24138 root 3u IPv4 107202 0t0 UDP ∗:syslog<br />

rsyslogd 24138 root 4u IPv6 107203 0t0 UDP ∗:syslog<br />

rsyslogd 24138 root 8u IPv6 107210 0t0 TCP ∗:shell (LISTEN)<br />

shell /etc/services <br />

<br />

# grep 514 /etc/services<br />

shell 514/tcp cmd # no passwords used<br />

syslog 514/udp<br />

<br />

iptables TCP 514 <br />

<br />

6.1.12 syslog iptables <br />

syslog iptables TCP UDP 514 <br />

iptables <br />

www.lpi.or.jp 175 (C) LPI-Japan

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!