How to dial PPTP vpn from a FreeBSD box?
This is useful when you want to connect remote “Local” network through a PPTP vpn. First, install the ports/net/pptpclient, by doing:
cd /usr/ports/net/pptpclient
make all install clean && rehash
The next step is to set it up.
cd /etc/ppp
mv ppp.conf ppp.conf.original
cp usr/local/share/examples/pptpclient/ppp.conf .
chmod 640 ppp.conf
vi ppp.conf
Please note that the suggested steps above will remove all your existing ppp configurations.
Here we do some initial setup:
\[Your username here\]\[Your password here\]\[Destination address here\]HISADDR
alias enable yes
HISADDR here. When VPN is dialed up, HISADDR is replaced with PPP protocol with the remote gateway(typically, the server) address.
\[VPN Server\]VPN. Enjoy!
Note that if your case is to replace the default gateway, you must manually have VPN server route set.