How to route traffic through the VPN
CHUONG K. NGUYEN – BSc., MCSEx2, MCSAx2, MCP, MCTS, MCITP, CCNA
After connecting to the remote Linux PPTP VPN, I cannot browse the Internet. The following commands are entered into the PPTP Linux box to allow that to happen.
Assume that the LAN subnet is 172.16.16.0/24. Enter the following commands to troubleshoot and to modify the routing table.
dmesg
cat /var/log/messages
more /var/log/syslog
iptables -t nat
iptables -L
more /etc/network/interfaces
iptables -t NAT -A postrouting -s 172.16.16.0/24 -o p33p1 -j MASQUERADE
iptables -L
Now you will be able to browse through the VPN connection.