ccp: failed to get flags

Compilation and installation questions and stories
Post Reply
Axiator
Posts: 14
Joined: 22 Feb 2017, 16:06

ccp: failed to get flags

Post by Axiator » 22 Feb 2017, 16:15

Добрый день.

На debian 8, ядро 3.16.0-4-amd64 не работают у меня версии accel-ppp выше 1.9
Собираю так: cmake -DSHAPER=FALSE -DRADIUS=TRUE, проходит всё нормально, потом make install и тоже всё хорошо.
Запускается, но не работает.

В логе такое:
[2017-02-22 19:07:54]: msg: accel-ppp version 1.11.0
[2017-02-22 19:08:24]: info: eth2: recv [PPPoE PADI c8:3a:35:0e:84:e8 => ff:ff:ff:ff:ff:ff sid=0000 <Service-Name > <Host-Uniq c83a350e84e80000>]
[2017-02-22 19:08:24]: info: eth2: send [PPPoE PADO a0:36:9f:02:fc:3a => c8:3a:35:0e:84:e8 sid=0000 <AC-Name accel-ppp> <Service-Name > <AC-Cookie 37ee394a0bb9df16b81c4fca90e5e4910376f295dc5d0e6b> <Host-Uniq c83a350e84e80000>]
[2017-02-22 19:08:24]: info: eth2: recv [PPPoE PADR c8:3a:35:0e:84:e8 => a0:36:9f:02:fc:3a sid=0000 <Service-Name > <Host-Uniq c83a350e84e80000> <AC-Cookie 37ee394a0bb9df16b81c4fca90e5e4910376f295dc5d0e6b> <AC-Name accel-ppp>]
[2017-02-22 19:08:24]: info: eth2: send [PPPoE PADS a0:36:9f:02:fc:3a => c8:3a:35:0e:84:e8 sid=0001 <AC-Name accel-ppp> <Service-Name > <Host-Uniq c83a350e84e80000>]
[2017-02-22 19:08:24]: info: eth2: send [LCP ConfReq id=1 <mru 1400> <magic 6b8b4567>]
[2017-02-22 19:08:24]: info: eth2: recv [LCP ConfReq id=1 <mru 1492> <magic 8c5998f3>]
[2017-02-22 19:08:24]: info: eth2: send [LCP ConfAck id=1 ]
[2017-02-22 19:08:27]: info: eth2: send [LCP ConfReq id=1 <mru 1400> <magic 6b8b4567>]
[2017-02-22 19:08:27]: info: eth2: recv [LCP ConfAck id=1 <mru 1400> <magic 6b8b4567>]
[2017-02-22 19:08:27]: error: eth2: ccp: failed to get flags: Bad file descriptor
[2017-02-22 19:08:27]: error: eth2: ccp: failed to get flags: Bad file descriptor
[2017-02-22 19:08:27]: info: eth2: send [LCP TermReq id=3]
[2017-02-22 19:08:27]: error: eth2: ccp: failed to get flags: Bad file descriptor
[2017-02-22 19:08:27]: info: eth2: send [LCP ProtoRej id=4 <8021>]
[2017-02-22 19:08:27]: info: eth2: recv [LCP TermAck id=3]
[2017-02-22 19:08:27]: info: eth2: send [LCP ConfReq id=4 <mru 1400> <magic 6b8b4567>]
[2017-02-22 19:08:32]: info: eth2: recv [PPPoE PADT c8:3a:35:0e:84:e8 => a0:36:9f:02:fc:3a sid=0001]
[2017-02-22 19:08:32]: info: eth2: send [PPPoE PADT a0:36:9f:02:fc:3a => c8:3a:35:0e:84:e8 sid=0001 <AC-Name accel-ppp> <Service-Name >]
[2017-02-22 19:08:32]: info: eth2: disconnected
[2017-02-22 19:08:33]: info: eth2: recv [PPPoE PADI c8:3a:35:0e:84:e8 => ff:ff:ff:ff:ff:ff sid=0000 <Service-Name > <Host-Uniq c83a350e84e80000>]
[2017-02-22 19:08:33]: info: eth2: send [PPPoE PADO a0:36:9f:02:fc:3a => c8:3a:35:0e:84:e8 sid=0000 <AC-Name accel-ppp> <Service-Name > <AC-Cookie 37ee394a0bb9df16b81c4fca90e5e49144f7f7901ee24db0> <Host-Uniq c83a350e84e80000>]
[2017-02-22 19:08:33]: info: eth2: recv [PPPoE PADR c8:3a:35:0e:84:e8 => a0:36:9f:02:fc:3a sid=0000 <Service-Name > <Host-Uniq c83a350e84e80000> <AC-Cookie 37ee394a0bb9df16b81c4fca90e5e49144f7f7901ee24db0> <AC-Name accel-ppp>]
[2017-02-22 19:08:33]: info: eth2: send [PPPoE PADS a0:36:9f:02:fc:3a => c8:3a:35:0e:84:e8 sid=0040 <AC-Name accel-ppp> <Service-Name > <Host-Uniq c83a350e84e80000>]
[2017-02-22 19:08:33]: info: eth2: send [LCP ConfReq id=1 <mru 1400> <magic 327b23c6>]
[2017-02-22 19:08:33]: info: eth2: recv [LCP ConfReq id=1 <mru 1492> <magic a591dcfa>]
[2017-02-22 19:08:33]: info: eth2: send [LCP ConfAck id=1 ]

