Community discussions

MikroTik App
 
OrCAD
Member Candidate
Member Candidate
Topic Author
Posts: 133
Joined: Wed Apr 20, 2005 12:37 pm

could not determine local IP address

Wed May 24, 2006 6:53 pm

Hi,
my freeradius work fine with HotSpot but when I check ppp I've one error.
Log is paste below...

_______________________________________________________
14:16:43 pppoe,info PPPoE connection established from 00:15:D6:02:03:54
14:16:43 pppoe,ppp,info <pppoe-0>: waiting for call...
14:16:46 radius,debug new request 53:22f code=Access-Request service=ppp called-id=PPPoE
14:16:46 radius,debug sending 53:22f to 10.10.0.3:1812
14:16:46 radius,debug,packet sending Access-Request with id 107 to 10.10.0.3:1812
14:16:46 radius,debug,packet Signature = 0xe32e234bcf749c15d2afd34a9230f93c
14:16:46 radius,debug,packet Service-Type = 2
14:16:46 radius,debug,packet Framed-Protocol = 1
14:16:46 radius,debug,packet NAS-Port = 2336
14:16:46 radius,debug,packet NAS-Port-Type = 15
14:16:46 radius,debug,packet User-Name = "bar.sport"
14:16:46 radius,debug,packet Calling-Station-Id = "00:15:D6:02:03:54"
14:16:46 radius,debug,packet Called-Station-Id = "PPPoE"
14:16:46 radius,debug,packet NAS-Port-Id = "wlan2"
14:16:46 radius,debug,packet User-Password = 0x70717971616c7862
14:16:46 radius,debug,packet NAS-Identifier = "nas1"
14:16:46 radius,debug,packet NAS-IP-Address = 10.10.0.30
14:16:46 radius,debug,packet received Access-Accept with id 107 from 10.10.0.3:1812
14:16:46 radius,debug,packet Signature = 0x1be3b01ec0d51d96708eb74a61ae07dc
14:16:46 radius,debug,packet Framed-Protocol = 1
14:16:46 radius,debug,packet Framed-MTU = 1488
14:16:46 radius,debug,packet Service-Type = 2
14:16:46 radius,debug,packet Framed-IP-Address = 10.0.0.210
14:16:46 radius,debug,packet Framed-IP-Netmask = 255.255.255.0
14:16:46 radius,debug,packet MT-Rate-Limit = "192k/64k 1024k/100k 10/5 15/10"
14:16:46 radius,debug,packet Framed-Route = "10.0.0.210 10.0.0.1 1"
14:16:46 radius,debug received reply for 53:22f
14:16:46 radius,debug new request 53:00 code=Accounting-Request service=ppp called-id=PPPoE
14:16:46 radius,debug sending 53:00 to 10.10.0.3:1813
14:16:46 radius,debug,packet sending Accounting-Request with id 108 to 10.10.0.3:1813
14:16:46 radius,debug,packet Signature = 0xd55b07590e70cb5bda1a1d4b0b164b52
14:16:46 radius,debug,packet Service-Type = 2
14:16:46 radius,debug,packet Framed-Protocol = 1
14:16:46 radius,debug,packet NAS-Port = 2336
14:16:46 radius,debug,packet NAS-Port-Type = 15
14:16:46 radius,debug,packet User-Name = "bar.sport"
14:16:46 radius,debug,packet Calling-Station-Id = "00:15:D6:02:03:54"
14:16:46 radius,debug,packet Called-Station-Id = "PPPoE"
14:16:46 radius,debug,packet NAS-Port-Id = "wlan2"
14:16:46 radius,debug,packet Acct-Session-Id = "81b000bb"
14:16:46 radius,debug,packet Framed-IP-Address = 10.0.0.210
14:16:46 radius,debug,packet Framed-IP-Netmask = 255.255.255.0
14:16:46 radius,debug,packet Acct-Authentic = 1
14:16:46 radius,debug,packet Acct-Status-Type = 1
14:16:46 radius,debug,packet NAS-Identifier = "nas1"
14:16:46 radius,debug,packet NAS-IP-Address = 10.10.0.30
14:16:46 radius,debug,packet Acct-Delay-Time = 0
14:16:46 pppoe,ppp,info <pppoe-bar.sport>: authenticated
14:16:46 radius,debug,packet received Accounting-Response with id 108 from 10.10.0.3:1813
14:16:46 radius,debug,packet Signature = 0x27de569383671ca089573c7ae29f3f82
14:16:46 radius,debug received reply for 53:00
14:16:46 radius,debug request 53:00 processed
14:16:49 pppoe,ppp,info,account bar.sport logged out, 3 84 66 9 9
14:16:49 radius,debug new request 53:00 code=Accounting-Request service=ppp called-id=PPPoE
14:16:49 radius,debug sending 53:00 to 10.10.0.3:1813
14:16:49 radius,debug,packet sending Accounting-Request with id 109 to 10.10.0.3:1813
14:16:49 radius,debug,packet Signature = 0xd9902db18247432350accc014c13615a
14:16:49 radius,debug,packet Service-Type = 2
14:16:49 radius,debug,packet Framed-Protocol = 1
14:16:49 radius,debug,packet NAS-Port = 2336
14:16:49 radius,debug,packet NAS-Port-Type = 15
14:16:49 radius,debug,packet User-Name = "bar.sport"
14:16:49 radius,debug,packet Calling-Station-Id = "00:15:D6:02:03:54"
14:16:49 radius,debug,packet Called-Station-Id = "PPPoE"
14:16:49 radius,debug,packet NAS-Port-Id = "wlan2"
14:16:49 radius,debug,packet Acct-Session-Id = "81b000bb"
14:16:49 radius,debug,packet Framed-IP-Address = 10.0.0.210
14:16:49 radius,debug,packet Framed-IP-Netmask = 255.255.255.0
14:16:49 radius,debug,packet Acct-Authentic = 1
14:16:49 radius,debug,packet Acct-Session-Time = 3
14:16:49 radius,debug,packet Acct-Input-Octets = 84
14:16:49 radius,debug,packet Acct-Input-Gigawords = 0
14:16:49 radius,debug,packet Acct-Input-Packets = 9
14:16:49 radius,debug,packet Acct-Output-Octets = 66
14:16:49 radius,debug,packet Acct-Output-Gigawords = 0
14:16:49 radius,debug,packet Acct-Output-Packets = 9
14:16:49 radius,debug,packet Acct-Status-Type = 2
14:16:49 radius,debug,packet Acct-Terminate-Cause = 9
14:16:49 radius,debug,packet NAS-Identifier = "nas1"
14:16:49 radius,debug,packet NAS-IP-Address = 10.10.0.30
14:16:49 radius,debug,packet Acct-Delay-Time = 0
14:16:49 radius,debug,packet received Accounting-Response with id 109 from 10.10.0.3:1813
14:16:49 radius,debug,packet Signature = 0x10f27bb799de8887cb49f8239f5446de
14:16:49 radius,debug received reply for 53:00
14:16:49 radius,debug request 53:00 processed
14:16:49 pppoe,ppp,info <pppoe-bar.sport>: terminating... - could not determine local IP address
14:16:49 pppoe,ppp,info <pppoe-bar.sport>: disconnected

