soft-terminate=1 падение

Bug reports
Post Reply
S@BRE
Posts: 2
Joined: 11 Sep 2016, 09:57

soft-terminate=1 падение

Post by S@BRE »

Здравствуйте. использую accel 1.11.0 со следующим конфигом:
Спойлер
[modules]
log_file
ipoe
radius
ippool
shaper

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

[common]
#single-session=replace
#sid-case=upper
#sid-source=seq

[ipoe]
verbose=10
username=ifname
#password=username
lease-time=120
renew-time=60
max-lease-time=1200
unit-cache=1000
#l4-redirect-table=4
#l4-redirect-ipset=l4
l4-redirect-on-reject=300
l4-redirect-ip-pool=nomoney
shared=1
ifcfg=1
mode=L2
start=dhcpv4
ip-unnumbered=1
#proxy-arp=0
#nat=0
#proto=100
#relay=10.10.10.10
#attr-dhcp-client-ip=DHCP-Client-IP-Address
#attr-dhcp-router-ip=DHCP-Router-IP-Address
#attr-dhcp-mask=DHCP-Mask
#attr-dhcp-lease-time=DHCP-Lease-Time
#attr-dhcp-opt82=DHCP-Option82
#attr-dhcp-opt82-remote-id=DHCP-Agent-Remote-Id
#attr-dhcp-opt82-circuit-id=DHCP-Agent-Circuit-Id
#attr-l4-redirect=L4-Redirect
#attr-l4-redirect-table=4
#attr-l4-redirect-ipset=l4-redirect
local-net=172.16.0.0/16
#lua-file=/etc/accel-ppp.lua
#offer-delay=0,100:100,200:200,-1:1000
vlan-mon=eth1,10-200
#vlan-timeout=60
vlan-name=%I.%N
#ip-pool=ipoe
idle-timeout=120
session-timeout=120
soft-terminate=1
check-mac-change=1
#calling-sid=mac
interface=re:^eth1.*$
gw-ip-address=172.16.1.1/24
gw-ip-address=172.16.2.1/24
gw-ip-address=172.16.254.1/24
gw-ip-address=172.16.255.1/24


[dns]
#dns1=172.16.0.1
#dns2=172.16.1.1

[radius]
#dictionary=/usr/local/share/accel-ppp/radius/dictionary
nas-identifier=accel-ppp
nas-ip-address=127.0.0.1
#gw-ip-address=192.168.100.1
server=127.0.0.1,testing123,auth-port=1812,acc-port-1813,req-limit=50,fail-timeout=0,max-fail=10,weight=1
dae-server=127.0.0.1:3799,testing123
verbose=10
timeout=3
max-try=3
acct-timeout=0
acct-interim-interval=0
#acct-delay-time=0
#acct-on=0
#attr-tunnel-type=My-Tunnel-Type

[client-ip-range]
10.0.0.0/8

[ip-pool]
#vendor=Cisco
#attr=Cisco-AVPair
attr=Framed-Pool
gw-ip-address=172.16.1.1/24
gw-ip-address=172.16.2.1/24
gw-ip-address=172.16.254.1/24
gw-ip-address=172.16.255.1/24
172.16.255.2-255,name=nomoney
172.16.254.2-255,name=invalid
172.16.1.2-255,name=grey
172.16.2.2-255,name=white

