Difference between revisions of "Wireless RADIUS server"
From Ilianko
| Line 20: | Line 20: | ||
добавя се най-накрая | добавя се най-накрая | ||
testing Cleartext-Password := "password" | testing Cleartext-Password := "password" | ||
| + | |||
| + | radtest testing password 127.0.0.1 1812 testing123 | ||
| + | <code><pre> | ||
| + | Sending Access-Request of id 39 to 127.0.0.1 port 1812 | ||
| + | User-Name = "testing" | ||
| + | User-Password = "password" | ||
| + | NAS-IP-Address = 127.0.1.1 | ||
| + | NAS-Port = 1812 | ||
| + | rad_recv: Access-Reject packet from host 127.0.0.1 port 1812, id=39, length=20 | ||
| + | |||
| + | </pre></code> | ||
| + | radtest testing password 127.0.0.1 1812 testing123 | ||
| + | <code><pre> | ||
| + | Sending Access-Request of id 135 to 127.0.0.1 port 1812 | ||
| + | User-Name = "testing" | ||
| + | User-Password = "password" | ||
| + | NAS-IP-Address = 127.0.1.1 | ||
| + | NAS-Port = 1812 | ||
| + | rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=135, length=20 | ||
| + | </pre></code> | ||
Revision as of 14:02, 15 October 2011
Инсталация Radius server
В Ubuntu
~#sudo apt-get install freeradius
Спиране на сървъра и стартиране в debug режим
sudo /etc/init.d/freeradius stop sudo freeradius -X
Добавяне на потребител
- логване като администратор
~$sudo su
- добавяне на потребител
~$nano /etc/freeradius
добавя се най-накрая
testing Cleartext-Password := "password"
radtest testing password 127.0.0.1 1812 testing123
Sending Access-Request of id 39 to 127.0.0.1 port 1812
User-Name = "testing"
User-Password = "password"
NAS-IP-Address = 127.0.1.1
NAS-Port = 1812
rad_recv: Access-Reject packet from host 127.0.0.1 port 1812, id=39, length=20
radtest testing password 127.0.0.1 1812 testing123
Sending Access-Request of id 135 to 127.0.0.1 port 1812
User-Name = "testing"
User-Password = "password"
NAS-IP-Address = 127.0.1.1
NAS-Port = 1812
rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=135, length=20