Hello all,
I've configured pptpd to allow incoming VPN connections from the native Windows VPN clients. I wish to let these VPN clients connect to the Internet through the ppp connection on the Linode. I am aware that SSH tunneling is usually the defacto standard for this, however, VPN seems to be the only way to redirect the traffic from flash player on Windows.
I've setup what I believe to be the appropriate routes on iptables, but, Internet browsing behavior is erratic. I'm hoping that there's just something wrong with my iptables rules--any advice on troubleshooting?
Thanks.
Code:
[root@linode ppp]# iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
DROP all -- anywhere anywhere state INVALID
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere icmp echo-request state NEW
OPEN-UDP udp -- anywhere anywhere state NEW
OPEN-TCP tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN state NEW
REJECT udp -- anywhere anywhere reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere reject-with tcp-reset
REJECT all -- anywhere anywhere reject-with icmp-proto-unreachable
ACCEPT tcp -- anywhere anywhere tcp dpt:1723
ACCEPT gre -- anywhere anywhere
Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
TCPMSS tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN TCPMSS clamp to PMTU
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
fw-interfaces all -- anywhere anywhere
fw-open all -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-host-unreachable
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain OPEN-TCP (1 references)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:www
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:1723
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp-data
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp
Chain OPEN-UDP (1 references)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
Chain fw-interfaces (1 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Chain fw-open (1 references)
target prot opt source destination
[root@linode ppp]# iptables -t nat -L -n
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- 172.16.0.0/12 0.0.0.0/0
Chain OUTPUT (policy ACCEPT)
target prot opt source destination