OpenVZ Forum - RDF feed
type: channel
items: iptables problems
items: Re: iptables problems

iptables problems
type: item
description: 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
creator: pablov2
date: 2011-12-29T13:03:09-00:00

Re: iptables problems
type: item
description: Hi, you can try checking out /etc/vz/vz.conf for IPTABLES and IPTABLES_MODULES options.
creator: Artem
date: 2011-12-31T14:17:09-00:00