What is the Syslog daemon? Can iptables be activated?

i tried to change etc/syslog.conf

but how do i restart syslog? I cant find the daemon.
Same for iptables, there isnt an entry on chkconfig.

I’ll risk being an idiot here because I’m not sure what you’re asking and it’s pretty likely that your Linux skills are way beyond mine, but: sudo systemctl restart syslog



thx, no, thats why i ask there is no daemon named syslog

Hi, it’s not very obvious, I must admit. But you can usually tell by looking at what is started by the init system:

$ ls /etc/rc5.d/S*
/etc/rc5.d/S01bootlogs		 /etc/rc5.d/S01motd   /etc/rc5.d/S01triggerhappy  /etc/rc5.d/S02dbus	      /etc/rc5.d/S04plymouth   /etc/rc5.d/S04stop-bootlogd
/etc/rc5.d/S01ifplugd		 /etc/rc5.d/S01samba  /etc/rc5.d/S01wd_keepalive  /etc/rc5.d/S02winbind       /etc/rc5.d/S04rc.local   /etc/rc5.d/S04watchdog
/etc/rc5.d/S01inetutils-syslogd  /etc/rc5.d/S01sudo   /etc/rc5.d/S02cron	  /etc/rc5.d/S03avahi-daemon  /etc/rc5.d/S04rmnologin

In the case of syslog it’s:

$ service restart inetutils-syslogd
[ ok ] Restarting system log daemon: syslogd.

iptables is a command, not a service so it’s not as simple. But you can flush the existing rules:

iptables -P INPUT ACCEPT
iptables -F
iptables -X

And then reload our saved rules:

iptables-restore < /etc/firewall/musicbox_iptables

I hope this helps.

1 Like

I love it when I learn new things. Thanks!