Firewall iptables, what is the rule to allow server additional ips?
I hope i put this in the right subforum, otherwise please move or delete it
I have 5 ips
1.1.1.1
1.1.1.2
1.1.1.3
1.1.1.4
1.1.1.5
i already install openvz & openvz webpanel in main ip
then create a vps with ip 1.1.1.2
i cant open 1.1.1.2 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 (1.1.1.2-1.1.1.5) in /etc/sysconfig/iptables ? i tried these but still not right -A INPUT -s 1.1.1.2 -j ACCEPT -A INPUT -s 1.1.1.2 -d 1.1.1.5 -p tcp -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --s 1.1.1.2 -j ACCEPT -A INPUT -i eth0 -m iprange --src-range 1.1.1.2-1.1.1.5 -j ACCEPT
please help guys
so i need to enable iptables firewall, what is the rule so i can to allow the server additional ips (1.1.1.2-1.1.1.5) in /etc/sysconfig/iptables ? i tried these but still not right -A INPUT -s 1.1.1.2 -j ACCEPT -A INPUT -s 1.1.1.2 -d 1.1.1.5 -p tcp -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --s 1.1.1.2 -j ACCEPT -A INPUT -i eth0 -m iprange --src-range 1.1.1.2-1.1.1.5 -j ACCEPT
please help guys
-
I'm not sure what this has to do with cPanel specifically, you don't have cPanel installed here. You might consult the webpanel support for help with this. 0
Please sign in to leave a comment.
Comments
1 comment