Hide Forgot
Description of problem: Trying to get an L2TP/IPsec tunnel to work; xl2tpd cannot start pppd, and the logs show: -- Oct 25 09:23:48 cluestix xl2tpd[9040]: getPtyMaster_ptmx: unable to grantpt() on pty Oct 25 09:23:48 cluestix xl2tpd[9040]: getPtyMaster: failed to use pts -- using legacy ptys Oct 25 09:23:48 cluestix xl2tpd[9040]: getPtyMaster_pty: No more free pseudo-tty's Oct 25 09:23:48 cluestix xl2tpd[9040]: start_pppd: unable to allocate pty, abandoning! -- Turns out that the kernel is compiled without CONFIG_LEGACY_PTYS: -- $ grep CONFIG_LEGACY /boot/config-3.1.0-0.rc10.git0.1.fc16.x86_64 # CONFIG_LEGACY_PTYS is not set -- Version-Release number of selected component (if applicable): kernel-3.1.0-0.rc10.git0.1.fc16.x86_64 How reproducible: Always. Steps to Reproduce: 1. Start xl2tpd 2. Try to set up a ppp tunnel Actual results: Failure, log messages as above. Expected results: A functional ppp0 interface. Additional info:
Just realised the problem with xl2tpd lies somewhere else: the second log line gives an indication. It's something to do with /dev/pts permissions. In fact, if I completely disable SELinux I have no problems with xl2tpd or pppd. Sorry for the red herring. -- Steven
This is related to Bug 748724 (I have almost exactly the same problem - xl2tpd-1.3.1-1.fc16.i686 Similar setup in Fedora 8 works without problem. Jan 24 20:20:35 p320g--f16 xl2tpd[7002]: Connection established to 192.168.0.98, 1701. Local: 32045, Remote: 1 (ref=0/0). LNS session is 'default' Jan 24 20:20:35 p320g--f16 xl2tpd[7002]: getPtyMaster_ptmx: unable to open /dev/ptmx to allocate pty Jan 24 20:20:35 p320g--f16 xl2tpd[7002]: getPtyMaster: failed to use pts -- using legacy ptys Jan 24 20:20:35 p320g--f16 xl2tpd[7002]: getPtyMaster_pty: No more free pseudo-tty's Jan 24 20:20:35 p320g--f16 xl2tpd[7002]: start_pppd: unable to allocate pty, abandoning! ...