QinQ+радиус

IPoE related questions
mugur1
Posts: 15
Joined: 23 Jan 2015, 03:32

QinQ+радиус

Post by mugur1 »

Добрый день!
В продолжении темы http://forum.nag.ru/forum/index.php?sho ... &p=1068509.

Собрал accel вот так
cmake /root/accel-ppp-code -DBUILD_IPOE_DRIVER=TRUE -DMEMDEBUG=TRUE -DKDIR=/usr/src/linux-headers-`uname -r` -DBUILD_DRIVER=FALSE -DRADIUS=TRUE -DNETSNMP=TRUE -DSHAPER=TRUE -DLOG_PGSQL=FALSE -DLUA=TRUE -DBUILD_IPOE_DRIVER=TRUE

Но все же core.log пустой.
Attachments
Documents.rar
(19.12 KiB) Downloaded 119 times
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: QinQ+радиус

Post by Dmitry »

приведи ещё раз конфиг
mugur1
Posts: 15
Joined: 23 Jan 2015, 03:32

Re: QinQ+радиус

Post by mugur1 »

хорошо, вот все что есть.
https://cloud.mail.ru/public/47db81e665a6/Documents.rar
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: QinQ+радиус

Post by Dmitry »

я вижу есть core файл
открой его в gdb: gdb /usr/local/sbin/accel-pppd core
и выполни bt full
mugur1
Posts: 15
Joined: 23 Jan 2015, 03:32

Re: QinQ+радиус

Post by mugur1 »

Вот результат

root@ipoe:/# gdb /usr/local/sbin/accel-pppd core
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/sbin/accel-pppd...done.
[New LWP 27287]

warning: Can't read pathname for load map: Ошибка ввода/вывода.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/local/sbin/accel-pppd -d -p /var/run/accel-pppd.pid -c /etc/accel-ppp.conf'.
Program terminated with signal 6, Aborted.
#0 0x00007f159102f165 in raise () from /lib/x86_64-linux-gnu/libc.so.6




(gdb) bt full
#0 0x00007f159102f165 in raise () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x00007f15910323e0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2 0x000000000042b2ae in sigsegv (num=11) at /root/accel-ppp.git/accel-pppd/main.c:203
cmd = '\000' <repeats 4095 times>
fname = '\000' <repeats 127 times>
exec_file = '\000' <repeats 2664 times>, "(gE\213\025\177\000\000\005\000\000\000\000\000\000\000\377\377\377\377\377\377\377\377\000\000\000\000\000\000\000\000\220gE\213\025\177\000\000\200gE\213\025\177\000\000\340bE\213\025\177\000\000\377\377\377\377", '\000' <repeats 12 times>, "\001\000\000\000\000\000\000\000\204\321\004\221\025\177\000\000\067", '\000' <repeats 23 times>, "\001\000\000\000\000\000\000\000`\\\234\000\000\000\000\000\000T\024\221\025\177\000\000\001\000\000\000\000\000\000\000\270e\006\221\025\177\000\000\000", '\001' <repeats 23 times>, "`\\\234\000\000\000\000\000\340iE\213\025\177\000\000\027\000\000\000\000\000\000\000\360iE\213\025\177\000\000\376\361B\000\000\000\000\000`\\\234\000\000\000\000\000`\005\004\221\025\177\000\000\000\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\001", '\000' <repeats 15 times>...
lim = {rlim_cur = 0, rlim_max = 0}
pid = 0
status = 0
#3 <signal handler called>
No symbol table info available.
#4 0x00007f15909cafbb in __ipoe_session_activate (ses=0xa075b8) at /root/accel-ppp.git/accel-pppd/ctrl/ipoe/ipoe.c:919
addr = 0
#5 0x00007f15909cb278 in ipoe_session_activate (pack=0x7f1584016688) at /root/accel-ppp.git/accel-pppd/ctrl/ipoe/ipoe.c:963
ses = 0xa075b8
#6 0x00007f15909cc99f in ipoe_ses_recv_dhcpv4_request (pack=0x7f1584016688) at /root/accel-ppp.git/accel-pppd/ctrl/ipoe/ipoe.c:1349
ses = 0xa075b8
#7 0x00007f159224b146 in ctx_thread (ctx=0xa078f8) at /root/accel-ppp.git/accel-pppd/triton/triton.c:238
h = 0xa075c8
t = 0xa07698
call = 0x7f1584019368
tt = 139730622916445
events = 32533
#8 0x00007f159224ae21 in triton_thread (thread=0xa06db8) at /root/accel-ppp.git/accel-pppd/triton/triton.c:159
set = {__val = {516, 0 <repeats 15 times>}}
sig = 10
need_free = 0
#9 0x00007f1591e28b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#10 0x00007f15910d97bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#11 0x0000000000000000 in ?? ()
No symbol table info available.
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: QinQ+радиус

