Thanks Alan. I have added perl in the preacct as you suggested but I can not see it is proxied yet. Here is my /usr/local/etc/raddb/mods-enabled/perl perl { filename="${confdir}/scripts/script.pl" func_authenticate = authenticate func_authorize = authorize func_preacct = preacct func_accounting = accounting func_post_auth = post_auth func_xlat = xlat func_detach = detach } and in my script.pl I have sub authorize { return mytestfunc(); } sub authenticate { return mytestfunc(); } sub preacct { return mytestfunc(); } sub accounting { return mytestfunc(); } sub pre_proxy { return RLM_MODULE_OK; #return mytestfunc(); } sub post_proxy { return RLM_MODULE_OK; } sub post_auth { return RLM_MODULE_OK; } in /usr/local/etc/raddb/sites-enabled/default I have preacct { preprocess acct_unique suffix files perl } authorize { filter_username preprocess auth_log chap mschap digest eap { ok = return } files perl sql -ldap expiration logintime pap } authenticate { Auth-Type PAP { pap } Auth-Type CHAP { chap } Auth-Type MS-CHAP { mschap } mschap digest eap Auth-Type Perl { perl } } accounting { detail unix radutmp perl sql exec attr_filter.accounting_response } session { # sql } pre-proxy { } post-proxy { eap } On Wed, Oct 10, 2018 at 4:49 AM Alan DeKok <aland@deployingradius.com> wrote:
On Oct 8, 2018, at 5:59 PM, J E H A N Z A I B <jehanzaib.kiani@gmail.com> wrote:
I have added the proxy request but I cant see if the radius executes the proxy. Here are some logs if anyone can see the issue.
Run the Perl script in the "preacct" section.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Regards, Jehanzaib