Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is doesnt work with Freeradius 2.8 #2

Open
maldalik opened this issue Nov 15, 2016 · 3 comments
Open

It is doesnt work with Freeradius 2.8 #2

maldalik opened this issue Nov 15, 2016 · 3 comments

Comments

@maldalik
Copy link

I tried test it, but get error:
/home/spo/FreeRADIUS-NAS-change-restarter-master# python reloader.py
Reload needed
Traceback (most recent call last):
File "reloader.py", line 110, in
if peers_alive(config):
File "reloader.py", line 74, in peers_alive
reply = srv.SendPacket(req)
File "/usr/lib/python2.7/dist-packages/pyrad/client.py", line 159, in SendPacket
return self._SendPacket(pkt, self.authport)
File "/usr/lib/python2.7/dist-packages/pyrad/client.py", line 123, in _SendPacket
self._socket.sendto(pkt.RequestPacket(), (self.server, port))
socket.gaierror: [Errno -2] Name or service not known

@maldalik maldalik changed the title It is doesnt wokr with Freradius 2.8 It is doesnt wokr with Freeradius 2.8 Nov 15, 2016
@maldalik maldalik changed the title It is doesnt wokr with Freeradius 2.8 It is doesnt work with Freeradius 2.8 Nov 15, 2016
@jda
Copy link
Owner

jda commented Nov 15, 2016

How do you specify your RADIUS servers in your config?
That looks like a error doing a DNS lookup or perhaps a IPv4 vs v6 issue.

@maldalik
Copy link
Author

maldalik commented Nov 16, 2016

Ok. I found my error. But I don't understand as this script works.
I he thought Freeradius doesn't do service restart
Why to him the user in a radius and what he tries to find there?
If it is possible just to restart service for entry in the table nas_changes?
In your case it turns out that if the client who is registered in .json the file uses the disconnected NAS, then the script ceases to work.
And he is intended for management of NAS loading.

@jda
Copy link
Owner

jda commented Nov 19, 2016

If it is possible just to restart service for entry in the table nas_changes?

No. This is specifically for cases where you have more than one RADIUS server and only want to restart one if the there are other servers currently working.

In your case it turns out that if the client who is registered in .json the file uses the disconnected NAS, then the script ceases to work.

I'm not sure what you mean.

This script is acting as a NAS. You need the secret and IP address configured in FreeRADIUS so it can authenticate to the server as the test user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants