07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

# vpn.falcot.com is the PPTP server<br />

pty "pptp vpn.falcot.com --nolaunchpppd"<br />

# the connection will identify as the "vpn" user<br />

user vpn<br />

remotename pptp<br />

# encryption is needed<br />

require-mppe-128<br />

file /etc/ppp/options.pptp<br />

ipparam falcot<br />

Example 10.3<br />

The /etc/ppp/peers/falcot file<br />

# Create the route to the Falcot network<br />

if [ "$6" = "falcot" ]; then<br />

# 192.168.0.0/24 is the (remote) Falcot network<br />

route add -net 192.168.0.0 netmask 255.255.255.0 dev $1<br />

fi<br />

Example 10.4<br />

The /etc/ppp/ip-up.d/falcot file<br />

# Delete the route to the Falcot network<br />

if [ "$6" = "falcot" ]; then<br />

# 192.168.0.0/24 is the (remote) Falcot network<br />

route del -net 192.168.0.0 netmask 255.255.255.0 dev $1<br />

fi<br />

Example 10.5<br />

The /etc/ppp/ip-down.d/falcot file<br />

SECURITY<br />

MPPE<br />

Securing PPTP involves using the MPPE feature (Microso Point-to-Point Encryption),<br />

which is available in official Debian kernels as a module.<br />

10.2.4.2. Configuring the Server<br />

CAUTION<br />

PPTP and firewalls<br />

Intermediate firewalls need to be configured to let through IP packets using<br />

protocol 47 (GRE). Moreover, the PPTP server's port 1723 needs to be open so<br />

that the communication channel can happen.<br />

232 The Debian Administrator's Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!