From 0bf8c55386f0c3d684089c8bdc93e762fe7f7122 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Fri, 25 Aug 2023 10:09:30 +0000 Subject: T3546: PPPoE-server add extended scripts for RADIUS attributes Ability to get and parse RADIUS attributes via a shell script and then execute commands Ane of the usecases is to create a custom shaper with some smart Extended scripts receive from PPPoE daemon the following variables: $1 - Interface name $4 - Tunnel GW IP address $5 - Delegated IP address to the client $6 - Calling Station ID (MAC) if [ -f /run/accel-pppd/radattr.$1 ]; then true fi --- interface-definitions/service_pppoe-server.xml.in | 39 +++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'interface-definitions') diff --git a/interface-definitions/service_pppoe-server.xml.in b/interface-definitions/service_pppoe-server.xml.in index 65868226b..876aadcf7 100644 --- a/interface-definitions/service_pppoe-server.xml.in +++ b/interface-definitions/service_pppoe-server.xml.in @@ -340,6 +340,45 @@ + + + Extended script execution + + + + + Script to run before PPPoE session interface comes up + + + + + + + + Script to run when PPPoE session interface is completely configured and started + + + + + + + + Script to run when PPPoE session interface going to terminate + + + + + + + + Script to run when PPPoE session interface changed by RADIUS CoA handling + + + + + + + -- cgit v1.2.3