[Users] Got V7 NAT for containers figured out... sorta

Scott Dowdle dowdle at montanalinux.org
Wed Jan 27 17:17:46 PST 2016


Greetings,

So following this wiki page:
https://wiki.openvz.org/Using_NAT_for_container_with_private_IPs

I noticed that /etc/modprobe.d/parallels.conf needed to be edited to change ip_conntrack_disable_ve0=1 to ip_conntrack_disable_ve0=0.

Then my SNAT rule worked:
/usr/sbin/iptables -t nat -A POSTROUTING -s 192.168.0.1/24 -o br0 -j SNAT --to {host-ip-address}

I put that rule in /etc/rc.local and rebooted... but it doesn't seem to take affect unless manually run post boot.

Anyway, it sorta works now.

TYL,
-- 
Scott Dowdle
704 Church Street
Belgrade, MT 59714
(406)388-0827 [home]
(406)994-3931 [work]


More information about the Users mailing list