Penguin
Diff: MPPEKernelHowto
EditPageHistoryDiffInfoLikePages

Differences between current version and revision by previous author of MPPEKernelHowto.

Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History

Newer page: version 5 Last edited on Friday, July 7, 2006 11:49:22 am by AristotlePagaltzis
Older page: version 3 Last edited on Sunday, October 3, 2004 10:54:13 pm by PerryLorier Revert
@@ -1,56 +1,61 @@
-MPPE Encryption HOWTO  
-OS: Linux - Debian Woody  
-Files Needed.  
+To add [ MPPE] support to your [Kernel] you need  
  
-ppp v2.4.2  
-* http://ccache. samba.org/ftp/ppp/ppp-2.4.2.tar.gz  
-linux kernel (I used 2.4.25)  
-* http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.25.tar.bz2  
-libpcap development files  
-* apt-get install libpcap-dev  
-ppp-2.4.2 mppe patch.  
-* http://pptpclient.sourceforge .net/mppe/ppp-2.4.2_cvs20040216-linux-mppe.tar.gz 
+* [ ppp v2.4.2 | http://samba.org/ftp/ppp/ppp-2.4.2.tar.gz]  
+* linux kernel (I used [ 2.4.25 | http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.25.tar.bz2]  
+* libpcap development files (<tt> apt-get install libpcap-dev</tt> on [Debian])  
+* [ ppp-2.4.2 mppe patch | http://pptpclient.sf .net/mppe/ppp-2.4.2_cvs20040216-linux-mppe.tar.gz]  
+* gcc-2.95 and make etc, all the tools to build a kernel.  
  
-gcc -2.95 and make etc, all the tools to build a kernel. 
+<verbatim>  
+apt-get install libpcap-dev  
+cd /usr/src/  
+wget http://samba.org/ftp/ppp/ppp -2.4.2.tar.gz  
+wget http://www. kernel.org/pub/linux/kernel/v2.4/linux-2.4.25.tar.bz2  
+wget http://pptpclient.sf.net/mppe/ppp-2.4.2_cvs20040216-linux-mppe.tar.gz  
+tar xvzf ppp-2.4.2.tar.gz  
+tar xvjf linux-2.4.25.tar.bz2  
+tar xvzf ppp-2.4.2_cvs20040216-linux-mppe.tar.gz  
+</verbatim>  
  
- apt-get install libpcap-dev  
- cd /usr/src/  
- wget http://ccache.samba.org/ftp/ppp/ppp-2.4.2.tar.gz  
- wget http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.25.tar.bz2  
- wget http://pptpclient.sourceforge.net/mppe/ppp-2.4.2_cvs20040216-linux-mppe.tar.gz  
- tar -zxf ppp-2.4.2.tar.gz  
- tar -jxf linux-2.4.25.tar.bz2  
- tar -zxf ppp-2.4.2_cvs20040216-linux-mppe.tar.gz  
-:; If you like you can symlink /usr/src/linux to /usr/src/linux-2.4.25/ This is usefull because some things that require kernel source to build look here for it.  
- ln -s /usr/src/linux-2.4.25 /usr/src/linux  
- cd ppp-2.4.2_cvs20040216-linux-mppe/  
- ./mppeinstall.sh /usr/src/linux-2.4.25/  
- cd ../linux-2.4.25/  
- make menuconfig  
-(or whatever way you prefer to set up your kernel config)  
-;:Build support for all ppp related modules as modules, It will fail for some unknown reason if you dont compile as a module
+If you like you can symlink /usr/src/linux to /usr/src/linux-2.4.25/ -- this is useful because some things that require kernel source to build look here for it. 
  
-;:build the kernel and modules as usual, install it and reboot . Dont forget to run lilo  
-or whatever . Fixing up a broken kernel build is beyond the scope of this document . For now I'll assume that all has been sucessfull and you are running your new kernel.  
+<verbatim>  
+ln -s /usr/src/linux-2 .4.25 /usr/src/linux  
+cd ppp-2 .4 .2_cvs20040216-linux-mppe/  
+./mppeinstall.sh /usr/src/linux-2.4.25/  
+cd ../linux-2.4.25/  
+make menuconfig # or whatever way you prefer to set up your kernel config  
+</verbatim>  
  
- cd /usr/src/ppp-2.4.2/  
- ./configure  
- make  
- make install 
+[PPP] related options should be enabled as modules, not built into the kernel, or it will fail for some reason. Build the kernel and modules as usual, install it and reboot. Dont forget to run [LILO] or whatever. Fixing up a broken kernel build is beyond the scope of this document. For now I'll assume that all has been sucessfull and you are running your new kernel.  
+  
+<verbatim>  
+ cd /usr/src/ppp-2.4.2/  
+./configure  
+make  
+make install  
+</verbatim>  
  
 Your ppp should now have support for mppe encryption a quick test to see if pppd is ready. 
  
- strings /usr/sbin/pppd |grep mppe 
+<verbatim>  
+ strings /usr/sbin/pppd | grep mppe  
+</verbatim>  
+  
+Next load the kernel support with <tt>modprobe ppp_mppe</tt>.  
+  
+To make it easier put these into <tt>/etc/modules</tt> or add these lines to <tt>/etc/modules.conf</tt>  
  
-next load the kernel support  
- modprobe ppp_mppe  
-to make it easier put these into /etc/modules or add these lines to /etc /modules.conf  
+<verbatim>  
+alias ppp-compress-18 ppp_mppe  
+alias ppp-compress-21 bsd_comp  
+alias ppp-compress-24 ppp_deflate  
+alias ppp-compress-26 ppp_deflate  
+< /verbatim>  
  
- alias ppp-compress-18 ppp_mppe  
- alias ppp-compress-21 bsd_comp  
- alias ppp-compress-24 ppp_deflate  
- alias ppp-compress-26 ppp_deflate  
+This should make them load automatically when they are needed.  
  
-This should make them load automaticly when they are needed. 
+Now configure your [PPTP] connections, or whatever you needed this support for
  
-Now configure your pptp connections, or whatever you needed this support for.  
+----  
+CategoryHowto