На mikrotik настроен ppoe сервер.
Код:
/ppp profile
set 0 change-tcp-mss=no only-one=no use-compression=no use-encryption=no \
use-vj-compression=no
add change-tcp-mss=no dns-server=100.64.0.2 local-address=100.64.0.1 name=\
ppp use-compression=no use-encryption=no use-mpls=no use-vj-compression=\
no
/ppp aaa
set use-radius=yes
/radius
add address=10.0.18.3 secret=123 service=ppp
/radius incoming
set accept=yes port=1700
в логах микротик это:
Код:
pppoe-out1: initializing...
pppoe-out1: connecting...
ether9: sent PADI to FF:FF:FF:FF:FF:FF
session-id=0x0000
host-uniq=0xc50021
service-name=
session-id=0x0000
vlan2_bridge: rcvd PADI from 4C:5E:0C:92:59:F1
session-id=0x0000
host-uniq=0xc50021
service-name=
session-id=0x0000
vlan2_bridge: sent PADO to 4C:5E:0C:92:59:F1
session-id=0x0000
host-uniq=0xc50021
service-name=
ac-name=SUPONEVO-NAS1
session-id=0x0000
ether9: rcvd PADO from 4C:5E:0C:92:5A:01
session-id=0x0000
host-uniq=0xc50021
service-name=
ac-name=SUPONEVO-NAS1
session-id=0x0000
ether9: sent PADR to 4C:5E:0C:92:5A:01
session-id=0x0000
host-uniq=0xc50022
service-name=
session-id=0x0000
<02f4>: LCP lowerup
<02f4>: LCP open
vlan2_bridge: rcvd PADR from 4C:5E:0C:92:59:F1
session-id=0x0000
host-uniq=0xc50022
service-name=
session-id=0x0000
PPPoE connection established from 4C:5E:0C:92:59:F1
vlan2_bridge: sent PADS to 4C:5E:0C:92:59:F1
session-id=0x02f4
host-uniq=0xc50022
service-name=
session-id=0x02f4
ether9: rcvd PADS from 4C:5E:0C:92:5A:01
session-id=0x02f4
host-uniq=0xc50022
service-name=
session-id=0x02f4
pppoe-out1: LCP lowerup
pppoe-out1: LCP open
pppoe-out1: LCP timer
<02f4>: rcvd LCP ConfReq id=0x46
<mru 1480>
<magic 0x4eecd450>
<02f4>: sent LCP ConfReq id=0x1
<mru 1480>
<magic 0x1787c261>
<auth chap>
<02f4>: sent LCP ConfAck id=0x46
<mru 1480>
<magic 0x4eecd450>
pppoe-out1: sent LCP ConfReq id=0x46
<mru 1480>
<magic 0x4eecd450>
<02f4>: rcvd LCP ConfAck id=0x1
<mru 1480>
<magic 0x1787c261>
<auth chap>
<02f4>: LCP opened
<02f4>: sent CHAP Challenge id=0x1
<challenge len=16>
<name SUPONEVO-NAS1>
pppoe-out1: rcvd LCP ConfReq id=0x1
<mru 1480>
<magic 0x1787c261>
<auth chap>
pppoe-out1: sent LCP ConfAck id=0x1
<mru 1480>
<magic 0x1787c261>
<auth chap>
pppoe-out1: rcvd LCP ConfAck id=0x46
<mru 1480>
<magic 0x4eecd450>
pppoe-out1: LCP opened
pppoe-out1: rcvd CHAP Challenge id=0x1
<challenge len=16>
<name SUPONEVO-NAS1>
pppoe-out1: sent CHAP Response id=0x1
<response len=16>
<name test>
<02f4>: rcvd CHAP Response id=0x1
<response len=16>
<name test>
<02f4>: sent CHAP Failure id=0x1
bad username or password
<02f4>: user test authentication failed
pppoe-out1: rcvd CHAP Failure id=0x1
bad username or password
pppoe-out1: LCP close
pppoe-out1: LCP closed
pppoe-out1: sent LCP TermReq id=0x47
failed to authenticate ourselves to peer
<02f4>: LCP close
<02f4>: LCP closed
<02f4>: sent LCP TermReq id=0x2
pppoe-out1: rcvd LCP TermReq id=0x2
pppoe-out1: sent LCP TermAck id=0x2
pppoe-out1: LCP lowerdown
pppoe-out1: terminating... - failed to authenticate ourselves to peer
ether9: sent PADT to 00:00:00:00:00:00
session-id=0x02f4
session-id=0x02f4
pppoe-out1: LCP lowerdown
pppoe-out1: LCP down event in starting state
pppoe-out1: disconnected
<02f4>: rcvd LCP TermReq id=0x47
failed to authenticate ourselves to peer
<02f4>: sent LCP TermAck id=0x47
<02f4>: LCP lowerdown
<02f4>: LCP lowerdown
<02f4>: LCP down event in starting state
vlan2_bridge: sent PADT to 4C:5E:0C:92:59:F1
session-id=0x02f4
session-id=0x02f4
ether9: rcvd PADT from 4C:5E:0C:92:5A:01
session-id=0x02f4
session-id=0x02f4
в логах access
Код:
09-06/22:03:34 INFO [rdsLstnr-p-7-t-8] RadiusListenerWorker - REQUEST:
Packet type: Access-Request
Identifier: 203
Authenticator: {3C AA BD 8A 84 58 D0 86 F2 38 C4 A3 36 57 6B 2D}
Attributes:
User-Name=test
NAS-Identifier=SUPONEVO-NAS1
NAS-Port-Id=vlan2_bridge
CHAP-Password={01 57 E6 3A 26 92 D1 EB 31 E9 26 83 46 59 8B 25 17}
NAS-IP-Address=10.77.16.1
NAS-Port=15729394
Service-Type=2
Framed-Protocol=1
Calling-Station-Id=4C:5E:0C:92:59:F1
NAS-Port-Type=15
CHAP-Challenge=??^y?"?R?=??
09-06/22:03:34 INFO [rdsLstnr-p-7-t-8] InetNas - Search by username=test
09-06/22:03:34 INFO [rdsLstnr-p-7-t-8] InetRadiusProcessor - [username=test] Authenticated as inetServId:1
09-06/22:03:34 INFO [rdsLstnr-p-7-t-8] InetApplication - TariffOptionMap: {}
09-06/22:03:34 INFO [rdsLstnr-p-7-t-8] InetApplication - inetServ[id=1] balance ok: 1000.00 [0]
09-06/22:03:34 INFO [rdsLstnr-p-7-t-8] InetApplication - OptionSet: []
09-06/22:03:34 INFO [rdsLstnr-p-7-t-8] InetRadiusProcessor - Set ip from serv
09-06/22:03:34 INFO [rdsLstnr-p-7-t-8] InetRadiusProcessor - Return code=0
09-06/22:03:34 INFO [rdsLstnr-p-7-t-8] InetRadiusListenerWorker - RESPONSE:
Packet type: Access-Accept
Identifier: 203
Authenticator: {FD B0 B4 94 D7 57 F5 A9 85 A6 6E F1 EC D3 07 AF}
Attributes:
Framed-IP-Address=100.64.33.87
Process time auth: 2
пробовал добавить юзера test в лог базу микротик - коннектится нормально.
не пойму что не так...