[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
#log-tcp=127.0.0.1:3000
copy=1
#color=1
#per-user-dir=per_user
#per-session-dir=per_session
#per-session=1
level=3

[shaper]
#attr=Filter-Id
#down-burst-factor=0.1
#up-burst-factor=1.0
#latency=50
#mpu=0
#mtu=0
#r2q=10
#quantum=1500
#moderate-quantum=1
#cburst=1534
#ifb=ifb0
up-limiter=police
down-limiter=tbf
#leaf-qdisc=sfq perturb 10
#leaf-qdisc=fq_codel [limit PACKETS] [flows NUMBER] [target TIME] [interval TIME] [quantum BYTES] [[no]ecn]
#rate-multiplier=1
#fwmark=1
verbose=1

[cli]
verbose=1
telnet=127.0.0.1:2000
tcp=127.0.0.1:2001
#password=123
accel-ppp.log:
Спойлер
2016-09-11 12:31:45]: msg: accel-ppp version 1.11.0
[2016-09-11 12:32:40]: info: ipoe0: send [RADIUS(1) Access-Request id=1 <User-Name "eth1.20"> <NAS-Identifier "accel-ppp"> <NAS-IP-Address 127.0.0.1> <NAS-Port 422> <NAS-Port-Id "ipoe0"> <NAS-Port-Type Ethernet> <Calling-Station-Id "3a:39:63:61:37:39"> <Called-Station-Id "eth1.20"> <User-Password >]
[2016-09-11 12:32:40]: info: ipoe0: recv [RADIUS(1) Access-Accept id=1 <Session-Timeout 120> <Framed-Pool "grey">]
[2016-09-11 12:32:40]: info: ipoe0: eth1.20: authentication succeeded
[2016-09-11 12:32:50]: info: ipoe0: ipoe: session finished
[2016-09-11 12:33:16]: info: ipoe0: send [RADIUS(1) Access-Request id=1 <User-Name "eth1.20"> <NAS-Identifier "accel-ppp"> <NAS-IP-Address 127.0.0.1> <NAS-Port 422> <NAS-Port-Id "ipoe0"> <NAS-Port-Type Ethernet> <Calling-Station-Id "3a:39:63:61:37:39"> <Called-Station-Id "eth1.20"> <User-Password >]
[2016-09-11 12:33:16]: info: ipoe0: recv [RADIUS(1) Access-Accept id=1 <Session-Timeout 120> <Framed-Pool "grey">]
[2016-09-11 12:33:16]: info: ipoe0: eth1.20: authentication succeeded
[2016-09-11 12:33:16]: info: ipoe0: send [RADIUS(1) Accounting-Request id=1 <User-Name "eth1.20"> <NAS-Identifier "accel-ppp"> <NAS-IP-Address 127.0.0.1> <NAS-Port 422> <NAS-Port-Id "ipoe0"> <NAS-Port-Type Ethernet> <Calling-Station-Id "3a:39:63:61:37:39"> <Called-Station-Id "eth1.20"> <Acct-Status-Type Start> <Acct-Authentic RADIUS> <Acct-Session-Id "defecdef8cb3aecf"> <Acct-Session-Time 0> <Acct-Input-Octets 0> <Acct-Output-Octets 0> <Acct-Input-Packets 0> <Acct-Output-Packets 0> <Acct-Input-Gigawords 0> <Acct-Output-Gigawords 0> <Framed-IP-Address 172.16.1.3>]
[2016-09-11 12:33:16]: info: ipoe0: recv [RADIUS(1) Accounting-Response id=1]
[2016-09-11 12:33:16]: info: ipoe0: ipoe: session started
[2016-09-11 12:35:16]: msg: ipoe0: session timeout
[2016-09-11 12:35:52]: info: ipoe0: send [RADIUS(1) Accounting-Request id=1 <User-Name "eth1.20"> <NAS-Identifier "accel-ppp"> <NAS-IP-Address 127.0.0.1> <NAS-Port 422> <NAS-Port-Id "ipoe0"> <NAS-Port-Type Ethernet> <Calling-Station-Id "3a:39:63:61:37:39"> <Called-Station-Id "eth1.20"> <Acct-Status-Type Stop> <Acct-Authentic RADIUS> <Acct-Session-Id "defecdef8cb3aecf"> <Acct-Session-Time 120> <Acct-Input-Octets 984> <Acct-Output-Octets 1412> <Acct-Input-Packets 3> <Acct-Output-Packets 11> <Acct-Input-Gigawords 0> <Acct-Output-Gigawords 0> <Framed-IP-Address 172.16.1.3> <Acct-Terminate-Cause Session-Timeout>]
[2016-09-11 12:35:52]: info: ipoe0: ipoe: session finished
[2016-09-11 12:35:52]: info: recv [RADIUS(1) Accounting-Response id=1]
[2016-09-11 12:35:52]: info: ipoe0: send [RADIUS(1) Access-Request id=1 <User-Name "eth1.20"> <NAS-Identifier "accel-ppp"> <NAS-IP-Address 127.0.0.1> <NAS-Port 422> <NAS-Port-Id "ipoe0"> <NAS-Port-Type Ethernet> <Calling-Station-Id "3a:39:63:61:37:39"> <Called-Station-Id "eth1.20"> <User-Password >]
[2016-09-11 12:35:52]: info: ipoe0: recv [RADIUS(1) Access-Accept id=1 <Session-Timeout 120> <Framed-Pool "grey">]
[2016-09-11 12:35:52]: info: ipoe0: eth1.20: authentication succeeded
[2016-09-11 12:35:52]: info: ipoe0: send [RADIUS(1) Accounting-Request id=1 <User-Name "eth1.20"> <NAS-Identifier "accel-ppp"> <NAS-IP-Address 127.0.0.1> <NAS-Port 422> <NAS-Port-Id "ipoe0"> <NAS-Port-Type Ethernet> <Calling-Station-Id "3a:39:63:61:37:39"> <Called-Station-Id "eth1.20"> <Acct-Status-Type Start> <Acct-Authentic RADIUS> <Acct-Session-Id "defecdef8cb3aed0"> <Acct-Session-Time 0> <Acct-Input-Octets 0> <Acct-Output-Octets 0> <Acct-Input-Packets 0> <Acct-Output-Packets 0> <Acct-Input-Gigawords 0> <Acct-Output-Gigawords 0> <Framed-IP-Address 172.16.1.4>]
[2016-09-11 12:35:52]: info: ipoe0: recv [RADIUS(1) Accounting-Response id=1]
[2016-09-11 12:35:52]: info: ipoe0: ipoe: session started
[2016-09-11 12:37:52]: msg: ipoe0: session timeout
[2016-09-11 12:38:36]: info: ipoe0: send [RADIUS(1) Accounting-Request id=1 <User-Name "eth1.20"> <NAS-Identifier "accel-ppp"> <NAS-IP-Address 127.0.0.1> <NAS-Port 422> <NAS-Port-Id "ipoe0"> <NAS-Port-Type Ethernet> <Calling-Station-Id "3a:39:63:61:37:39"> <Called-Station-Id "eth1.20"> <Acct-Status-Type Stop> <Acct-Authentic RADIUS> <Acct-Session-Id "defecdef8cb3aed0"> <Acct-Session-Time 120> <Acct-Input-Octets 984> <Acct-Output-Octets 1412> <Acct-Input-Packets 3> <Acct-Output-Packets 11> <Acct-Input-Gigawords 0> <Acct-Output-Gigawords 0> <Framed-IP-Address 172.16.1.4> <Acct-Terminate-Cause Session-Timeout>]
[2016-09-11 12:38:36]: info: ipoe0: ipoe: session finished
[2016-09-11 12:38:36]: info: recv [RADIUS(1) Accounting-Response id=1]
после этого в emerg.log появляется
radius:BUG: rpd not found
и accel падает. Дамп в приложении.
Attachments
core-accel-pppd-1473587737.tar.gz
(207.56 KiB) Downloaded 130 times
S@BRE
Posts: 2
Joined: 11 Sep 2016, 09:57

Re: soft-terminate=1 падение

Post by S@BRE »

и хотел бы уточнить по поводу параметра gw-ip-address в секции ip-pool. Без него в логах ошибка "error: ipoe0: no free IPv4 address" (когда адрес присваивается параметром Framed-Pool), но все работает без провблем при его наличии, в независимости от того что в нем указано (пробовал указать для теста 1.1.1.1).
Post Reply