10.2. Patching the Debian Kernel for MPPE Support
Problem
Oops, you have an older (pre-2.6.15-rc1) kernel on your Debian system, so you need to build the MPPE kernel module. How do you do this?
Solution
Follow these steps. First, download the necessary tools, kernel sources, and MPPE patch:
# apt-get install gcc bin86 libc6-dev bzip2 kernel-package kernel-patch-mppeFind your kernel version:
# uname -r
2.6.8Then, download, unpack, and prepare the kernel source package:
# apt-get install kernel-source-2.6.8
# cd /usr/src
# tar xfj kernel-source-2.6.8.tar.bz2
# cd kernel-source-2.6.8
# make-kpkg cleanCopy over your existing kernel configuration file to use for building your new kernel:
# cp /boot/config-2.6.8 ./.config-2.6.8Finally, build your new kernel package:
# cd /usr/src/kernel-source-2.6.8
# make-kpkg \
--added-patches mppe \
--append-to-version -mppe \
--config oldconfig \
--initrd \
kernel_imageWhen you're configuring the new kernel, be sure to enable
CONFIG_PPP_MPPE as a module:
PPP MPPE compression (encryption) (PPP_MPPE) [N/m/?] (NEW) mWhen that's all finished, and the kernel is compiling, you might as well go take a walk because it will take a few minutes. Maybe a lot of minutes, depending on what type of machine it's compiling on. When it's all finished, install the new kernel:
# dpkg --install /usr/src/kernel-image-2.6.8-mppe_10.00.Custom_all.debReboot to load the new kernel, then test for MPPE support:
# modprobe ppp-compress-18 && echo success
successHurrah! All finished, ...
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