Troels Kofoed Jacobsen’s blog


pptp vpn from FreeBSD
July 5, 2009, 12:36 am
Filed under: FreeBSD | Tags: , , , , , , ,

I need to connect to work using pptp vpn from my FreeBSD laptop. This can be done using mpd (version 5, in net/mpd5). I just created the sections startup: and default: and copied pptp_client from /usr/local/etc/mpd5/mpd.conf, all into /usr/local/etc/mpd5/mpd.conf. As the server at work is MS i also merged the MPPE lines from pptp_vpn. The final result is the following:


startup:

default:
load pptp_client

pptp_client:
#
# PPTP client: only outgoing calls, auto reconnect,
# ipcp-negotiated address, one-sided authentication,
# default route points on ISP's end
#

create bundle static B1
set iface route 1.2.3.146/28
set ipcp ranges 0.0.0.0/0 0.0.0.0/0
set bundle enable compression
set ccp yes mppc
set mppc yes e40
set mppc yes e128
set bundle enable crypt-reqd
set mppc yes stateless

create link static L1 pptp
set link action bundle B1
set auth authname ********
set auth password *****'**
set link max-redial 0
set link mtu 1460
set link keep-alive 20 75
set pptp peer 1.2.3.4
set pptp disable windowing
open

One thing to note is that I do not use “set iface route default” as in the sample conf file. This is because the work lan and wan has the same ip-range even tough some addresses are only on the lan and others are only on the internet. If the lan part of the network had a more traditional layout (as 192.168.1.*) the default should work…


1 Comment so far
Leave a comment

[...] have also configured a pptp vpn to my work. A description of this can be found here. Leave a Comment No Comments Yet so far Leave a comment RSS feed for comments on this post. [...]

Pingback by FreeBSD: Networking. LAN and Wireless. « Troels Kofoed Jacobsen’s blog




Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>