IPoE sessions problem

IPoE related questions
Post Reply
elc
Posts: 15
Joined: 30 Jun 2016, 07:13

IPoE sessions problem

Post by elc »

Hi.
i need to configure accel-ppp as ipoe shaper with radius but cant even get any sessions
Network scheme:
internet<->(*.*.*.76)router(192.168.5.3/25)<->(192.168.5.123/25)Accel(192.168.5.144/25)<->(192.168.5.250/25)Client
Router works on ubuntu 14.04, Accel - 16.04, client - Debian8
fowarding is configured and all works good.
ping from client:
Спойлер

Code: Select all

 Host                                                                                                                                    Loss%   Snt   Last   Avg  Best  Wrst StDev
 1. 192.168.5.144                                                                                                                         0.0%     3    0.4   0.4   0.3   0.4   0.0
 2. 192.168.5.3                                                                                                                           0.0%     3    0.5   0.5   0.4   0.5   0.0
 3. 10.0.0.1                                                                                                                              0.0%     3    0.7   1.0   0.7   1.3   0.0
 4. google-ix.giganet.ua                                                                                                                  0.0%     3   12.3  12.3  12.3  12.4   0.0
 5. 216.239.46.121                                    
Accel-ppp was compiled without and errors from source (git://git.code.sf.net/p/accel-ppp/code accel-ppp-code)
ipoe.ko loaded
Спойлер

Code: Select all

# lsmod | grep ipoe
ipoe                   36864  0
accel-ppp.conf:
Спойлер

Code: Select all

[modules]
log_file
log_syslog
ipoe
#auth
#auth_mschap_v2
#auth_mschap_v1
#auth_chap_md5
#auth_pap
radius
#shaper


[core]
log-error=/var/log/accel-ppp/core.log
thread-count=4
[common]

[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
copy=1
level=3

#[auth]
#any-login=1


[ipoe]
verbose=9
unit-cache=2000
shared=1
ifcfg=0
mode=L2
ip-unnumbered=1
proxy-arp=0
proto=100
local-net=192.168.5.128/25
start=up
interface=enp5s4
gw-ip-address=192.168.5.3/25

[radius]
nas-identifier=Accel-PPP
nas-ip-address=192.168.5.123
server=192.168.5.3,testing123,auth-port=1812,acct-port=1813,req-limit=50,fail-timeout=0,max-fail=10,weight=1
verbose=1
max-try=3
acct-timeout=120
acct-on=0


#[shaper]
#attr=Filter-Id
#ifb=ifb0
#up-limiter=htb
#down-limiter=htb
#cburst=1375000
#r2q=10
#quantum=1500
#leaf-qdisc=sfq perturb 10
#verbose=1
#down-burst-factor=0.1
#up-burst-factor=1.0
#rate-multiplier=1
#fwmark=1
#verbose=1


[cli]
verbose=1
telnet=127.0.0.1:2000
tcp=127.0.0.1:2001

radtest:
Спойлер

Code: Select all

# radtest 192.168.5.250 192.168.5.250 192.168.5.3 31812 testing123
Sending Access-Request of id 95 to 192.168.5.3 port 1812
        User-Name = "192.168.5.250"
        User-Password = "192.168.5.250"
        NAS-IP-Address = 127.0.1.1
        NAS-Port = 31812
        Message-Authenticator = 0x00000000000000000000000000000000
rad_recv: Access-Accept packet from host 192.168.5.3 port 1812, id=95, length=20
but there is no active sessions :(
# accel-cmd show sessions
ifname | username | calling-sid | ip | type | comp | state | uptime
--------+----------+-------------+----+------+------+-------+--------

# accel-cmd show stat
Спойлер

Code: Select all

uptime: 0.00:00:31
cpu: 0%
mem(rss/virt): 4868/201100 kB
core:
  mempool_allocated: 134491
  mempool_available: 132099
  thread_count: 4
  thread_active: 1
  context_count: 9
  context_sleeping: 0
  context_pending: 0
  md_handler_count: 5
  md_handler_pending: 0
  timer_count: 0
  timer_pending: 0
sessions:
  starting: 0
  active: 0
  finishing: 0
ipoe:
  starting: 0
  active: 0
  delayed: 0
radius(1, 192.168.5.3):
  state: active
  fail count: 0
  request count: 0
  queue length: 0
  auth sent: 0
  auth lost(total/5m/1m): 0/0/0
  auth avg query time(5m/1m): 0/0 ms
  acct sent: 0
  acct lost(total/5m/1m): 0/0/0
  acct avg query time(5m/1m): 0/0 ms
  interim sent: 0
  interim lost(total/5m/1m): 0/0/0
  interim avg query time(5m/1m): 0/0 ms
and there is no output when im starting accel
Спойлер

Code: Select all

# accel-pppd -c /etc/accel-ppp.conf




Silence is logs ... if uncomment auth in config then there are errors in log at accel starting
[2016-07-01 11:29:20.84]loader: 'auth' not found

There is no info in wiki how to initialize a session in situation like i have
Im sure im doing something wrong but don't know what ... please help :!:

Thx
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: IPoE sessions problem

Post by Dmitry »

hi,
please set [log] level=5 and show logs
elc
Posts: 15
Joined: 30 Jun 2016, 07:13

Re: IPoE sessions problem

Post by elc »

[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
copy=1
level=5

root 3372 0.0 0.1 201100 4936 pts/2 Sl+ 13:02 0:00 | \_ accel-pppd -c /etc/accel-ppp.conf

# tailf /var/log/accel-ppp/core.log /var/log/accel-ppp/accel-ppp.log /var/log/accel-ppp/emerg.log /var/log/accel-ppp/auth-fail.log

^C

# accel-cmd show sessions
ifname | username | calling-sid | ip | type | comp | state | uptime
--------+----------+-------------+----+------+------+-------+--------


looks like accel dont see any packages to create session
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: IPoE sessions problem

Post by Dmitry »

there must be at least "accel-ppp version ..." message in the logs
elc
Posts: 15
Joined: 30 Jun 2016, 07:13

Re: IPoE sessions problem

Post by elc »

Thx for reply

its realy very strange ... i've recompiled accel-ppp - same problem ... nothing in logs, then i've removed accel-ppp and installed from deb package that i've made on other server - again nothing in logs ...
ok... i have 1 more server with accel, and in there is version in logs but kernel errors too

root@ipoe:~# accel-pppd -c /etc/accel-ppp.conf

Logs
[2016-07-01 16:38:35]: debug: libnetlink: RTNETLINK answers: Operation not supported
[2016-07-01 16:38:35]: error: ipoe: nl_add_net: error talking to kernel
[2016-07-01 16:38:35]: debug: libnetlink: RTNETLINK answers: Invalid argument
[2016-07-01 16:38:35]: error: ipoe: nl_del_iface: error talking to kernel
[2016-07-01 16:38:35]: debug: libnetlink: RTNETLINK answers: Operation not supported
[2016-07-01 16:38:35]: error: ipoe: nl_add_iface: error talking to kernel
[2016-07-01 16:38:35]: info: ipoe: start interface ens3:0 ()
[2016-07-01 16:38:35]: debug: libnetlink: RTNETLINK answers: Invalid argument
[2016-07-01 16:38:35]: error: ipoe: nl_del_net: error talking to kernel
[2016-07-01 16:38:35]: debug: libnetlink: RTNETLINK answers: Invalid argument
[2016-07-01 16:38:35]: error: ipoe: nl_add_net: error talking to kernel
[2016-07-01 16:38:35]: debug: libnetlink: RTNETLINK answers: Invalid argument
[2016-07-01 16:38:35]: error: ipoe: nl_del_vlan_mon: error talking to kernel
[2016-07-01 16:38:35]: msg: accel-ppp version 1.10.2


config if needed:
Спойлер

Code: Select all

[modules]
log_file
log_syslog
ipoe
auth
auth_mschap_v2
auth_mschap_v1
auth_chap_md5
auth_pap
radius
shaper


[core]
log-error=/var/log/accel-ppp/core.log
thread-count=4
[common]

[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
copy=1
level=5

[auth]
any-login=1


[ipoe]
verbose=9
unit-cache=2000
shared=1
ifcfg=0
mode=L3
ip-unnumbered=1
proxy-arp=0
proto=100
local-net=10.0.0.0/8
start=up
interface=ens3:0
gw-ip-address=10.0.0.1/8

[radius]
nas-identifier=Accel-PPP
nas-ip-address=10.0.0.107
server=#RAD_IP,testing123,auth-port=1812,acct-port=1813,req-limit=50,fail-timeout=0,max-fail=10,weight=1
verbose=1
max-try=3
acct-timeout=120
acct-on=0


[shaper]
attr=Filter-Id
ifb=ifb0
up-limiter=htb
down-limiter=htb
cburst=1375000
r2q=10
quantum=1500
leaf-qdisc=sfq perturb 10
verbose=1
down-burst-factor=0.1
up-burst-factor=1.0
rate-multiplier=1
fwmark=1
verbose=1


[cli]
verbose=1
telnet=127.0.0.1:2000
tcp=127.0.0.1:2001
haven't found anything about this errors ... any ideas ?
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: IPoE sessions problem

Post by Dmitry »

i don't see "ipoe: start interface ...' message
btw, don't use enp3:0, it doesn't make sense
accel-ppp works with physical interfaces, not aliases
elc
Posts: 15
Joined: 30 Jun 2016, 07:13

Re: IPoE sessions problem

Post by elc »

Собрал 1.10.0 - сессии появились... с другими версиями - никак не получается почему то, хотя собирается без ошибок.

Думаю топик - не самый информативный... можно удалять. Спасибо
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: IPoE sessions problem

Post by Dmitry »

при сборке новой версии перезагружаешь ли ipoe.ko и vlan_mon.ko новой сборки ?
elc
Posts: 15
Joined: 30 Jun 2016, 07:13

Re: IPoE sessions problem

Post by elc »

ipoe.ko - да ... vlan_mon.ko нет.
в принципе vlan у меня нигде не используется , но спасибо попробую
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: IPoE sessions problem

Post by Dmitry »

да, вижу по конфигу что не используется, тогда нет смысла его загружать
Post Reply