|
Getting FreeBSD to connect to a Windows VPN using PPTP (who designed that protocol anyway?) is not the most pleasant experience, but at least it’s doable. The most competent console tool for this in FreeBSD is probably Mpd5. It’s quite easy to work with but you’ll need to get all the details right otherwise it just won’t work. The following mpd.conf configuration file worked for me and allowed me to successfully connect to a Windows VPN. One of the keys were to disable EAP, this particular VPN server just plain refused to work with it enabled
Save it to a file, say mpd.conf in /usr/local/etc/mpd.conf and simply run mpd5 mpd.conf and with some luck you’ll be connected the the VPN. The order of the statements are important. As they only apply to the current selected link (create link) or bundle (create bundle). Keep this in mind when editing. Windows logon nameIf you’re connecting to a Windows network you’ll probably need to use “DOMAIN\\username” as the authname (with the quotes and double backslash). Firewall and NAT issuesThe PPTP protocol is far from ideal. If you’re behind NAT chances are you won’t be able to do multiple PPTP connections to the same VPN server from within your LAN. You’ll also need to allow the GRE protocol through, with Free/OpenBSD pf (packet filter) the following line is enough (you still won’t be able to do simultaneous connections to the same server though) pass out on $ext_if proto gre from ($ext_if) to any keep state Replace $ext_if with your external network interface.
One Response to “PPTP from FreeBSD”
Leave a Reply
|
Entries (RSS)
salamo alikom ,
i get this wiht your configuration you set :
Multi-link PPP for FreeBSD, by Archie L. Cobbs.
Based on iij-ppp, by Toshiharu OHNO.
mpd: pid 42539, version 3.18 (root@localhost xx:xx xx-xxx-xxx)
mpd: can’t read configuration for “mpd.conf”
mpd: process 42539 terminated