Skip to Content
Linux Desktop Hacks
book

Linux Desktop Hacks

by Nicholas Petreley, Jono Bacon
March 2005
Beginner to intermediate
342 pages
15h 55m
English
O'Reilly Media, Inc.
Content preview from Linux Desktop Hacks
Connect to a Microsoft PPTP VPN #68
Chapter 8, Desktop Programs
|
213
HACK
If the module loads without error, everything is well; otherwise, you need to
obtain or build the ppp_mppe kernel module. If you are using a stock distri-
bution kernel, this could be as simple as installing the required package. If a
package isn’t available, you need to build a custom kernel. The required ker-
nel option (using menuconfig) is Network Device Support
PPP (point-to-
point protocol) Support
PPP MPPE Compression (encryption).
You also need to use Version 2.4.2 or above of the ppp package. Now you
need to edit the /etc/ppp/chap-secrets file to contain the following:
## OUTBOUND CONNECTIONS
username "*" password
Again, you should replace both username and password with the values your
network administrator gives you. If you are running a firewall at your end
(you should be!), you need to configure the firewall to allow all packets out
on TCP port 1723 to the VPN server. This is used to negotiate the connec-
tion and to pass link control traffic. The only other change that is required is
to allow all GRE protocol packets (protocol number 47) between the client
system and the VPN server. You should do this for both inbound and out-
bound traffic.
Starting the VPN
Now everything should be ready to go. To make a connection, log in as root
and run the following command:
foo@bar:~# pptp-command start office
Using interface ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Linux Server Hacks, Volume Two

Linux Server Hacks, Volume Two

William von Hagen, Brian K. Jones

Publisher Resources

ISBN: 0596009119Catalog PageErrata