Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pptpclient, mppe and kernel 2.4.20
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dufeu
l33t
l33t


Joined: 30 Aug 2002
Posts: 924
Location: US-FL-EST

PostPosted: Tue Dec 03, 2002 1:50 am    Post subject: pptpclient, mppe and kernel 2.4.20 Reply with quote

I'm trying to get pptpclient working on my system which I recently (and happily) upgraded the kernel to 2.4.20.

I have discovered that I need support for mppe in the kernel. I have located a patch ( linux-2.4.19-openssl-0.9.6b-mppe.patch.gz ) however, I have a wee leetle problem.

I've never patched a kernel before. I have no idea where to start.

I have and am comfortable in setting kernel options and (re-)compiling my kernel.

Is there a process to see if this patch will work with the 2.4.20 kernel?

What are the steps in patching the kernel?

How can I find out if mppe support will ever be part of the kernel?

Am I correct in assume that mppe stands for Micro$oft Point to Point Encryption or reasonable facimile thereof?

I would like to connect to my machine at work, but my Win98SE (with 1.4 DUN upgrade) crashes regularly. I don't want to 'upgrade' to Win2K. I've been trying (almost completely successfully) to phase windoze completely out of my home. ;)

Any help would be appreciated.
_________________
People whom think M$ is mediocre, don't know the half of it.
Back to top
View user's profile Send private message
aheld
n00b
n00b


Joined: 15 Nov 2002
Posts: 24
Location: ~Boston, MA

PostPosted: Tue Dec 03, 2002 3:37 pm    Post subject: setup guide @ shorewall Reply with quote

To patch the kern-
1)
Code:
emerge gentoo-sources

2) copy the patch file to your /usr/src/linux directory
3)
Code:
patch -p1 < ../linux-2.4.16-openssl-0.9.6b-mppe.patch


Follow the guide at http://shorewall.sourceforge.net/PPTP.htm
Back to top
View user's profile Send private message
b3ast13
n00b
n00b


Joined: 11 Jul 2002
Posts: 10
Location: Belgium

PostPosted: Tue Dec 03, 2002 8:43 pm    Post subject: Reply with quote

Or you can try the MPPE/MPPC kernel module for Linux written by Jan Dubiec:

http://www.polbox.com/h/hs001/

In this case you need to patch also pppd.
In case you use only the mppe-patch, you don't need to patch pppd. The ebuild included in Gentoo already has the patch.

Wouter
Back to top
View user's profile Send private message
dufeu
l33t
l33t


Joined: 30 Aug 2002
Posts: 924
Location: US-FL-EST

PostPosted: Fri Dec 06, 2002 12:01 am    Post subject: Using the patch suggested by b3ast13 Reply with quote

The patch applied as follows:


dragon / # patch -b -p1 < /usr/src/linux/linux-2.4.19-mppe-mppc-0.96.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ruN /usr/src/linux-2.4.19.orig/drivers/net/Config.in /usr/src/linux-2.4.19/drivers/net/Config.in
|--- /usr/src/linux-2.4.19.orig/drivers/net/Config.in Tue Aug 20 20:30:54 2002
|+++ /usr/src/linux-2.4.19/drivers/net/Config.in Tue Aug 20 18:20:39 2002
--------------------------
File to patch: /usr/src/linux/drivers/net/Config.in
patching file /usr/src/linux/drivers/net/Config.in
Hunk #1 succeeded at 287 (offset 3 lines).
can't find file to patch at input line 15
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ruN /usr/src/linux-2.4.19.orig/drivers/net/Makefile /usr/src/linux-2.4.19/drivers/net/Makefile
|--- /usr/src/linux-2.4.19.orig/drivers/net/Makefile Tue Aug 20 20:30:54 2002
|+++ /usr/src/linux-2.4.19/drivers/net/Makefile Sun Nov 10 11:48:35 2002
--------------------------
File to patch: /usr/src/linux/drivers/net/Makefile
patching file /usr/src/linux/drivers/net/Makefile
Hunk #1 succeeded at 148 (offset 10 lines).
can't find file to patch at input line 26
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ruN /usr/src/linux-2.4.19.orig/drivers/net/ppp_generic.c /usr/src/linux-2.4.19/drivers/net/ppp_generic.c
|--- /usr/src/linux-2.4.19.orig/drivers/net/ppp_generic.c Tue Aug 20 20:30:58 2002
|+++ /usr/src/linux-2.4.19/drivers/net/ppp_generic.c Tue Aug 20 19:23:18 2002
--------------------------
File to patch: /usr/src/linux/drivers/net/ppp_generic.c
patching file /usr/src/linux/drivers/net/ppp_generic.c
patching file usr/src/linux-2.4.19/drivers/net/ppp_mppe.c
patching file usr/src/linux-2.4.19/drivers/net/ppp_mppe_crypto.c
can't find file to patch at input line 1529
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ruN /usr/src/linux-2.4.19.orig/include/linux/ppp-comp.h /usr/src/linux-2.4.19/include/linux/ppp-comp.h
|--- /usr/src/linux-2.4.19.orig/include/linux/ppp-comp.h Fri Aug 6 19:44:11 1999
|+++ /usr/src/linux-2.4.19/include/linux/ppp-comp.h Mon Nov 25 08:44:37 2002
--------------------------
File to patch: /usr/src/linux/include/linux/ppp-comp.h
patching file /usr/src/linux/include/linux/ppp-comp.h
dragon / #


