OpenVZ Forum


Home » General » Support » iptables problems
iptables problems [message #44761] Thu, 29 December 2011 13:03 Go to next message
pablov2 is currently offline  pablov2
Messages: 7
Registered: May 2011
Junior Member
I cant apply some rules of iptables. I think I have checked all the possibles erros but I cant found the problem.

In a container I get this

root@zentyal2:~# iptables -t nat -A PREROUTING -p tcp --dport 8080 -j DNAT --to-destination 10.30.105.212:8080
root@zentyal2:~# iptables -t nat -A POSTROUTING -j MASQUERADE
iptables: No chain/target/match by that name.



In host I have this modules activated

host:~# lsmod | egrep "xt_tcpudp|ip_conntrack|xt_state"
xt_tcpudp               2319  31 
xt_state                1303  54 
nf_conntrack           46563  10 nf_nat_irc,nf_nat_ftp,iptable_nat,nf_nat,xt_helper,xt_state,xt_conntrack,nf_conntrack_irc,nf_conntrack_ftp,nf_conntrack_ipv4
x_tables               13117  21 ip6t_REJECT,ip6_tables,xt_tcpudp,ipt_REDIRECT,iptable_nat,xt_helper,xt_state,xt_conntrack,xt_length,ipt_LOG,xt_hl,xt_tcpmss,xt_TCPMSS,ipt_REJECT,xt_DSCP,xt_dscp,xt_multiport,xt_limit,ip_tables,xt_MARK,xt_mark


Any idea or how can I test where is the problem? Thxx
Re: iptables problems [message #44773 is a reply to message #44761] Sat, 31 December 2011 14:17 Go to previous message
Artem is currently offline  Artem
Messages: 9
Registered: December 2011
Location: Belarus, Minsk
Junior Member
Hi,

you can try checking out /etc/vz/vz.conf for IPTABLES and IPTABLES_MODULES options.
Previous Topic: Broken memory reporting since moving containers via vzmigrate
Next Topic: recalculate quotas online
Goto Forum:
  


Current Time: Mon Sep 16 23:26:03 GMT 2024

Total time taken to generate the page: 0.04882 seconds