[pptp-server] installing MSCHAP/MPPE PPPD patch

Toktar, Emir EMIR.TOKTAR at bra.xerox.com
Tue Aug 24 16:42:26 CDT 1999


PoPToP HOWTO/FAQ
----------------
Last Updated: 19990813

>>This is cut out of the poptop howto/faq.. the howto is not finished.. at
>>the moment it is a big mess. any feedback on these instructions most
>>welcome. also i'd like to hear about anyone having success with this
>>under win98 and NT. see below! -matt

In HOWTO 
3.0 PPP (and MSCHAP/MPPE) Installation
--------------------------------------
setp 5. Assuming your files are in /usr/local/src/ and your current working
	directory is also /usr/local/src/ do the following:
		[tar zxvf ppp-2.3.8.tar.gz]
		[gunzip ppp-2.3.8-mppe-others-norc4_TH7.diff.gz] 
		???? is not gunzip.

##############################################################

I followed  PoPToP HOWTO/FAQ and not work properlly with RedHat 6.0 
kernel 2.2.5-15. 

Below are my steps get with many cuts of the your HOWTO/FAQ and others 
e-mails.


I have follow this instructions (step-by-step), if I do any mistakes and 
you can send me I will appreciate!!! 

============================================================================
3.1 Installing MSCHAP/MPPE PPPD Patch
Grab yourself a clean copy of the PPP deamon version 2.3.8 (ppp-2.3.8). 
I usually go here for my PPP files: ftp://cs.anu.edu.au/pub/software/ppp/ 
	 ftp://cs.anu.edu.au/pub/software/ppp/  
	ppp-2.3.8.tar.gz   
	ppp-2.3.8-patch1  {correction IPX...}

Grab youself the MSCHAP/MPPE diff files and the RC4 files Follow these
instructions: 
 MSCHAP/MPPE: http://www.moretonbay.com/vpn/releases/  
	ppp-2.3.8-mppe-others-norc4_TH7.diff
 RC4 files : ftp://ftp.psy.uq.oz.au/pub/Crypto/SSL/
	SSLeay-0.6.6b.tar.gz

[
i.e: host: vpn {example}
]

1. Copy the archives to your local file system [i.e: /usr/local/src/]

[root at vpn src]# ls 
ppp-2.3.8.tar.gz
ppp-2.3.8-mppe-others-norc4_TH7.diff.gz
SSLeay-0.6.6b.tar.gz
[root at vpn src]# tar zxvf ppp-2.3.8.tar.gz
[root at vpn src]# tar zxvf SSLeay-0.6.6b.tar.gz

2. Copy the RC4 files (rc4.h and rc4_enc.c) to ppp-2.3.8/linux/

[root at vpn src]# pwd
/usr/local/src
[root at vpn src]# cd SSLeay-0.6.6b/crypto/rc4/
[root at vpn rc4]# cp rc4.h       /usr/local/src/ppp-2.3.8/linux/
[root at vpn rc4]# cp rc4_enc.c   /usr/local/src/ppp-2.3.8/linux/
	
3. Patch the MSCHAP/MPPE diff file

[root at vpn rc4]# cd /usr/local/src/
[root at vpn src]# cp ppp-2.3.8-patch1  ppp-2.3.8/pppd
[root at vpn src]# cd ppp-2.3.8/pppd
patching file 'sys-linux.c'
[root at vpn pppd]# patch -p1 < ppp-2.3.8-patch1 [pwd]
/usr/src/linux/ppp-2.3.8/pppd 
[root at vpn pppd]# cd /usr/local/src
[root at vpn src]# patch -p0 < ppp-2.3.8-mppe-others-norc4_TH7.diff
patching file 'ppp-2.3.8/...' 
[root at vpn src]# cd ppp-2.3.8

4. The files should now all be in place and we are ready to compile PPP. 
Follow these steps to compile it:

[root at vpn ppp-2.3.8]# ./configure
[root at vpn ppp-2.3.8]# cd linux
[root at vpn linux]# pwd
/usr/local/src/linux/ppp-2.3.8/linux
[root at vpn linux]# ./kinstall.sh
...
Kernel driver files installation done.
[root at vpn linux]# cp * /usr/src/linux/drivers/net/

{ not compile with ´make´ because there isn´t  rc4* files
  then, I did this copy 
}

[root at vpn linux]# cd ..
[root at vpn ppp-2.3.8]# make
[root at vpn ppp-2.3.8]# cd pppd
[root at vpn pppd]# cp pppd /usr/sbin/
[root at vpn pppd]# cd /usr/src/linux
[root at vpn linux]# pwd
/usr/src/linux
[root at vpn linux]# make modules SUBDIRS=drivers/net

------------------------------------------
[ by ppp-2.3.8/README.linux ]

2. Update the kernel sources.
If you are using a kernel earlier than 2.2.8, you can either use the
driver in this package or upgrade your kernel to 2.2.8.  If you choose
to use the driver in this package, you will need a copy of the kernel
source tree to compile the driver.

3. Build the kernel.
-------------------------------------------

***** mistakes will be happen if there was disable modules ****
[ by Michael J. Walter mcse ]
Type "make menuconfig"
Use your arrow keys to scroll to the "Networking Options" item and hit
"Enter".
a) The "Networking options" window should appear.
b) Use your arrow keys to scroll down to "IP: masquerading" and type "N".
c) Use your arrow keys to scroll down to "IP: tunneling" and type "N".
d) Use your arrow keys to scroll down to "IP: aliasing support" and type
"N".
e) Use your arrow keys to scroll down to "IP: Reverse ARP" and type "N".
f) Use your arrow keys to scroll down to "The IPX protocol" and type "N".
g) Use your arrow keys to scroll down to "Appletalk DDP" and type "N".
h) Use your right arrow key to highlight "<Exit>" at the bottom of the
screen and hit "Enter"
Use your right arrow key to highlight "<Exit>" at the bottom of the screen
and hit "Enter" and save.
a) Type "make dep"
b) Type "make clean"
c) Type "make bzImage"
This probably is not necessary, but I always reboot here, type "shutdown -r
now" 
*****************************************************

[root at vpn linux]# make modules SUBDIRS=drivers/net
[root at vpn linux]# make modules_install
[root at vpn linux]# rmmod ppp

--------------------------------------------------
(*) if module ppp not load 
[root at vpn linux]# cd /lib/modules/2.2.5-15/net/
1. # insmod slhc
2. # insmod ppp
3. # insmod bsd_comp
4. # insmod ppp_deflate
5. # insmod ppp_mppe
--------------------------------------------------

[root at vpn linux]# insmod ppp
[root at vpn linux]# insmod ppp_mppe



Edit the /etc/conf.modules file and add alias the following lines 
alias ppp-compress-18 ppp_mppe
alias ppp-compress-21 slhc
alias ppp-compress-24 bsd_comp
alias ppp-compress-26 ppp_deflate 




More information about the pptp-server mailing list