The kernel recompiled as follows:

make -C net
make[2]: Entering directory `/usr/src/linux-2.4.20/drivers/net'
make all_targets
make[3]: Entering directory `/usr/src/linux-2.4.20/drivers/net'
rm -f net.o
ld -m elf_i386 -r -o net.o Space.o setup.o net_init.o loopback.o ppp_generic.o slhc.o ppp_async.o ppp_synctty.o ppp_deflate.o bsd_comp.o ppp_mppe.o pppox.o pppoe.o dummy.o 8139too.o mii.o auto_irq.o
ld: cannot open ppp_mppe.o: No such file or directory
make[3]: *** [net.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.20/drivers/net'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20/drivers/net'
make[1]: *** [_subdir_net] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20/drivers'
make: *** [_dir_drivers] Error 2


I know that if I do a string search for mppe in pppd, 35 instances are found. So the ppp patch is supposedly already in place. Or I've down something wrong. :(

Any advice?
_________________
People whom think M$ is mediocre, don't know the half of it.
Back to top
View user's profile Send private message
dufeu
l33t
l33t


Joined: 30 Aug 2002
Posts: 924
Location: US-FL-EST

PostPosted: Fri Dec 06, 2002 1:44 am    Post subject: Using patch suggested by aheld Reply with quote

The patch applied as follows:

dragon linux # patch -b -p1 < linux-2.4.16-openssl-0.9.6b-mppe-patch
patching file drivers/net/Makefile
Hunk #1 succeeded at 143 with fuzz 2 (offset 13 lines).
patching file drivers/net/Makefile.orig
patching file drivers/net/md32_common.h
patching file drivers/net/mppe.h
patching file drivers/net/ppp_generic.c
Hunk #1 succeeded at 1030 (offset 24 lines).
patching file drivers/net/ppp_mppe.c
patching file drivers/net/rc4_enc.c
patching file drivers/net/rc4_locl.h
patching file drivers/net/rc4_skey.c
patching file drivers/net/sha1dgst.c
patching file drivers/net/sha_locl.h
patching file include/linux/ppp-comp.h
patching file include/openssl/opensslconf.h
patching file include/openssl/opensslv.h
patching file include/openssl/rc4.h
patching file include/openssl/sha.h
dragon linux #

The kernel compiled successfully.

I was able to get a connection using:

# pptp vpnserver call tunnel

I was not able to get a connection using either

# pppd call tunnel

or

# pptp-command
# 1) start

The message provided regarding trying to start with pptp-command was "insecure depency ... -T ...". The documentation as pptpclient.sourceforge.net says that I need an upgraded version of pptp-linux. This, unfortunately, doesn't appear to be available from portage.

I'll be looking into this some more but futher advice would be appreciated.

:)

Thanx everyone!
_________________
People whom think M$ is mediocre, don't know the half of it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum