My issue is resolved but just adding further details: [root@ott-freerad-7a raddb]# /usr/local/bin/radclient -x -t 20 -c 1 -p 20 -f /usr/local/etc/raddb/coa -6 [2020::10]:1700 coa cisco Sending CoA-Request of id 76 to 2020::10 port 1700 Calling-Station-Id = "c414.3c52.900e" Acct-Session-Id = "0x00000FAA" Cisco-AVPair += "subscriber:command=reauthenticate" rad_recv: CoA-ACK packet from host 2020::10 port 1700, id=76, length=42 Calling-Station-Id = "c414.3c52.900e" Error-Cause = 200 [root@ott-freerad-7a raddb]# [root@ott-freerad-7a raddb]# [root@ott-freerad-7a raddb]# [root@ott-freerad-7a raddb]# [root@ott-freerad-7a raddb]# [root@ott-freerad-7a raddb]# [root@ott-freerad-7a raddb]# /usr/local/bin/radclient -x -t 20 -c 1 -p 20 -f /usr/local/etc/raddb/coa [2020::10]:1700 coa cisco radclient: Failed to find IP address for host 2020::10: Success [root@ott-freerad-7a raddb]# Cheers, Samir. On Mon, Jul 20, 2015 at 2:26 PM, Arran Cudbard-Bell < a.cudbardb@freeradius.org> wrote:
On Jul 20, 2015, at 2:02 PM, Samir Patel <samir198@gmail.com> wrote:
Hi Alan,
The solution you provided has worked like a charm.
I really appreciate your help.
Thank you very much for all the prompt help as well.
Weird, that should work automatically. Radclient hadn't been modified to use the fr_pton* series of functions, and was using some old logic.
Moving it to using fr_pton_port (slightly modified to support -4 -6), things seem to work ok:
crashant:freeradius-server-fork arr2036$ echo "User-Name == foo" | /usr/local/freeradius/bin/radclient [::1]:1813 auth testing123 Sent Access-Request Id 88 from [::]:64852 to [::1]:1813 length 25
crashant:freeradius-server-fork arr2036$ echo "User-Name == foo" | /usr/local/freeradius/bin/radclient [::1]:1812 auth testing123 Sent Access-Request Id 223 from [::]:63771 to [::1]:1812 length 25
crashant:freeradius-server-fork arr2036$ echo "User-Name == foo" | /usr/local/freeradius/bin/radclient [::1] auth testing123 Sent Access-Request Id 99 from [::]:61089 to [::1]:1812 length 25
crashant:freeradius-server-fork arr2036$ echo "User-Name == foo" | /usr/local/freeradius/bin/radclient ::1 auth testing123 Sent Access-Request Id 183 from [::]:62479 to [::1]:1812 length 25
crashant:freeradius-server-fork arr2036$ echo "User-Name == foo" | /usr/local/freeradius/bin/radclient 127.0.0.1:1813 auth testing123 Sent Access-Request Id 176 from 0.0.0.0:58690 to 127.0.0.1:1813 length 25
crashant:freeradius-server-fork arr2036$ echo "User-Name == foo" | /usr/local/freeradius/bin/radclient 127.0.0.1 auth testing123 Sent Access-Request Id 92 from 0.0.0.0:60291 to 127.0.0.1:1812 length 25
crashant:freeradius-server-fork arr2036$ echo "User-Name == foo" | /usr/local/freeradius/bin/radclient 127.0.0.1:1812 auth testing123 Sent Access-Request Id 35 from 0.0.0.0:61014 to 127.0.0.1:1812 length 25
crashant:freeradius-server-fork arr2036$ echo "User-Name == foo" | /usr/local/freeradius/bin/radclient google.com:1813 auth testing123 Sent Access-Request Id 188 from 0.0.0.0:64130 to 74.125.226.101:1813 length 25
crashant:freeradius-server-fork arr2036$ echo "User-Name == foo" | /usr/local/freeradius/bin/radclient -6 google.com:1813 auth testing123 Sent Access-Request Id 71 from [::]:49345 to [2607:f8b0:400b:80a::1002]:1813 length 25
echo "User-Name == foo" | /usr/local/freeradius/bin/radclient -4 google.com:1813 auth testing123 Sent Access-Request Id 121 from 0.0.0.0:58580 to 74.125.226.98:1813 length 25
crashant:freeradius-server-fork arr2036$ echo "User-Name == foo" | /usr/local/freeradius/bin/radclient -4 [google.com]:1813 auth testing123 radclient: Failed to parse IPv6 address string "google.com"
echo "User-Name == foo" | /usr/local/freeradius/bin/radclient -4 ::1:1813 auth testing123 (0) Failed to send packet for ID 51: sendto failed: No route to host
echo "User-Name == foo" | /usr/local/freeradius/bin/radclient [::1]: auth testing123 radclient: Port 0 outside valid port range 1-65535
(I guess that could use a better message)
I also fixed the address printing code to surround v6 addresses in brackets :)
-Arran
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html