[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] VPN / NAT question from meeting
- Subject: [ale] VPN / NAT question from meeting
- From: glallen01 at gmail.com (George Allen)
- Date: Thu, 18 Oct 2012 22:14:13 -0400
So, there was a question about sharing a VPN connection with a LAN
through NAT. I believe something like this should work:
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -A FORWARD -i eth0 -d 10.0.0.0/8 -j ACCEPT
iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
sysctl net.netfilter.nf_conntrack_acct=1
as referenced here: http://www.bloovis.com/wordpress/?p=219
/break/
I haven't read through it all, but this looks interesting, with regard
to building one's own tunnel:
http://www.mad-hacking.net/documentation/linux/networking/ipsec/nat-vpn.xml
Also, the Linux HOWTOs are kindof dated, but they're still good
reading and reference:
http://www.tldp.org/HOWTO/VPN-Masquerade-HOWTO.html
http://www.tldp.org/HOWTO/NET3-4-HOWTO.html
http://www.tldp.org/HOWTO/Networking-Overview-HOWTO.html
Hope this helps,
-George