Ik heb bij digitalocean een servertje draaien. Daar heb ik pptp vpn op werkende gekregen, maar nu wil ik dat als ik online ga het ip van server getoond wordt, om dus oa aan amerikaanse diensten zoals netflix te kunnen zonder te moeten prutsen met dns of weetikveel.
Nu pptp werkt, ik kan er op connecteren, maar het ip gedoe heb ik nog niet aan de praat gekregen.
Ik heb volgende handleiding gevolgd, maar zonder succes: https://www.digitalocean.com/community/ ... -with-pptp
Mijn iptables is als volgt:
Code: Selecteer alles
root@vpnus:~# iptables -L -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- lo any anywhere anywhere
33763 5996K ACCEPT all -- any any anywhere anywhere ctstate RELATED,ESTABLISHED
1849 96716 ACCEPT tcp -- any any anywhere anywhere tcp dpt:ssh
6 272 ACCEPT tcp -- any any anywhere anywhere tcp dpt:1723
6 280 ACCEPT tcp -- any any anywhere anywhere tcp dpt:http
290 20243 DROP all -- any any anywhere anywhere
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- ppp0 eth0 anywhere anywhere state RELATED,ESTABLISHED
0 0 ACCEPT all -- eth0 ppp0 anywhere anywhere state RELATED,ESTABLISHED
Chain OUTPUT (policy ACCEPT 49348 packets, 8199K bytes)
pkts bytes target prot opt in out source destination
Code: Selecteer alles
root@vpnus:~# iptables -t nat -L -v
Chain PREROUTING (policy ACCEPT 2131 packets, 116K bytes)
pkts bytes target prot opt in out source destination
Chain INPUT (policy ACCEPT 1860 packets, 97228 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 1834 packets, 134K bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
1834 134K MASQUERADE all -- any eth0 anywhere anywhere