======================================= FreeBSD pptp vpn client ======================================= by o1 If the remote network is "common" such as 192.168.0.0/24 then you should chose someing more unique to avoid routing conflicts. FreeBSD walnut 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64 connect to remote pptp vpn Remote PPTP Server Name: office Remote PUBLIC IP: 111.222.333.4 Remote LAN: 192.168.77.0/24 ======================================= install pptpclient --------------------------------------- root@walnut:~ # pkg install pptpclient root@walnut:~ # echo 'gateway_enable="YES"' >> /etc/rc.conf root@walnut:~ # sysctl net.inet.ip.forwarding=1 ======================================= /etc/resolvconf.conf (optional) --------------------------------------- resolvconf=NO ======================================= /etc/ppp/ppp.conf --------------------------------------- # add these lines for each remote pptp server name office: set authname user_name <---- your username set authkey pass_word <---- your password set timeout 0 set ifaddr 0 0 set mppe 128 * disable ipv6cp disable dns <---- do not allow ppp to touch /etc/resolv.conf add 192.168.77.0/24 HISADDR ======================================= connect --------------------------------------- root@walnut:~ # ppp 111.222.333.4 office --------------------------------------- # ctrl-c to disconnect ======================================= done =======================================