xebd / accel-ppp

High performance PPTP/L2TP/PPPoE/IPoE server for Linux
GNU General Public License v2.0
296 stars 109 forks source link

ccp: failed to get flags: Bad file descriptor #24

Closed mluis closed 6 years ago

mluis commented 6 years ago

I'm getting this error on the log.

Not sure what it means on the .conf file.

xebd commented 6 years ago

can you show more logs around this message preferably with log level 5

mluis commented 6 years ago

Log config.

[log]
log-file=/var/log/accel-ppp/accel-ppp.log
log-emerg=/var/log/accel-ppp/emerg.log
log-fail-file=/var/log/accel-ppp/auth-fail.log
log-debug=/dev/stdout
syslog=accel-pppd,daemon
copy=1
level=5

Produced log:

[2017-12-05 14:36:25]:   msg: accel-ppp version e959ea1bd262441a952ea0c807d553b4a9c38113
[2017-12-05 14:36:29]:  info: tek0.10: recv [PPPoE PADI a4:b1:e9:ac:f7:20 => ff:ff:ff:ff:ff:ff sid=0000 <Service-Name > <Host-Uniq 00> <Relay-Session-Id 00000000a4b1e9acf720>]
[2017-12-05 14:36:29]:  info: tek0.10: send [PPPoE PADO 08:00:27:e3:12:bf => a4:b1:e9:ac:f7:20 sid=0000 <AC-Name > <Service-Name > <AC-Cookie a10d325a733955599307764e18b8ba0957fa652eb28a9f97> <Host-Uniq 00> <Relay-Session-Id 00000000a4b1e9acf720>]
[2017-12-05 14:36:29]:  info: tek0.10: recv [PPPoE PADR a4:b1:e9:ac:f7:20 => 08:00:27:e3:12:bf sid=0000 <Service-Name > <AC-Cookie a10d325a733955599307764e18b8ba0957fa652eb28a9f97> <Host-Uniq 00> <Relay-Session-Id 00000000a4b1e9acf720>]
[2017-12-05 14:36:29]:  info: tek0.10: send [PPPoE PADS 08:00:27:e3:12:bf => a4:b1:e9:ac:f7:20 sid=0001 <AC-Name > <Service-Name > <Host-Uniq 00> <Relay-Session-Id 00000000a4b1e9acf720>]
[2017-12-05 14:36:29]: debug: tek0.10: lcp_layer_init
[2017-12-05 14:36:29]: debug: tek0.10: auth_layer_init
[2017-12-05 14:36:29]: debug: tek0.10: ccp_layer_init
[2017-12-05 14:36:29]: debug: tek0.10: ipcp_layer_init
[2017-12-05 14:36:29]: debug: tek0.10: ipv6cp_layer_init
[2017-12-05 14:36:29]: debug: tek0.10: ppp establishing
[2017-12-05 14:36:29]: debug: tek0.10: lcp_layer_start
[2017-12-05 14:36:29]:  info: tek0.10: send [LCP ConfReq id=1 <mru 1400> <magic 6b8b4567>]
[2017-12-05 14:36:29]:  info: tek0.10: recv [LCP ConfReq id=1 <mru 1492> <magic 14ae793d>]
[2017-12-05 14:36:29]:  info: tek0.10: send [LCP ConfAck id=1 ]
[2017-12-05 14:36:32]: debug: tek0.10: fsm timeout 9
[2017-12-05 14:36:32]:  info: tek0.10: send [LCP ConfReq id=1 <mru 1400> <magic 6b8b4567>]
[2017-12-05 14:36:32]:  info: tek0.10: recv [LCP ConfAck id=1 <mru 1400> <magic 6b8b4567>]
[2017-12-05 14:36:32]: debug: tek0.10: lcp_layer_started
[2017-12-05 14:36:32]: debug: tek0.10: auth_layer_start
[2017-12-05 14:36:32]: debug: tek0.10: auth_layer_started
[2017-12-05 14:36:32]: debug: tek0.10: ccp_layer_start
[2017-12-05 14:36:32]: error: tek0.10: ccp: failed to get flags: Bad file descriptor
[2017-12-05 14:36:32]: debug: tek0.10: ipcp_layer_start
[2017-12-05 14:36:32]:  warn: tek0.10: ppp: no free IPv4 address
[2017-12-05 14:36:32]: debug: tek0.10: terminate
[2017-12-05 14:36:32]: debug: tek0.10: lcp_layer_finish
[2017-12-05 14:36:32]:  info: tek0.10: send [LCP TermReq id=3]
[2017-12-05 14:36:32]: debug: tek0.10: auth_layer_finish
[2017-12-05 14:36:32]: debug: tek0.10: auth_layer_finished
[2017-12-05 14:36:32]: debug: tek0.10: ccp_layer_finish
[2017-12-05 14:36:32]: error: tek0.10: ccp: failed to get flags: Bad file descriptor
[2017-12-05 14:36:32]: debug: tek0.10: ccp_layer_finished
[2017-12-05 14:36:32]: debug: tek0.10: ipcp_layer_finish
[2017-12-05 14:36:32]: debug: tek0.10: ipcp_layer_finished
[2017-12-05 14:36:32]:  info: tek0.10: send [LCP ProtoRej id=4 <8021>]
[2017-12-05 14:36:32]:  info: tek0.10: recv [LCP TermAck id=3]
[2017-12-05 14:36:32]:  info: tek0.10: send [LCP ConfReq id=4 <mru 1400> <magic 6b8b4567>]
[2017-12-05 14:36:35]: debug: tek0.10: fsm timeout 9
[2017-12-05 14:36:35]:  info: tek0.10: recv [PPPoE PADT a4:b1:e9:ac:f7:20 => 08:00:27:e3:12:bf sid=0001]
[2017-12-05 14:36:35]: debug: tek0.10: pppoe: ppp finished
[2017-12-05 14:36:35]: debug: tek0.10: lcp_layer_free
[2017-12-05 14:36:35]: debug: tek0.10: auth_layer_free
[2017-12-05 14:36:35]: debug: tek0.10: ccp_layer_free
[2017-12-05 14:36:35]: debug: tek0.10: ipcp_layer_free
[2017-12-05 14:36:35]: debug: tek0.10: ipv6cp_layer_free
[2017-12-05 14:36:35]:  info: tek0.10: send [PPPoE PADT 08:00:27:e3:12:bf => a4:b1:e9:ac:f7:20 sid=0001 <AC-Name > <Service-Name > <Relay-Session-Id 00000000a4b1e9acf720>]
[2017-12-05 14:36:35]:  info: tek0.10: disconnected
xebd commented 6 years ago

i guess it is noauth=1 ?

mluis commented 6 years ago

Yes! It's noauth=0.