Post by Dmitry »

исправил
commit c362f0d1dc4b3feef318233007999db206dc3b1a
mugur1
Posts: 15
Joined: 23 Jan 2015, 03:32

Re: QinQ+радиус

Post by mugur1 »

все также

вот лог
cat accel-debug.log |less
[2015-01-28 15:03:07.061] accel-ppp version c362f0d1dc4b3feef318233007999db206dc3b1a
[2015-01-28 15:03:07.064] net-snmp: NET-SNMP version 5.4.3 AgentX subagent connected
[2015-01-28 15:03:20.953] connlimit: check entry 124110537547412
[2015-01-28 15:03:20.953] connlimit: add entry 124110537547412
[2015-01-28 15:03:20.953] connlimit: accept 124110537547412
[2015-01-28 15:03:20.953] eth0.47.48: : recv [DHCPv4 Discover xid=8b8bbfef chaddr=94:de:80:bc:e0:70 <Message-Type Discover> <Client-ID 0194de80bce070> <Host-Name Samsung> <Vendor-Class 4d53465420352e30> <Request-List Subnet,Domain-Name,Router,DNS,44,46,47,31,Route,Classless-Route,249,Vendor-Specific>]
[2015-01-28 15:03:20.955] ipoe0: da724d0051647744: create interface ipoe0 parent eth0.47.48
[2015-01-28 15:03:20.955] ipoe0: da724d0051647744: send [RADIUS(1) Access-Request id=1 <User-Name "eth0.47.48"> <NAS-Identifier "IPOE test"> <NAS-IP-Address 94.230.240.44> <NAS-Port 7975> <NAS-Port-Id "ipoe0"> <NAS-Port-Type Ethernet> <Calling-Station-Id "94:de:80:bc:e0:70"> <Called-Station-Id "eth0.47.48"> <Acct-Session-Id "da724d0051647744"> <User-Password >]
[2015-01-28 15:03:20.963] ipoe0: da724d0051647744: recv [RADIUS(1) Access-Accept id=1 <Session-Timeout 86400> <Service-Type Framed-User> <Framed-Protocol PPP> <Framed-IP-Address 94.230.240.130> <Framed-IP-Netmask 255.255.255.255> <Class > <Acct-Interim-Interval 60>]
[2015-01-28 15:03:20.964] ipoe0: da724d0051647744: eth0.47.48: authentication succeeded
[2015-01-28 15:03:20.964] ipoe0: da724d0051647744: send [DHCPv4 Offer xid=8b8bbfef yiaddr=94.230.240.130 chaddr=94:de:80:bc:e0:70 <Message-Type Offer> <Server-ID 94.230.240.129> <Lease-Time 300> <Router 94.230.240.129> <Subnet 255.255.255.252> <DNS 94.230.240.10,94.230.240.30>]
[2015-01-28 15:03:20.965] ipoe0: da724d0051647744: recv [DHCPv4 Request xid=8b8bbfef chaddr=94:de:80:bc:e0:70 <Message-Type Request> <Client-ID 0194de80bce070> <Request-IP 94.230.240.130> <Server-ID 94.230.240.129> <Host-Name Samsung> <Option-81 00000053616d73756e67> <Vendor-Class 4d53465420352e30> <Request-List Subnet,Domain-Name,Router,DNS,44,46,47,31,Route,Classless-Route,249,Vendor-Specific>]
[2015-01-28 15:03:20.965] ipoe0: da724d0051647744: ipoe: no free IPv6 address
[2015-01-28 15:03:21.017] ipoe: start interface eth0.47.48 ()
[2015-01-28 15:03:21.065] accel-ppp version c362f0d1dc4b3feef318233007999db206dc3b1a
[2015-01-28 15:03:21.068] net-snmp: NET-SNMP version 5.4.3 AgentX subagent connected
[2015-01-28 15:03:24.669] eth0.47.48: recv [DHCPv4 Request xid=8b8bbfef chaddr=94:de:80:bc:e0:70 <Message-Type Request> <Client-ID 0194de80bce070> <Request-IP 94.230.240.130> <Server-ID 94.230.240.129> <Host-Name Samsung> <Option-81 00000053616d73756e67> <Vendor-Class 4d53465420352e30> <Request-List Subnet,Domain-Name,Router,DNS,44,46,47,31,Route,Classless-Route,249,Vendor-Specific>]
[2015-01-28 15:03:24.669] send [DHCPv4 Nak xid=8b8bbfef chaddr=94:de:80:bc:e0:70 <Message-Type Nak>]
[2015-01-28 15:03:28.042] connlimit: check entry 124110537547412
[2015-01-28 15:03:28.042] connlimit: add entry 124110537547412
[2015-01-28 15:03:28.042] connlimit: accept 124110537547412
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: QinQ+радиус

