例如 [pc在國家A] -> [isp在國家A] -> [vpn-server在國家B] -> [isp在國家B]
-> [internet...]
只要在pptp server 那邊加個 nat 就行,例如:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o 10.0.0.1 -j MASQUERADE
再加上dns 的設定(ubuntu server 做pptp server 的話):
sudo vi /etc/ppp/ppptp-options
加入 ms-dns <dns address>
0 comments:
Post a Comment