[ale] VPN / NAT question from meeting
Scott Plante
sp at scottplante.com
Fri Oct 19 14:13:30 EDT 2012
Thanks!
----- Original Message -----
From: "George Allen" <glallen01 at gmail.com>
To: "Atlanta Linux Enthusiasts" <ale at ale.org>, sp at scottplante.com
Sent: Thursday, October 18, 2012 10:14:13 PM
Subject: [ale] VPN / NAT question from meeting
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
_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20121019/db12d543/attachment.html
More information about the Ale
mailing list