Post by Dmitry »

commit a5473ad84dc884f64bab3208da7f1b30c0a5015b
mugur1
Posts: 15
Joined: 23 Jan 2015, 03:32

Re: QinQ+радиус

Post by mugur1 »

Обновился теперь застрял на другом. В чем я ошибся?

cat accel-debug.log |less

[2015-01-28 15:26:31.013] ipoe: start interface eth0.47.48 ()
[2015-01-28 15:26:31.029] accel-ppp version a5473ad84dc884f64bab3208da7f1b30c0a5015b
[2015-01-28 15:26:31.032] net-snmp: NET-SNMP version 5.4.3 AgentX subagent connected
[2015-01-28 15:26:38.643] connlimit: check entry 124110537547412
[2015-01-28 15:26:38.643] connlimit: add entry 124110537547412
[2015-01-28 15:26:38.643] connlimit: accept 124110537547412
[2015-01-28 15:26:38.643] eth0.47.48: : recv [DHCPv4 Discover xid=b0f3d2de chaddr=94:de:80:bc:e0:70 <Message-Type Discover> <Client-ID 0194de80bce070> <Host-Name Samsung> <Vendor-Class 4d53465420352e30> <Request-List Subnet,Domain-Name,Router,DNS,44,46,47,31,Route,Classless-Route,249,Vendor-Specific>]
[2015-01-28 15:26:38.645] ipoe0: da724d005164a265: create interface ipoe0 parent eth0.47.48
[2015-01-28 15:26:38.645] ipoe0: da724d005164a265: send [RADIUS(1) Access-Request id=1 <User-Name "eth0.47.48"> <NAS-Identifier "IPOE test"> <NAS-IP-Address 94.230.240.44> <NAS-Port 8016> <NAS-Port-Id "ipoe0"> <NAS-Port-Type Ethernet> <Calling-Station-Id "94:de:80:bc:e0:70"> <Called-Station-Id "eth0.47.48"> <Acct-Session-Id "da724d005164a265"> <User-Password >]
[2015-01-28 15:26:38.654] ipoe0: da724d005164a265: recv [RADIUS(1) Access-Accept id=1 <Session-Timeout 86400> <Service-Type Framed-User> <Framed-Protocol PPP> <Framed-IP-Address 94.230.240.130> <Framed-IP-Netmask 255.255.255.255> <Class > <Acct-Interim-Interval 60>]
[2015-01-28 15:26:38.654] ipoe0: da724d005164a265: eth0.47.48: authentication succeeded
[2015-01-28 15:26:38.654] ipoe0: da724d005164a265: send [DHCPv4 Offer xid=b0f3d2de yiaddr=94.230.240.130 chaddr=94:de:80:bc:e0:70 <Message-Type Offer> <Server-ID 94.230.240.129> <Lease-Time 300> <Router 94.230.240.129> <Subnet 255.255.255.252> <DNS 94.230.240.10,94.230.240.30>]
[2015-01-28 15:26:38.655] ipoe0: da724d005164a265: recv [DHCPv4 Request xid=b0f3d2de chaddr=94:de:80:bc:e0:70 <Message-Type Request> <Client-ID 0194de80bce070> <Request-IP 94.230.240.130> <Server-ID 94.230.240.129> <Host-Name Samsung> <Option-81 00000053616d73756e67> <Vendor-Class 4d53465420352e30> <Request-List Subnet,Domain-Name,Router,DNS,44,46,47,31,Route,Classless-Route,249,Vendor-Specific>]
[2015-01-28 15:26:38.655] ipoe0: da724d005164a265: ipoe: no free IPv6 address
[2015-01-28 15:26:38.655] ipoe0: da724d005164a265: send [RADIUS(1) Accounting-Request id=1 <User-Name "eth0.47.48"> <NAS-Identifier "IPOE test"> <NAS-IP-Address 94.230.240.44> <NAS-Port 8016> <NAS-Port-Id "ipoe0"> <NAS-Port-Type Ethernet> <Calling-Station-Id "94:de:80:bc:e0:70"> <Called-Station-Id "eth0.47.48"> <Class > <Acct-Status-Type Start> <Acct-Authentic RADIUS> <Acct-Session-Id "da724d005164a265"> <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 94.230.240.130>]
[2015-01-28 15:26:38.655] ipoe0: da724d005164a265: send [DHCPv4 Ack xid=b0f3d2de yiaddr=94.230.240.130 chaddr=94:de:80:bc:e0:70 <Message-Type Ack> <Server-ID 94.230.240.129> <Lease-Time 300> <Router 94.230.240.129> <Subnet 255.255.255.252> <DNS 94.230.240.10,94.230.240.30>]
[2015-01-28 15:26:38.659] ipoe0: da724d005164a265: recv [RADIUS(1) Accounting-Response id=1]
[2015-01-28 15:26:38.661] ipoe0: da724d005164a265: ipoe: session started
[2015-01-28 15:26:38.662] ipoe0: da724d005164a265: pppd_compat: ip-up started (pid 3809)
[2015-01-28 15:26:38.754] ipoe0: da724d005164a265: pppd_compat: ip-up finished (0)

