OpenVZ Forum


Home » General » Support » IPtables on Centos 4.2 (host system)
Re: IPtables on Centos 4.2 (host system) [message #2919 is a reply to message #2885] Thu, 27 April 2006 18:12 Go to previous messageGo to previous message
kenchua is currently offline  kenchua
Messages: 4
Registered: April 2006
Junior Member
Hi

I copied the IPTABLES from the host node and tried to use it on the vps. It prompted the error below. Attached is the set of rules for IPTABLES.

[root@webvps ~]# /etc/init.d/iptables restart
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: mangle filter [ OK ]
Applying iptables firewall rules: iptables-restore: line 17 failed
[FAILED]


[root@webvps ~]# cat /etc/sysconfig/iptables
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Clock Issues
Next Topic: Warning: Unable to open an initial console
Goto Forum:
  


Current Time: Wed Aug 27 17:44:10 GMT 2025

Total time taken to generate the page: 0.11455 seconds