Praji’s Weblog

Welcome to praji’s world

Enable NAT support for VE

without comments

First check whether kernel iptables_nat module is loaded in the host server.

VE0_# lsmod | grep ^iptable_nat

If not, use the below given command

modprobe iptable_nat

To enable iptable_nat in VE
vzctl set <VEID> –iptables iptable_nat –save

# restart your VE
VE0_# vzctl restart <VEID>

# check it
VE0_# vzctl exec <VEID> iptables -t nat -L -v –line-number

Written by praji

September 30, 2008 at 9:40 pm

Leave a Reply