[2015-01-28 15:26:39.050] ipoe0: da724d005164a265: recv [DHCPv4 Decline xid=b0f3d2de ciaddr=94.230.240.130 chaddr=94:de:80:bc:e0:70 <Message-Type Decline> <Client-ID 0194de80bce070> <Request-IP 94.230.240.130> <Server-ID 94.230.240.129>]
[2015-01-28 15:26:39.050] ipoe0: da724d005164a265: terminate
[2015-01-28 15:26:39.053] ipoe0: da724d005164a265: send [RADIUS(1) Accounting-Request id=1 <User-Name "eth0.47.48"> <NAS-Identifier "IPOE test"> <NAS-IP-Address 94.230.240.44> <NAS-Port 8016> <NAS-Port-Id "ipoe0"> <NAS-Port-Type Ethernet> <Calling-Station-Id "94:de:80:bc:e0:70"> <Called-Station-Id "eth0.47.48"> <Class > <Acct-Status-Type Stop> <Acct-Authentic RADIUS> <Acct-Session-Id "da724d005164a265"> <Acct-Session-Time 1> <Acct-Input-Octets 366> <Acct-Output-Octets 0> <Acct-Input-Packets 4> <Acct-Output-Packets 0> <Acct-Input-Gigawords 0> <Acct-Output-Gigawords 0> <Framed-IP-Address 94.230.240.130> <Acct-Terminate-Cause User-Request>]
[2015-01-28 15:26:39.054] ipoe0: da724d005164a265: pppd_compat: ip-down started (pid 3832)
[2015-01-28 15:26:39.057] ipoe0: da724d005164a265: pppd_compat: ip-down finished (0)
[2015-01-28 15:26:39.057] recv [RADIUS(1) Accounting-Response id=1]
[2015-01-28 15:26:39.057] ipoe0: da724d005164a265: ipoe: session finished
[2015-01-28 15:26:52.071] connlimit: check entry 124110537547412
[2015-01-28 15:26:52.071] connlimit: accept 124110537547412
mugur1
Posts: 15
Joined: 23 Jan 2015, 03:32

Re: QinQ+радиус

Post by mugur1 »

Привожу конфиг. Странно на стороне клиента идет подключение, а потом конфликт, а на нас поднимается интерфейс ipoe0

ipoe0 Link encap:Ethernet HWaddr 00:e0:4d:03:07:be
inet addr:94.230.240.129 P-t-P:94.230.240.130 Mask:255.255.255.255
inet6 addr: fe80::2e0:4dff:fe03:7be/64 Scope:Link
UP POINTOPOINT RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10000
RX bytes:96 (96.0 B) TX bytes:0 (0.0 B)
и потом исчезает.
Attachments
accel-ppp.rar
(1.16 KiB) Downloaded 134 times
Post Reply