Re: COA default configuration...Need help to test radclient

2010-05-17 Thread Johan Meiring

On 2010/05/15 08:28 AM, Alan DeKok wrote:

...

Do I have to do anything more than any default configuration?


   In 2.1.8, there's an example CoA server in raddb/sites-available/coa



The coa example was missing from 2.1.8.
Please have a look here.

http://github.com/alandekok/freeradius-server/blob/master/raddb/sites-available/coa




--


Johan Meiring
Cape PC Services CC
Tel: (021) 883-8271
Fax: (021) 886-7782

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: COA default configuration...Need help to test radclient

2010-05-15 Thread Alan DeKok
Eric Martell wrote:
   I followed the direction of how to setup COA in the freeradius.
 Uncommented from client.conf coa_server = localhost-coa
 
 When I ran the sample radclient, I am not seeing any response back.
...
 Do I have to do anything more than any default configuration?

  In 2.1.8, there's an example CoA server in raddb/sites-available/coa

 Fri May 14 19:59:04 2010 : Debug: Listening on authentication address *
 port 1812
 Fri May 14 19:59:04 2010 : Debug: Listening on accounting address * port
 1813
 Fri May 14 19:59:04 2010 : Debug: Listening on command file
 /home/test/freeradius-2.1.8/var/run/radiusd/radiusd.sock
 Fri May 14 19:59:04 2010 : Debug: Listening on proxy address * port 1814

  The server isn't listening on the CoA port.  Ensure that it's
listening on the CoA port *before* sending it packets via radclient.

  Again, the whole purpose of debugging mode is to *read it*.

  If you *read* the rest of the debug output and look for coa, it
becomes clear that you configured the server to *originate* CoA packets.
  Yet you're trying to *send* it CoA packets.  This won't work.

  Please *read* the documentation at the top of
raddb/sites-available/originate-coa.  You configured the server to use
it, so you *must* know it exists.  The documentation explains what that
file does, and how you can test it.

  This *is* documented.  Please read it.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: COA default configuration...Need help to test radclient

2010-05-15 Thread Eric Martell
Hi Alan,  
   Thanks for the reply. Pardon my ignorance but as you mentioned I did not 
find raddb/sites-available/coa.
In 2.1.8, there's an example CoA server in raddb/sites-available/coa

I only see,
# ls -lart sites-available/
total 124
-rw-r- 1 root root  2538 May 14 15:37 vmps
-rw-r- 1 root root   849 May 14 15:37 virtual.example.com
-rw-r- 1 root root  4042 May 14 15:37 status
-rw-r- 1 root root  5057 May 14 15:37 robust-proxy-accounting
-rw-r- 1 root root  8543 May 14 15:37 README
-rw-r- 1 root root   982 May 14 15:37 proxy-inner-tunnel
-rw-r- 1 root root 11757 May 14 15:37 inner-tunnel
-rw-r- 1 root root  3340 May 14 15:37 example
-rw-r- 1 root root  4544 May 14 15:37 dynamic-clients
-rw-r- 1 root root  4506 May 14 15:37 dhcp
-rw-r- 1 root root 16544 May 14 15:37 default
-rw-r- 1 root root  3508 May 14 15:37 decoupled-accounting
-rw-r- 1 root root  5342 May 14 15:37 copy-acct-to-home-server
-rw-r- 1 root root  4095 May 14 15:37 buffered-sql
-rw-r- 1 root root  2040 May 14 15:37 control-socket
-rw-r- 1 root root  5266 May 14 15:56 originate-coa
drwxr-x--- 2 root root  4096 May 15 12:42 .
drwxr-xr-x 7 root root  4096 May 15 12:58 ..
# 

Thanks and Regards.


  -
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: COA default configuration...Need help to test radclient

2010-05-15 Thread Alan DeKok
Eric Martell wrote:
 Hi Alan,  
Thanks for the reply. Pardon my ignorance but as you mentioned I did
 not find raddb/sites-available/coa.
In 2.1.8, there's an example CoA server in raddb/sites-available/coa

  Ah...  it's in 2.1.9, then.

  See http://git.freeradius.org/pre/  for a pre-release of 2.1.9.
Use that instead of 2.1.8.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: COA default configuration...Need help to test radclient

2010-05-15 Thread Eric Martell
Awesome. Thanks Alan. That did the trick. I will ask more implementation 
questions if any issues.

Sun May 16 01:43:19 2010 : Debug: Listening on authentication address * port 
1812
Sun May 16 01:43:19 2010 : Debug: Listening on accounting address * port 1813
Sun May 16 01:43:19 2010 : Debug: Listening on coa address * port 3799 as 
server coa
Sun May 16 01:43:19 2010 : Debug: Listening on command file 
/home/test/freeradius-2.1.9/var/run/radiusd/radiusd.sock
Sun May 16 01:43:19 2010 : Debug: Listening on proxy address * port 1814
Sun May 16 01:43:19 2010 : Info: Ready to process requests.
rad_recv: CoA-Request packet from host 127.0.0.1 port 33844, id=90, length=106
    User-Name = cisco
    User-Password = ,\247\262\374\222\\\345\321\36543\201:\001
    Cisco-AVPair = subscriber:command=account-logon
    Cisco-Account-Info = S172.16.xx.xx
Sun May 16 01:43:22 2010 : Info: server coa {
Sun May 16 01:43:22 2010 : Info: +- entering group recv-coa {...}
Sun May 16 01:43:22 2010 : Info: ++[ok] returns ok
Sun May 16 01:43:22 2010 : Info: +- entering group send-coa {...}
Sun May 16 01:43:22 2010 : Info: ++[ok] returns ok
Sun May 16 01:43:22 2010 : Info: } # server coa
Sending CoA-ACK of id 90 to 127.0.0.1 port 33844
Sun May 16 01:43:22 2010 : Info: Finished request 0.
Sun May 16 01:43:22 2010 : Debug: Going to the next request
Sun May 16 01:43:22 2010 : Info: Cleaning up request 0 ID 90 with timestamp +3
Sun May 16 01:43:22 2010 : Info: Ready to process requests.


Thanks.

--- On Sat, 5/15/10, Alan DeKok al...@deployingradius.com wrote:

From: Alan DeKok al...@deployingradius.com
Subject: Re: COA default configuration...Need help to test radclient
To: FreeRadius users mailing list freeradius-users@lists.freeradius.org
Date: Saturday, May 15, 2010, 9:43 AM

Eric Martell wrote:
 Hi Alan,  
    Thanks for the reply. Pardon my ignorance but as you mentioned I did
 not find raddb/sites-available/coa.
In 2.1.8, there's an example CoA server in raddb/sites-available/coa

  Ah...  it's in 2.1.9, then.

  See http://git.freeradius.org/pre/  for a pre-release of 2.1.9.
Use that instead of 2.1.8.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



  -
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html