Firewall iptables, what is the rule to allow server additional ips?


Well-Known Member
Sep 9, 2010
I hope i put this in the right subforum, otherwise please move or delete it

I have 5 ips

i already install openvz & openvz webpanel in main ip
then create a vps with ip

i cant open in browser address & ssh, but if i disable iptables firewall, i can open it
service iptables save
service iptables stop
chkconfig iptables off
so i need to enable iptables firewall, what is the rule so i can to allow the server additional ips ( in /etc/sysconfig/iptables ?

i tried these but still not right
-A INPUT -s -d -p tcp -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --s -j ACCEPT
-A INPUT -i eth0 -m iprange --src-range -j ACCEPT

please help guys
Last edited: