OpenVZ Forum


Home » General » Support » OpenVZ/Centos Port FIltering (Host Node)
OpenVZ/Centos Port FIltering (Host Node) [message #47701] Tue, 28 August 2012 14:14
papa2ae is currently offline  papa2ae
Messages: 3
Registered: August 2011
Junior Member
On my openvz host node, I have blocked port 25 using the following command ..

iptables -A FORWARD -j DROP -p tcp --destination-port 25

This is fine, but it blocks the port for all the containers.

Therefore, I have tried something like this, although it is listed in iptables -L, the connection cant be made. (Tried to check via telnet)

iptables -I FORWARD --source 7.5.4.7 --protocol tcp --destination-port 25

OR

iptables -I FORWARD --source 7.5.4.7 --protocol tcp --destination-port 25 -j ACCEPT

Any idea what is wrong?

PS. The block command is in the end, and nothing is below it. So this shouldn't be a problem.

Thanks
papa2ae
Previous Topic: Restart Issue on some containers
Next Topic: private on NFS and group privilege problem
Goto Forum:
  


Current Time: Sat Aug 02 21:49:10 GMT 2025

Total time taken to generate the page: 1.02939 seconds