using radtest as a different client..
Hello , I just wonder if i can use radtest command as testing from a different client? Such as, Assume i have a client conf for 1.1.1.1 ip add. in my freeradius(2.2.2.2) server. And from 3.3.3.3 client(lets call client3) i am trying to test the connection.like radtest user pass 2.2.2.2 10 secret ?????? ????? There is two optional parameters as i see on man page. PPPhint and nasname. Is it possible to test from client1 as is it is from client2 like radtest user pass 2.2.2.2 10 secret 3.3.3.3 If not, what is the purpose of nasname parameter?? Why i need is , I wanna have server with 2 interfaces and there are 2 different chilli processes are working which authenticates from 2 different virtual freeradius servers. So maybe i can figure out the different client problem via nasnames?? Or not..
I just wonder if i can use radtest command as testing from a different client? Such as, Assume i have a client conf for 1.1.1.1 ip add. in my freeradius(2.2.2.2) server. And from 3.3.3.3 client(lets call client3) i am trying to test the connection.like radtest user pass 2.2.2.2 10 secret ?????? ?????
There is two optional parameters as i see on man page. PPPhint and nasname. Is it possible to test from client1 as is it is from client2 like radtest user pass 2.2.2.2 10 secret 3.3.3.3
Yes. You just need to add 3.3.3.3 (that's where you are sending the request from?) to clients.conf as well. Ivan Kalik Kalik Informatika ISP
I just wonder if i can use radtest command as testing from a different client? Such as, Assume i have a client conf for 1.1.1.1 ip add. in my freeradius(2.2.2.2) server. And from 3.3.3.3 client(lets call client3) i am trying to test the connection.like radtest user pass 2.2.2.2 10 secret ?????? ?????
There is two optional parameters as i see on man page. PPPhint and nasname. Is it possible to test from client1 as is it is from client2 like radtest user pass 2.2.2.2 10 secret 3.3.3.3
Yes. You just need to add 3.3.3.3 (that's where you are sending the request from?) to clients.conf as well.
I think i couldnt describe my question well. What i want is to learn if the virtual domain configuration is similar to apache's virtual domain.As we can use names instead of IPs. As, on freeradius if i create 2 clients like client1 { secret= a1a1a1 virtual_server= bbbbbb } and client2 { secret= a2a2a2 virtual_server= cccccc } And on another server on different interfaces if i run 2 authentication softwares (like chillispot for example) is it possible to give a name instead of ip adress with NAS-ID or something else. So, it can select different virtual servers for different connections? Or does it only check the incoming ip for the client?? And acts as the first client information that it finds on clients.conf(or virtual config)
Ivan Kalik Kalik Informatika ISP
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Oguzhan Kayhan wrote:
What i want is to learn if the virtual domain configuration is similar to apache's virtual domain.As we can use names instead of IPs.
The configuration files and README's contain documentation on what the virtual servers are, and what they do.
As, on freeradius if i create 2 clients like client1 {
That is not the proper format for the "client" section.
secret= a1a1a1 virtual_server= bbbbbb }
This won't work because clients are REQUIRED to have IP addresses.
And on another server on different interfaces if i run 2 authentication softwares (like chillispot for example) is it possible to give a name instead of ip adress with NAS-ID or something else.
i.e. DNS name. Yes... it's possible. But you have to specify it. In the "client" section. Which you didn't do.
So, it can select different virtual servers for different connections?
Perhaps try reading raddb/sites-available/README All this is documented. Please read the documentation. Alan DeKok.
Oguzhan Kayhan wrote:
What i want is to learn if the virtual domain configuration is similar to apache's virtual domain.As we can use names instead of IPs.
The configuration files and README's contain documentation on what the virtual servers are, and what they do.
As, on freeradius if i create 2 clients like client1 {
That is not the proper format for the "client" section.
secret= a1a1a1 virtual_server= bbbbbb }
This won't work because clients are REQUIRED to have IP addresses.
And on another server on different interfaces if i run 2 authentication softwares (like chillispot for example) is it possible to give a name instead of ip adress with NAS-ID or something else.
There is a (future) way to use the NasID. See "dynamic clients" in sites-available. Alan is going to make the Nas-Identifier available in a future release. You could do something like: --------------------------------------- client dymamic { ipaddr = 0.0.0.0 netmask = 0 dynamic_clients = hotspot lifetime = 86400 } server hotspot { authorize { if ("%{sql: select Identifier from Nas where Identifier='%{NAS-Identifier}'}") { update control { FreeRADIUS-Client-IP-Address = "%{Packet-Src-IP-Address}" FreeRADIUS-Client-Require-MA = no FreeRADIUS-Client-Secret = "qwerty" FreeRADIUS-Client-Shortname = "%{NAS-Identifier}" FreeRADIUS-Client-NAS-Type = "other" FreeRADIUS-Client-Virtual-Server = "%{sql: select VirtualServer from Nas where Identifier='%{NAS-Identifier}'}" } ok } } -------------------------------------- Johan Meiring Cape PC Services CC / Amobia Communications Tel: (021) 883-8271 / (0861) AMOBIA Fax: (021) 886-7782 / (0861) AMOFAX
participants (4)
-
Alan DeKok -
Johan Meiring -
Oguzhan Kayhan -
tnt@kalik.net