openl2tp.org
http://forums.openl2tp.org/

FD for PPPoL2TP socket invalid
http://forums.openl2tp.org/viewtopic.php?f=3&t=16
Page 1 of 1

Author:  neilf [ Thu Oct 22, 2009 2:23 pm ]
Post subject:  FD for PPPoL2TP socket invalid

using the example in the INSTALL file:
/usr/bin/l2tpconfig
l2tp> system show version
l2tp> tunnel create tunnel_name=one dest_ipaddr=127.0.0.1
l2tp> tunnel list
l2tp> ppp profile create profile_name=one local_ipaddr=10.3.1.1 remote_ipaddr=10.3.1.2
l2tp> ppp profile modify profile_name=default auth_none=yes
l2tp> session create tunnel_name=one session_name=one ppp_profile_name=one
l2tp> session list tunnel_name=one
l2tp> session show tunnel_name=one session_name=one

I get the following error

Oct 22 12:37:32 lns02 pppd[30512]: Plugin pppol2tp.so loaded.
Oct 22 12:37:32 lns02 pppd[30511]: Plugin pppol2tp.so loaded.
Oct 22 12:37:32 lns02 pppd[30511]: Plugin openl2tp.so loaded.
Oct 22 12:37:32 lns02 pppd[30511]: Given FD for PPPoL2TP socket invalid (Bad file descriptor)
Oct 22 12:37:32 lns02 pppd[30511]: Exit.

any idea's as to why this should occure or how to debug

Author:  neilf [ Fri Oct 23, 2009 11:57 am ]
Post subject:  Re: FD for PPPoL2TP socket invalid

ok problem fixed
the problem was with selinux, no helpful warning in the /var/log/messages file
problem solved in file /etc/sysconfig/config, change and reboot

SELINUX=enforcing

to

SELINUX=permissive

Author:  jchapman [ Fri Oct 30, 2009 10:54 am ]
Post subject:  Re: FD for PPPoL2TP socket invalid

neilf wrote:
using the example in the INSTALL file:
/usr/bin/l2tpconfig
l2tp> system show version
l2tp> tunnel create tunnel_name=one dest_ipaddr=127.0.0.1
l2tp> tunnel list
l2tp> ppp profile create profile_name=one local_ipaddr=10.3.1.1 remote_ipaddr=10.3.1.2
l2tp> ppp profile modify profile_name=default auth_none=yes
l2tp> session create tunnel_name=one session_name=one ppp_profile_name=one
l2tp> session list tunnel_name=one
l2tp> session show tunnel_name=one session_name=one

I get the following error

Oct 22 12:37:32 lns02 pppd[30512]: Plugin pppol2tp.so loaded.
Oct 22 12:37:32 lns02 pppd[30511]: Plugin pppol2tp.so loaded.
Oct 22 12:37:32 lns02 pppd[30511]: Plugin openl2tp.so loaded.
Oct 22 12:37:32 lns02 pppd[30511]: Given FD for PPPoL2TP socket invalid (Bad file descriptor)
Oct 22 12:37:32 lns02 pppd[30511]: Exit.

any idea's as to why this should occure or how to debug

Have you loaded the pppol2tp kernel module?

modprobe pppol2tp

Author:  neilf [ Fri Oct 30, 2009 5:54 pm ]
Post subject:  Re: FD for PPPoL2TP socket invalid

problem fixed, see my later post Fri Oct 23, 2009

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/