Using radtest on port 1645
Brian Candler
b.candler at pobox.com
Thu Feb 23 09:29:52 CET 2017
On 23/02/2017 03:17, Brett Glasson wrote:
> radtest test testpass 1.2.3.9.4 1645 testing123
> Sending Access-Request of id 160 to 1.2.3.4 port 1812
> User-Name = "test"
> User-Password = "testpass"
> NAS-IP-Address = 2.3.4.5
> NAS-Port = 1645
> Message-Authenticator = 0x00000000000000000000000000000000
> rad_recv: Access-Accept packet from host 1.2.3.4 port 1812, id=160, length=20
>
> Note the part where radtest has ignored the provided port 1645 and has gone ahead and used 1812 anyway, although the NAS-Port is (correctly shown as being 1645 later on.
You are confusing two things: the UDP port number to which the packet is
sent, and the NAS-Port attribute which the NAS uses to indicate which
physical port (e.g. modem) the user is requesting service on.
You want:
radtest test testpass 1.2.3.4:1645 1 testing123
This sets the UDP destination port to 1645, and the NAS-Port attribute to 1
One other thing: if you are rebuilding this system to replace an ancient
FreeRADIUS, please go straight to 3.0.12. FreeRADIUS 2.x is also ancient
and although it works, you will get little support for it. The first
problem you come across, the most likely response you'll get will be
"upgrade to 3.0.12"!
Regards,
Brian.
More information about the Freeradius-Users
mailing list