Generating CoA
Cassiano Peixoto
peixotocassiano at gmail.com
Fri Jul 31 18:37:51 CEST 2015
Hi,
I'm using freeradius 3.0.8 as proxy, but i can't generate CoA packets to
server 10.0.0.1 on port 4141. What i'm doing wrong? Am i missing something?
I've added to my accounting section:
update coa {
Packet-Dst-IP-Address = 10.0.0.1
Packet-Dst-Port = 4141
User-Name = "%{User-Name}"
Acct-Session-Id = "%{Acct-Session-Id}"
NAS-IP-Address = "%{NAS-IP-Address}"
Framed-IP-Address = "%{Framed-IP-Address}"
Mikrotik-Rate-Limit = "256k/256k"
}
And in my originate-coa i have:
home_server example-coa {
type = coa
ipaddr = 10.0.0.1
port = 4141
secret = testing
coa {
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
}
home_server_pool coa {
type = fail-over
home_server = example-coa
virtual_server = originate-coa.example.com
}
server originate-coa.example.com {
pre-proxy {
#update proxy-request {
#NAS-IP-Address = 192.0.2.42
#}
}
post-proxy {
switch &proxy-reply:Packet-Type {
case CoA-ACK {
ok
}
case CoA-NAK {
ok
}
case Disconnect-ACK {
ok
}
case Disconnect-NAK {
ok
}
case {
fail
}
}
Post-Proxy-Type Fail-CoA {
ok
}
Post-Proxy-Type Fail-Disconnect {
ok
}
}
}
Thanks for your help.
More information about the Freeradius-Users
mailing list