Ip6tables service bug

kiti

Member
Sep 16, 2015
19
3
53
france
cPanel Access Level
Root Administrator
I wanted to warn the Cpanel community about a Centos 7.4 bug related to Ip6tables

Bug 1499367 – ip6tables.service unit file has invalid value for After=

Check 'systemctl status ip6tables' if you don't see the following errors:

systemctl status ip6tables

[/usr/lib/systemd/system/ip6tables.service:3] Failed to add dependency on syslog.target,iptables.service, ignoring: Invalid argument

Oct 25 15:25:31 ns1.XXXX.nl systemd[1]: [/usr/lib/systemd/system/ip6tables.service:3] Failed to add dependency on syslog.target,iptables.service, ignoring: Invalid argument

Oct 26 03:43:07 ns1.XXXXX.nl systemd[1]: [/usr/lib/systemd/system/ip6tables.service:3] Failed to add dependency on syslog.target,iptables.service, ignoring: Invalid argument

Oct 26 03:43:07 ns1.XXXX.nl systemd[1]: [/usr/lib/systemd/system/ip6tables.service:3] Failed to add dependency on syslog.target,iptables.service, ignoring: In


To remove those errors:
go to
nano /usr/lib/systemd/system/ip6tables.service

replace
After=syslog.target,iptables.service
by
After=syslog.target iptables.service

systemctl daemon-reload
systemctl restart ip6tables
systemctl status ip6tables