Re: IP table Restore

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 11/24/2015 10:18 PM, Siva Prasad Nath wrote:
If possible advice me for below error.

[root@ns1 sysconfig]# iptables-restore < /etc/sysconfig/iptables
iptables-restore: line 2 failed

Thanks in advance.

If I recall correctly, you are using CentOS 7? With 7, you really should be using firewalld rather than manually writing iptables rules. see the firewall section of the RHEL 7 networking manual I previously linked, twice.

otherwise, which part of that error is unclear? check line 2 of /etc/sysconfig/iptables, it has a syntax error. there may be more information in the system logs, see chapter 20, 'logging' https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/ch-Viewing_and_Managing_Log_Files.html


--
john r pierce, recycling bits in santa cruz

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux