September 9, 2015

VPN

http://www.vixual.net/blog/archives/32

 

iptables –flush POSTROUTING –table nat
iptables –flush FORWARD
iptables -A INPUT -p tcp -m tcp –dport 1723 -j ACCEPT
iptables -A INPUT -p gre -j ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.240.0/24 -o eth0 -j MASQUERADE
service iptables save
chkconfig iptables on