Question: local IP address are determine automatically?
Is an error of radiusd.conf?
from the log I see accounting terminate successfully (user & password with sql databse) an error occurred with NAS...

many thanks for any suggestion..
OrCAD
 
savage
Forum Guru
Forum Guru
Posts: 1263
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Thu May 25, 2006 9:22 am

Local address can't be specified via Radius. Add the correct Local Address to the default PPP Profile that you are using.

--
C
 
OrCAD
Member Candidate
Member Candidate
Topic Author
Posts: 133
Joined: Wed Apr 20, 2005 12:37 pm

Thu May 25, 2006 12:21 pm

thank for the reply,
Framed-IP-Addess work correctly, otherwise Pool work fine
Framed-IP-Netmask return the correct data, I've check Framed-Route without success...

I use sql database not users file, where to find 'DEFAULT PPP Profile' ?
regards..
 
savage
Forum Guru
Forum Guru
Posts: 1263
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Thu May 25, 2006 5:16 pm

In mikrotik?
 
OrCAD
Member Candidate
Member Candidate
Topic Author
Posts: 133
Joined: Wed Apr 20, 2005 12:37 pm

Thu May 25, 2006 6:08 pm

No savage,
Autentication with Mikrotik PPPoE and secret in pppoe-user work fine.

I want to autenticate my pppoe users with Mikrotik PPPoE server and FreeRadius with DialupAdmin inteface.
radiusd.conf and dialupadmin (mySQL db) work wery well with Mikrotik Hotspot interface but when try to add PPP in mikrotik radius setting the user is correctly autenticate and after 1-2sec connection is terminating cause NAS error (Acct-Terminate-Cause = 9) I think for the Local IP address missing!!
Thank in advance for help.. :D
 
OrCAD
Member Candidate
Member Candidate
Topic Author
Posts: 133
Joined: Wed Apr 20, 2005 12:37 pm

Fri May 26, 2006 12:44 pm

Ok savage...
solved.... Local Address in default PPP profile...
now work all ok.... coming step two: rp-pppoe server...

thank for judgement

Who is online

Users browsing this forum: baragoon, Bolendox, Luanscps and 93 guests