openvz enable nat for containers

vi /etc/vz/vz.conf
IPTABLES=”ipt_REJECT ipt_recent ipt_owner ipt_REDIRECT ipt_tos ipt_TOS ipt_LOG ip_conntrack
ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp”

modprobe iptable_nat
modprobe ip_nat

service vz restart

Leave a Reply

Your email address will not be published. Required fields are marked *