It is currently Mon May 01, 2017 5:23 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: pppd: Couldn't load plugin pppol2tp.so
PostPosted: Thu Dec 18, 2008 10:58 am 

Joined: Wed Dec 17, 2008 3:00 pm
Posts: 6
Hello Forum,

starting openl2tpd gives me the following output:

Code:
# openl2tpd -D -f
Start, trace_flags=00000000 (debug enabled)
OpenL2TP V1.6, (c) Copyright 2004,2005,2006,2007,2008 Katalix Systems Ltd.
Loading plugin /usr/lib64/openl2tp/ppp_unix.so, version V1.5
Using config file: /etc/openl2tpd.conf
FUNC: tunl 32787: allocated context using profile 'default'
PROTO: tunl 32787: sending SCCRQ
PROTO: tunl 32787/35840: waiting for tunnel up
PROTO: tunl 32787: SCCRP received from peer 5158
PROTO: tunl 32787: sending SCCCN to peer 5158
PROTO: tunl 32787/35840: sending ICRQ to peer 5158/0
PROTO: tunl 32787/35840: ICRP received from peer 5158
PROTO: tunl 32787/35840: sending ICCN to peer 5158/89
pppd: /usr/lib/pppd/2.4.4/pppol2tp.so: cannot open shared object file: No such file or directory
pppd: Couldn't load plugin pppol2tp.so
PROTO: tunl 32787/35840: sending CDN to peer 5158/89


So it seems to function, but has a little problem with this pppol2tp.so.

The above missing file is definitively there, but in an other path :
Code:
# file /usr/lib64/pppd/2.4.4/pppol2tp.so
/usr/lib64/pppd/2.4.4/pppol2tp.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), not stripped


So how can I tell openl2tpd to search for in the 64-bit libraries??

The ppp things are compiled into kernel 2.6.27.5:
Code:
# grep -i ppp /usr/src/builds/.config
1052:CONFIG_PPP=y
1053:# CONFIG_PPP_MULTILINK is not set
1054:CONFIG_PPP_FILTER=y
1055:CONFIG_PPP_ASYNC=y
1056:CONFIG_PPP_SYNC_TTY=y
1057:CONFIG_PPP_DEFLATE=y
1058:# CONFIG_PPP_BSDCOMP is not set
1059:CONFIG_PPP_MPPE=y
1060:CONFIG_PPPOE=y
1061:CONFIG_PPPOL2TP=y


Thanks for any suggestion!

Markus


Top
 Profile  
 
 Post subject: Re: pppd: Couldn't load plugin pppol2tp.so
PostPosted: Thu Dec 18, 2008 11:31 am 

Joined: Wed Dec 17, 2008 3:00 pm
Posts: 6
Ok I found the solution I guess...

I created some symlinks for those to files for openl2tpd from lib64 to lib and I got it (untested):
Code:
ln -s /usr/lib64/pppd/2.4.4/pppol2tp.so /usr/lib/pppd/2.4.4/pppol2tp.so
ln -s /usr/lib64/pppd/2.4.4/openl2tp.so /usr/lib/pppd/2.4.4/openl2tp.so


