[newbie] radutmp question
Hi all, I have encountered a problem with radutmp. The information of my environment is a vpn service and auth with freeradius 1.1.7. The problem happened as below: 1. start up the radiusd 2. user "abc" connect to vpn, and I can use radwho to see "abc" user 3. shutdown radiusd 4. user disconnect from vpn server (radiusd not start yet) 5. start up radiusd, and radwho still shows "abc" is connected Is there any way to solve this problem? any suggestion is extremely welcomed. Thank you. :) Regards, clyang
Yes. Don't stop the server. ;-) Make sure radutmp is listed in session section of radiusd.conf (it is by default), NAS has the correct nastype in clients.conf and your checkrad script is working (properly). Ivan Kalik Kalik Informatika ISP Dana 23/9/2007, "Cheng-Lin Yang" <clyang@gmail.com> piše:
Hi all, I have encountered a problem with radutmp. The information of my environment is a vpn service and auth with freeradius 1.1.7. The problem happened as below:
1. start up the radiusd 2. user "abc" connect to vpn, and I can use radwho to see "abc" user 3. shutdown radiusd 4. user disconnect from vpn server (radiusd not start yet) 5. start up radiusd, and radwho still shows "abc" is connected
Is there any way to solve this problem? any suggestion is extremely welcomed. Thank you. :)
Regards, clyang - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
I got it, thank you.But I still wnat to know if this problem happened, is there any way to re-sync the radutmp file? or recheck each user is still online or not? 2007/9/24, tnt@kalik.co.yu <tnt@kalik.co.yu>:
Yes. Don't stop the server. ;-)
Make sure radutmp is listed in session section of radiusd.conf (it is by default), NAS has the correct nastype in clients.conf and your checkrad script is working (properly).
Ivan Kalik Kalik Informatika ISP
Dana 23/9/2007, "Cheng-Lin Yang" <clyang@gmail.com> piše:
Hi all, I have encountered a problem with radutmp. The information of my environment is a vpn service and auth with freeradius 1.1.7. The problem happened as below:
1. start up the radiusd 2. user "abc" connect to vpn, and I can use radwho to see "abc" user 3. shutdown radiusd 4. user disconnect from vpn server (radiusd not start yet) 5. start up radiusd, and radwho still shows "abc" is connected
Is there any way to solve this problem? any suggestion is extremely welcomed. Thank you. :)
Regards, clyang - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Cheng-Lin Yang, Sun Certified Java Programmer <clyang@gmail.com>
But I still wnat to know if this problem happened
Read radius.log. If you see a line "Ready to process requests." your server (re)started.
is there any way to re-sync the radutmp file?
Why? You can write an outside script that will poll the access servers, check that info against the radutmp and update it. But what would be the point of that exercise?
or recheck each user is still online or not?
That's what radcheck script does. Only in cases when there is a login attempt and user is listed as already on-line. It will check if the listed session is still active on the NAS. There is no need to do it at any other time. Regardless of that did your server go down or not. Ivan Kalik Kalik Informatika ISP
On Sep 23, 2007, at 11:23, Cheng-Lin Yang wrote:
Hi all, I have encountered a problem with radutmp. The information of my environment is a vpn service and auth with freeradius 1.1.7. The problem happened as below:
1. start up the radiusd 2. user "abc" connect to vpn, and I can use radwho to see "abc" user 3. shutdown radiusd 4. user disconnect from vpn server (radiusd not start yet) 5. start up radiusd, and radwho still shows "abc" is connected
Is there any way to solve this problem? any suggestion is extremely welcomed. Thank you. :)\
Delete step 3. radiusd can only receive requests when it is running.
participants (3)
-
Cheng-Lin Yang -
Doug Hardie -
tnt@kalik.co.yu