Настройка freeradius:
Код: Выделить всё
client 127.0.0.1 {
secret = testing123
shortname = localhost
}
client cisco_ip {
secret = testing123
shortname = private-network
}
Код: Выделить всё
cat users | grep -v ^$ | grep -v #
test Password := "pass"
Service-Type = NAS-Prompt-User
DEFAULT Auth-Type = System
Fall-Through = 1
DEFAULT Service-Type == Framed-User
Framed-IP-Address = 255.255.255.254,
Framed-MTU = 576,
Service-Type = Framed-User,
Fall-Through = Yes
DEFAULT Framed-Protocol == PPP
Framed-Protocol = PPP,
Framed-Compression = Van-Jacobson-TCP-IP
DEFAULT Hint == "CSLIP"
Framed-Protocol = SLIP,
Framed-Compression = Van-Jacobson-TCP-IP
DEFAULT Hint == "SLIP"
Framed-Protocol = SLIP
Код: Выделить всё
radtest test pass localhost 0 testing123
Sending Access-Request of id 80 to 127.0.0.1 port 1812
User-Name = "test"
User-Password = "pass"
NAS-IP-Address = 255.255.255.255
NAS-Port = 0
rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=80, length=26
Service-Type = NAS-Prompt-User
Код: Выделить всё
aaa authentication login default group radius local
aaa accounting system default start-stop group radius
radius-server host 10.0.0.51 auth-port 1812 acct-port 1813 key 7 01202327692E32300A6977
radius-server source-ports 1645-1646
radius-server unique-ident 2
Код: Выделить всё
Auth: Login incorrect (rlm_pap: CLEAR TEXT password check failed): [test/\211\324\253\300\303\347\244\002M\021\014\233E\201\357\276]