[pptp-server] Working under Redhat V7.0 with Kernel V2.2.17-14
Clement Law
clawz at vcn.bc.ca
Tue Feb 13 20:52:16 CST 2001
This is for Redhat V7.0 with Kernel V2.2.17-14
I'm also assuming that you are using a 686 computer, if not, change all 686 to 386.
The Kernel updates and other updates can be downloaded from www.redhat.com
Needed Files/Packages (* = Must Have!)
*cpp-2.96-69.i386.rpm (Updated from www.redhat.com)
dev86-0.15.0-5.i386.rpm (Optional, for "make bzImage")
*gcc-2.96-69.i386.rpm (Updated from www.redhat.com)
*kgcc-1.1.2-40.i386.rpm (Updated from www.redhat.com)
*glibc-devel-2.2-12.i386.rpm (Updated from www.redhat.com)
ncurses-devel-5.2-2.i386.rpm (Optional, for "make menuconfig") (Updated from www.redhat.com)
openssl-devel-0.9.5a-14.i386.rpm (No clue, might not need it)
*kernel-headers-2.4.0-0.26.i386.rpm
*kernel-source-2.2.17-14.i386.rpm (Updated from www.redhat.com)
*binutils-2.10.0.18-1.i386.rpm
*make-3.79.1-5.i386.rpm
*patch-2.5.4-4.i386.rpm
*ppp-2.3.11-7.src.rpm (Has more patches inside)
or
*ppp-2.3.11.tar.gz
*ppp-2.3.11-openssl-0.9.5-mppe.patch.gz
*ppp_mppe_compressed_data_fix.diff
*if_ppp_2.2.17.diff
I used the pptpd-1.0.1-1.i386.rpm, I bet this setup will still work for other pptpd version.
-=( For ppp-2.3.11.tar.gz no ppp-2.3.11-7.src.rpm )=-
---------------------START---------------------------
1) Install all the RPM Packages listed above with the *.
2) Move this following files to /usr/src
ppp-2.3.11.tar.gz
ppp-2.3.11-openssl-0.9.5-mppe.patch.gz
ppp_mppe_compressed_data_fix.diff
if_ppp_2.2.17.diff
3) Type this in console or make a batch file
cd /usr/src
tar xzf ppp-2.3.11.tar.gz
cd ppp-2.3.11
patch -p1 < ../ppp-2.3.11-openssl-0.9.5-mppe.patch
cd linux
patch < ../../ppp_mppe_compressed_data_fix.diff
cd ..
./configure
make kernel
make all
make install
4) Load up /usr/src/ppp-2.3.11/pppd/lcp.c (This step is optional, I didn't do it)
Goto line 1541
Change: LCPDEBUG((LOG_INFO, "lcp_reqci: rcvd CBCP"));
To: LCPDEBUG(("lcp_reqci: rcvd CBCP"));
5) Type this in console
cd /usr/src/linux
patch -p1 < ../if_ppp_2.2.17.diff
cp configs/kernel-2.2.17-i686.config .config
make oldconfig
make dep clean
6) Load up /usr/src/linux/drivers/net/ppp.c
Search for "kill"
Change: kill_fasync (ppp->tty->fasync, SIGIO);
To: kill_fasync (ppp->tty->fasync, SIGIO, POLL_IN);
7) Load up /usr/src/linux/include/linux/module.h (Just to bypass some error)
Goto line 145
Change: extern unsigned long get_module_symbol(char *, char *);
To: /* extern unsigned long get_module_symbol(char *, char *); */
8) Type this in console
cd /usr/src/linux
make modules SUBDIRS=drivers/net
Note: It'll end up with an error, suppose to anyway.
cd drivers/net
cp bsd_comp.o ppp_deflate.o ppp_mppe.o /lib/modules/2.2.17-14/net
9) Do your little config stuff, pptpd.conf and so on.
/etc/modules.conf
alias char-major-108 off
alias ppp-compress-18 ppp_mppe
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 ppp_deflate
/etc/pptpd.conf (My setup)
debug
option /etc/ppp/options.pptp
localip 172.16.89.127
remoteip 172.16.89.128
/etc/ppp/options.pptp
debug
mru 1450
mtu 1450
auth
require-chap
proxyarp
+chap
+chapms
+chapms-v2
mppe-40
mppe-128
mppe-stateless
10) Pray that you did it right and hopefully it works. =)
-----------------------END---------------------------
-=( For ppp-2.3.11-7.src.rpm no ppp-2.3.11.tar.gz )=-
---------------------START---------------------------
1) Install all the RPM Packages listed above with the * including ppp-2.3.11-7.src.rpm.
2) Move this following files to /usr/src
ppp-2.3.11-openssl-0.9.5-mppe.patch.gz
ppp_mppe_compressed_data_fix.diff
if_ppp_2.2.17.diff
3) Move files from /usr/src/redhat/SOURCES to /usr/src
ppp-2.3.11.tar.gz
ppp-2.3.11-make.patch
ppp-2.3.11-pam_session.patch
ppp-2.3.11-reap.patch
ppp-2.3.6-sample.patch
ppp-2.3.9-wtmp.patch
3) Type this in console or make a batch file
cd /usr/src
tar xzf ppp-2.3.11.tar.gz
cd ppp-2.3.11
patch -p1 < ../ppp-2.3.11-make.patch
patch -p1 < ../ppp-2.3.6-sample.patch
patch -p1 < ../ppp-2.3.9-wtmp.patch
patch -p1 < ../ppp-2.3.11-reap.patch
patch -p1 < ../ppp-2.3.11-pam_session.patch
patch -p1 < ../ppp-2.3.11-openssl-0.9.5-mppe.patch
cd linux
patch < ../../ppp_mppe_compressed_data_fix.diff
cd ..
./configure
make kernel
make all
make install
4) Load up /usr/src/ppp-2.3.11/pppd/lcp.c (This step is optional, I didn't do it)
Goto line 1541
Change: LCPDEBUG((LOG_INFO, "lcp_reqci: rcvd CBCP"));
To: LCPDEBUG(("lcp_reqci: rcvd CBCP"));
5) Type this in console
cd /usr/src/linux
patch -p1 < ../if_ppp_2.2.17.diff
cp configs/kernel-2.2.17-i686.config .config
make oldconfig
make dep clean
6) Load up /usr/src/linux/drivers/net/ppp.c
Search for "kill"
Change: kill_fasync (ppp->tty->fasync, SIGIO);
To: kill_fasync (ppp->tty->fasync, SIGIO, POLL_IN);
7) Load up /usr/src/linux/include/linux/module.h (Just to bypass some error)
Goto line 145
Change: extern unsigned long get_module_symbol(char *, char *);
To: /* extern unsigned long get_module_symbol(char *, char *); */
8) Type this in console
cd /usr/src/linux
make modules SUBDIRS=drivers/net
Note: It'll end up with an error, suppose to anyway.
cd drivers/net
cp bsd_comp.o ppp_deflate.o ppp_mppe.o /lib/modules/2.2.17-14/net
9) Do your little config stuff, pptpd.conf and so on.
/etc/modules.conf
alias char-major-108 off
alias ppp-compress-18 ppp_mppe
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 ppp_deflate
/etc/pptpd.conf (My setup)
debug
option /etc/ppp/options.pptp
localip 172.16.89.127
remoteip 172.16.89.128
/etc/ppp/options.pptp
debug
mru 1450
mtu 1450
auth
require-chap
proxyarp
+chap
+chapms
+chapms-v2
mppe-40
mppe-128
mppe-stateless
10) Pray that you did it right and hopefully it works. =)
-----------------------END---------------------------
Special thanks to George Vieira for helping me.
I got mine working like this, should work for other RH7 users with Kernel 2.2.17-14.
More information about the pptp-server
mailing list