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.
On Jul 31, 2015, at 6:37 PM, Cassiano Peixoto <peixotocassiano@gmail.com> wrote:
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?
In 3.0.8 you can't use "update coa" in the post-auth section. You can use it there in 3.0.9. Alan DeKok.
Hi Alan, Thanks for your answer. I've just updated to 3.0.9 and after that using the same config i got a "Segmentation fault". Here is freeradius debug output: (1) # Executing section accounting from file /usr/local/etc/raddb/sites-enabled/default (1) accounting { (1) update coa { (1) Packet-Dst-IP-Address = 127.0.0.1 (1) Packet-Dst-Port = 4141 (1) EXPAND %{User-Name} (1) --> testuser (1) User-Name = testuser (1) EXPAND %{Acct-Session-Id} (1) --> 8625095-vlan400-2 (1) Acct-Session-Id = 8625095-vlan400-2 (1) EXPAND %{NAS-IP-Address} (1) --> 127.0.0.1 (1) NAS-IP-Address = 127.0.0.1 (1) EXPAND %{Framed-IP-Address} (1) --> x.x.x.x (1) Framed-IP-Address = x.x.x.x (1) EXPAND %{Mikrotik-Rate-Limit} (1) --> (1) Mikrotik-Rate-Limit = (1) mpd-limit += "in#1=all rate-limit 66 66 66 pass" (1) } # update coa = noop (1) detail: EXPAND /var/log/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d (1) detail: --> /var/log/radacct/127.0.0.1/detail-20150803 (1) detail: /var/log/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d expands to /var/log/radacct/127.0.0.1/detail-20150803 (1) detail: EXPAND %t (1) detail: --> Mon Aug 3 15:04:55 2015 (1) [detail] = ok (1) [unix] = ok (1) [exec] = noop (1) attr_filter.accounting_response: EXPAND %{User-Name} (1) attr_filter.accounting_response: --> testuser (1) attr_filter.accounting_response: Matched entry DEFAULT at line 15 (1) [attr_filter.accounting_response] = updated (1) } # accounting = updated Segmentation fault Exit 139 Any ideas? Thanks. On Sat, Aug 1, 2015 at 4:15 AM, Alan DeKok <aland@deployingradius.com> wrote:
On Jul 31, 2015, at 6:37 PM, Cassiano Peixoto <peixotocassiano@gmail.com> wrote:
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?
In 3.0.8 you can't use "update coa" in the post-auth section. You can use it there in 3.0.9.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Aug 3, 2015, at 8:37 PM, Cassiano Peixoto <peixotocassiano@gmail.com> wrote:
Thanks for your answer. I've just updated to 3.0.9 and after that using the same config i got a "Segmentation fault".
See http://wiki.freeradius.org/project/bug-reports Alan DeKok.
On 03-08-15 20:37, Cassiano Peixoto wrote:
Hi Alan,
Thanks for your answer. I've just updated to 3.0.9 and after that using the same config i got a "Segmentation fault".
It kind of reminds me of a segfault I fixed recently (see https://github.com/FreeRADIUS/freeradius-server/pull/1156). It might have been fixed in 3.0.x. On the other hand, your debug log looks like it has been generated after an Accounting-Request, which shouldn't have this problem. Could you try using 3.0.x from git to see if the problem still occurs? -- Herwin Weststrate
Hi Herwin, I've just tried with github 3.0.x version, i had the same issue. Do you need any other extra info? On Tue, Aug 4, 2015 at 4:29 AM, Herwin Weststrate <herwin@quarantainenet.nl> wrote:
On 03-08-15 20:37, Cassiano Peixoto wrote:
Hi Alan,
Thanks for your answer. I've just updated to 3.0.9 and after that using the same config i got a "Segmentation fault".
It kind of reminds me of a segfault I fixed recently (see https://github.com/FreeRADIUS/freeradius-server/pull/1156). It might have been fixed in 3.0.x. On the other hand, your debug log looks like it has been generated after an Accounting-Request, which shouldn't have this problem.
Could you try using 3.0.x from git to see if the problem still occurs?
-- Herwin Weststrate
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Aug 4, 2015, at 8:19 PM, Cassiano Peixoto <peixotocassiano@gmail.com> wrote:
I've just tried with github 3.0.x version, i had the same issue. Do you need any other extra info?
http://wiki.freeradius.org/project/bug-reports Alan DeKok.
participants (3)
-
Alan DeKok -
Cassiano Peixoto -
Herwin Weststrate