Praji’s Weblog

Welcome to praji’s world

Enable NAT support for VE

leave a comment »

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

Advertisements

Written by praji

September 30, 2008 at 9:40 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: