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 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 please help guys
Which server are you modifying the iptables configuration, the main host (1.1.1.1) or the container (1.1.1.2)? Regards, Chris
Hi, Try this: iptables -I INPUT -p tcp --dport 22 -j ACCEPT iptables -I INPUT -p tcp --dport 80 -j ACCEPT Code (markup): I believe your previous rules would not have worked as you are specifying the source IP as 1.1.1.2, but it is actually the destination. It is much easier to just open the ports required without specifying the IP address.