Difference between revisions of "Wireless RADIUS server"

From Ilianko
Line 40: Line 40:
 
rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=135, length=20
 
rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=135, length=20
 
</pre></code>
 
</pre></code>
 +
 +
 +
Добавяне на клиент
 +
client NAME {
 +
  ipaddr = IPADDRESS
 +
  secret = SECRET
 +
}

Revision as of 14:33, 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


Добавяне на клиент

client NAME {
  ipaddr = IPADDRESS
  secret = SECRET
}