Hi,
I applied a set of iptables rules and started iptables without any trouble. But after i edited the rules and restarting it, it gives me "Applying iptables firewall rules: iptables-restore: line 35 failed". I looked into /etc/sysconfig/ for the mentioned file and it was not found. I did a quick check and locate only found /sbin/iptables-restore. I had done updatedb before using locate.
Any ideas?
thanks
On 13/06/2007, at 8:59 AM, CentOS List wrote:
I applied a set of iptables rules and started iptables without any trouble. But after i edited the rules and restarting it, it gives me "Applying iptables firewall rules: iptables-restore: line 35 failed". I looked into /etc/sysconfig/ for the mentioned file and it was not found. I did a quick check and locate only found /sbin/ iptables-restore. I had done updatedb before using locate.
All your firewall rules are in the file: /etc/sysconfig/iptables. Check on line 35 of that file.
-- Steven Haigh
Email: netwiz@crc.id.au Web: http://www.crc.id.au Phone: (03) 9017 0597 - 0404 087 474
I applied a set of iptables rules and started iptables without any trouble. But after i edited the rules and restarting it, it gives me "Applying iptables firewall rules: iptables-restore: line 35 failed". I looked into /etc/sysconfig/ for the mentioned file and it was not found. I did a quick check and locate only found /sbin/ iptables-restore. I had done updatedb before using locate.
All your firewall rules are in the file: /etc/sysconfig/iptables. Check on line 35 of that file.
Line 35 COMMIT
regards
Around 12:22am on Wednesday, June 13, 2007 (UK time), CentOS List scrawled:
Line 35 COMMIT
What are the few lines before that?
Steve
Line 35 COMMIT
What are the few lines before that?
-A RH-Firewall-1-INPUT -p tcp -m tcp -i eth0 -m state --dport 139 --state NEW -j ACCEPT -A RH-Firewall-1-INPUT -p tcp -m udp -i eth0 -m state --dport 139 --state NEW -j ACCEPT -A RH-Firewall-1-INPUT -p tcp -m tcp -i eth1 -m state --dport 139 --state NEW -j DROP -A RH-Firewall-1-INPUT -p tcp -m udp -i eth1 -m state --dport 139 --state NEW -j DROP -A RH-Firewall-1-INPUT -p tcp -m tcp -m state --dport 6000:6010 --state NEW -j ACCEPT -A RH-Firewall-1-INPUT -p udp --dport 6277 -d 204.152.184.184 -j ACCEPT -A RH-Firewall-1-INPUT -p udp --dport 6277 -d 192.188.61.3 -j ACCEPT -A RH-Firewall-1-INPUT -p udp -m udp --dport 24441 -j ACCEPT -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited COMMIT
Around 11:59pm on Tuesday, June 12, 2007 (UK time), CentOS List scrawled:
Hi,
I applied a set of iptables rules and started iptables without any trouble. But after i edited the rules and restarting it, it gives me "Applying iptables firewall rules: iptables-restore: line 35 failed". I looked into /etc/sysconfig/ for the mentioned file and it was not found. I did a quick check and locate only found /sbin/iptables-restore. I had done updatedb before using locate.
Any ideas?
What is line 35 of /etc/sysconfig/iptables?
Steve