Никто с таким не сталкивался? В какую сторону копать?
Спасибо.

dimka88
Posts: 394
Joined: 13 Oct 2014, 05:51
Contact:

Re: ccp: failed to get flags

Post by dimka88 » 22 Feb 2017, 16:36

ccp в секции ppp в 0 попробуйте выставить.

Axiator
Posts: 14
Joined: 22 Feb 2017, 16:06

Re: ccp: failed to get flags

Post by Axiator » 22 Feb 2017, 18:29

Спасибо за совет. К сожалению, не очень помогло.

[2017-02-22 21:28:34]: error: eth2: ccp: failed to get flags: Bad file descriptor
[2017-02-22 21:28:34]: info: eth2: send [IPCP ConfReq id=1 <addr 10.128.0.2>]
[2017-02-22 21:28:34]: error: eth2: ppp_unit_send: short write -1, excpected 12
[2017-02-22 21:28:34]: info: eth2: send [LCP ProtoRej id=3 <8021>]
[2017-02-22 21:28:37]: info: eth2: send [IPCP ConfReq id=1 <addr 10.128.0.2>]
[2017-02-22 21:28:37]: error: eth2: ppp_unit_send: short write -1, excpected 12
[2017-02-22 21:28:40]: info: eth2: send [IPCP ConfReq id=1 <addr 10.128.0.2>]
[2017-02-22 21:28:40]: error: eth2: ppp_unit_send: short write -1, excpected 12
[2017-02-22 21:28:43]: info: eth2: send [IPCP ConfReq id=1 <addr 10.128.0.2>]
[2017-02-22 21:28:43]: error: eth2: ppp_unit_send: short write -1, excpected 12
[2017-02-22 21:28:46]: info: eth2: send [IPCP ConfReq id=1 <addr 10.128.0.2>]
[2017-02-22 21:28:46]: error: eth2: ppp_unit_send: short write -1, excpected 12
[2017-02-22 21:28:49]: info: eth2: send [IPCP ConfReq id=1 <addr 10.128.0.2>]
[2017-02-22 21:28:49]: error: eth2: ppp_unit_send: short write -1, excpected 12

Axiator
Posts: 14
Joined: 22 Feb 2017, 16:06

Re: ccp: failed to get flags

Post by Axiator » 22 Feb 2017, 19:12

Я порылся по гиту и видимо вот e4b4e0e ppp: create ppp units after authentication

#auth_mschap_v2
#auth_mschap_v1
#auth_chap_md5
#auth_pap
#chap-secrets
#radius

У нас как раз стоит задача сейчас пускать всех подряд, поэтому авторизация выключена. Можно как-то это обойти?
В смысле, чтобы устройства создавались и без авторизации, если нужно?

Спасибо.

dimka88
Posts: 394
Joined: 13 Oct 2014, 05:51
Contact:

Re: ccp: failed to get flags

Post by dimka88 » 23 Feb 2017, 20:55

Я не уверен что получится, но можно попробовать через chap-secrets звездочками.

Axiator
Posts: 14
Joined: 22 Feb 2017, 16:06

Re: ccp: failed to get flags

Post by Axiator » 24 Feb 2017, 18:21

Спасибо за совет.

У нас как-то получилось, когда включили
auth_mschap_v2
auth_mschap_v1
auth_chap_md5
auth_pap

и поставили
[auth]
any-login=1
noauth=1

После этого больше опытов не проводили пока.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest