version 5, including all changes.
.
Rev |
Author |
# |
Line |
4 |
AristotlePagaltzis |
1 |
To add [MPPE] support to your [Kernel] you need |
1 |
RobMcDonald |
2 |
|
4 |
AristotlePagaltzis |
3 |
* [ppp v2.4.2 | http://samba.org/ftp/ppp/ppp-2.4.2.tar.gz] |
|
|
4 |
* linux kernel (I used [2.4.25 | http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.25.tar.bz2] |
|
|
5 |
* libpcap development files (<tt>apt-get install libpcap-dev</tt> on [Debian]) |
|
|
6 |
* [ppp-2.4.2 mppe patch | http://pptpclient.sf.net/mppe/ppp-2.4.2_cvs20040216-linux-mppe.tar.gz] |
|
|
7 |
* gcc-2.95 and make etc, all the tools to build a kernel. |
1 |
RobMcDonald |
8 |
|
4 |
AristotlePagaltzis |
9 |
<verbatim> |
|
|
10 |
apt-get install libpcap-dev |
|
|
11 |
cd /usr/src/ |
|
|
12 |
wget http://samba.org/ftp/ppp/ppp-2.4.2.tar.gz |
|
|
13 |
wget http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.25.tar.bz2 |
|
|
14 |
wget http://pptpclient.sf.net/mppe/ppp-2.4.2_cvs20040216-linux-mppe.tar.gz |
|
|
15 |
tar xvzf ppp-2.4.2.tar.gz |
|
|
16 |
tar xvjf linux-2.4.25.tar.bz2 |
|
|
17 |
tar xvzf ppp-2.4.2_cvs20040216-linux-mppe.tar.gz |
|
|
18 |
</verbatim> |
1 |
RobMcDonald |
19 |
|
4 |
AristotlePagaltzis |
20 |
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. |
1 |
RobMcDonald |
21 |
|
4 |
AristotlePagaltzis |
22 |
<verbatim> |
|
|
23 |
ln -s /usr/src/linux-2.4.25 /usr/src/linux |
|
|
24 |
cd ppp-2.4.2_cvs20040216-linux-mppe/ |
|
|
25 |
./mppeinstall.sh /usr/src/linux-2.4.25/ |
|
|
26 |
cd ../linux-2.4.25/ |
|
|
27 |
make menuconfig # or whatever way you prefer to set up your kernel config |
|
|
28 |
</verbatim> |
1 |
RobMcDonald |
29 |
|
4 |
AristotlePagaltzis |
30 |
[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. |
|
|
31 |
|
|
|
32 |
<verbatim> |
|
|
33 |
cd /usr/src/ppp-2.4.2/ |
|
|
34 |
./configure |
|
|
35 |
make |
|
|
36 |
make install |
|
|
37 |
</verbatim> |
1 |
RobMcDonald |
38 |
|
2 |
PerryLorier |
39 |
Your ppp should now have support for mppe encryption a quick test to see if pppd is ready. |
1 |
RobMcDonald |
40 |
|
4 |
AristotlePagaltzis |
41 |
<verbatim> |
|
|
42 |
strings /usr/sbin/pppd | grep mppe |
|
|
43 |
</verbatim> |
|
|
44 |
|
|
|
45 |
Next load the kernel support with <tt>modprobe ppp_mppe</tt>. |
1 |
RobMcDonald |
46 |
|
4 |
AristotlePagaltzis |
47 |
To make it easier put these into <tt>/etc/modules</tt> or add these lines to <tt>/etc/modules.conf</tt> |
1 |
RobMcDonald |
48 |
|
4 |
AristotlePagaltzis |
49 |
<verbatim> |
|
|
50 |
alias ppp-compress-18 ppp_mppe |
|
|
51 |
alias ppp-compress-21 bsd_comp |
|
|
52 |
alias ppp-compress-24 ppp_deflate |
|
|
53 |
alias ppp-compress-26 ppp_deflate |
|
|
54 |
</verbatim> |
1 |
RobMcDonald |
55 |
|
4 |
AristotlePagaltzis |
56 |
This should make them load automatically when they are needed. |
1 |
RobMcDonald |
57 |
|
4 |
AristotlePagaltzis |
58 |
Now configure your [PPTP] connections, or whatever you needed this support for. |
5 |
AristotlePagaltzis |
59 |
|
|
|
60 |
---- |
|
|
61 |
CategoryHowto |