[nSLUG] OpenVPN

Oliver Baltzer oliver at hytek.org
Sat Nov 28 22:22:44 AST 2009


Oliver Baltzer wrote:
> or you need to setup masquerading / NAT between the VPN network and the LAN:
> # iptables -t nat -A -s 10.0.0.0/8 -d 192.168.1.0/24 -j MASQUERADE
> or
> # iptables -t nat -A -s 10.0.0.0/8 -o eth0 -j MASQUERADE

Oops, forgot something:

# iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -d 192.168.1.0/24 -j
MASQUERADE

or

# iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -o eth0 -j MASQUERADE

Oliver



More information about the nSLUG mailing list