Ouput of openl2tpd after setting up links:
Code:
# openl2tpd -D -f
Start, trace_flags=00000000 (debug enabled)
OpenL2TP V1.6, (c) Copyright 2004,2005,2006,2007,2008 Katalix Systems Ltd.
Loading plugin /usr/lib64/openl2tp/ppp_unix.so, version V1.5
Using config file: /etc/openl2tpd.conf
FUNC: tunl 33401: allocated context using profile 'default'
PROTO: tunl 33401: sending SCCRQ
PROTO: tunl 33401/32358: waiting for tunnel up
PROTO: tunl 33401: SCCRP received from peer 523
PROTO: tunl 33401: sending SCCCN to peer 523
PROTO: tunl 33401/32358: sending ICRQ to peer 523/0
PROTO: tunl 33401/32358: ICRP received from peer 523
PROTO: tunl 33401/32358: sending ICCN to peer 523/92
Plugin pppol2tp.so loaded.
Plugin openl2tp.so loaded.
using channel 12
Using interface ppp0
Connect: ppp0 <-->
Overriding mtu 1500 to 1456
PPPoL2TP options: tid 33401 sid 32358 debugmask 0
Overriding mru 1500 to mtu value 1456
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd8cae0dd>]
PROTO: tunl 33401/32358: SLI received from peer 523
rcvd [LCP ConfReq id=0x1 <asyncmap 0xa0000> <auth chap MD5> <magic 0x17315050> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0xa0000> <auth chap MD5> <magic 0x17315050> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xd8cae0dd>]
Overriding mtu 1500 to 1456
PPPoL2TP options: tid 33401 sid 32358 debugmask 0
Overriding mru 1500 to mtu value 1456
PROTO: tunl 33401/32358: SLI received from peer 523
rcvd [CHAP Challenge id=0x1 <19a0c0b25b90ab6c8971e0c3a904c84b>, name = "R-ASK-Firma"]
sent [CHAP Response id=0x1 <0716fd45d529724987b53256832e5bd2>, name = "VPNUser"]
rcvd [CHAP Success id=0x1 ""]
CHAP authentication succeeded
CHAP authentication succeeded
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <addr 192.168.0.254>]
sent [IPCP ConfAck id=0x1 <addr 192.168.0.254>]
rcvd [LCP EchoReq id=0x1 magic=0x17315050 d8 ca e0 dd]
sent [LCP EchoRep id=0x1 magic=0xd8cae0dd d8 ca e0 dd]
rcvd [IPCP ConfReq id=0x2 <addr 192.168.0.254>]
sent [IPCP ConfAck id=0x2 <addr 192.168.0.254>]
rcvd [IPCP ConfNak id=0x1 <addr 192.168.0.247>]
sent [IPCP ConfReq id=0x2 <addr 192.168.0.247>]
rcvd [IPCP ConfAck id=0x2 <addr 192.168.0.247>]
local  IP address 192.168.0.247
remote IP address 192.168.0.254
openl2tp send: sent PPP_UPDOWN_IND, 52 bytes
Script /etc/ppp/ip-up started (pid 13446)
Script /etc/ppp/ip-up finished (pid 13446), status = 0x0


After connect and setting a route to 192.168.0.0/24 over ppp0
Code:
route add -net 192.168.0.0/24 ppp0


I got ssh login from a host on the other side!!
SUCCESS!

Thanks Markus


Top
 Profile  
 
 Post subject: Re: pppd: Couldn't load plugin pppol2tp.so
PostPosted: Thu Dec 18, 2008 11:10 pm 
Site Admin

Joined: Sun Jul 27, 2008 1:39 pm
Posts: 122
askask1 wrote:
Code:
pppd: /usr/lib/pppd/2.4.4/pppol2tp.so: cannot open shared object file: No such file or directory
pppd: Couldn't load plugin pppol2tp.so


So it seems to function, but has a little problem with this pppol2tp.so.

The above missing file is definitively there, but in an other path :
Code:
# file /usr/lib64/pppd/2.4.4/pppol2tp.so
/usr/lib64/pppd/2.4.4/pppol2tp.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), not stripped


So how can I tell openl2tpd to search for in the 64-bit libraries??


Your pppd seems to expect plugins in /usr/lib, not /usr/lib64. Is it compiled for 64-bit? openl2tpd just starts pppd with a "plugin pppol2tp.so" argument, so it is a problem with pppd on your system.

On my 64-bit systems, pppd expects plugins in /usr/lib64/pppd.

/james


Top
 Profile  
 
 Post subject: Re: pppd: Couldn't load plugin pppol2tp.so
PostPosted: Fri Dec 19, 2008 10:36 am 

Joined: Wed Dec 17, 2008 3:00 pm
Posts: 6
Thanks james,

so I installed ppp from the opensuse-yast-paths and it should be 64bit - let's see:

Code:
# file /usr/sbin/pppd
/usr/sbin/pppd: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), for GNU/Linux 2.6.4, stripped


Maybe they compiled the lib/ instead of lib64/ - does that make sense?

Markus


Top
 Profile  
 
 Post subject: Re: pppd: Couldn't load plugin pppol2tp.so
PostPosted: Wed Dec 31, 2008 11:40 am 
Site Admin

Joined: Sun Jul 27, 2008 1:39 pm
Posts: 122
Where does your pppd expect to find its standard plugins? In /usr/lib/pppd or /usr/lib64/pppd?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


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 post attachments in this forum

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group