OpenVZ Forum


Home » General » Support » problems with iptables inside a VPS
problems with iptables inside a VPS [message #3932] Sat, 24 June 2006 15:43 Go to next message
dggonz is currently offline  dggonz
Messages: 1
Registered: June 2006
Junior Member
hi

i'm having troubles setting up some firewall rules inside a VPS. Here is the rule that i'm trying to set:
iptables -A OUTPUT --proto tcp -s 192.168.1.20 -d 0/0 --dport 22
the result is:
iptables: No chain/target/match by that name


If i run the same command on the hardware node there are no problem, what am i doing wrong? can somebody help me?

Thanks a lot,
Diego Gonzalez

PD: by the way, i didn't set anything through vzctl set --iptables, in my understanding this should let all the modules be accessed and used from the VPS, is that right?
Re: problems with iptables inside a VPS [message #3938 is a reply to message #3932] Sun, 25 June 2006 07:20 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

this is very simple rule which uses iptables_filter only and it should work.

Please, check:
1. that you have iptables modules loaded before VPS start.
2. check your default iptables modules mask in /etc/sysconfig/vz global config.

P.S. it sets not all modules, it sets default set of modules.


http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: *SOLVED* process owner?
Next Topic: *SOLVED* second level quota vps1->vps2?
Goto Forum:
  


Current Time: Sat Jul 20 18:33:49 GMT 2024

Total time taken to generate the page: 0.02309 seconds