I've struggled for quite a bit to get the variables working that is exposed by the ppp on-up and on-down scripts, because
- variable names includes dashes: local-address, remote-address, caller-id, called-id
- interface variable isn't the interface's name
Code: Select all
:local localAddr
:local remoteAddr
:local callerId
:local calledId
:local interfaceName
:set localAddr $"local-address"
:set remoteAddr $"remote-address"
:set callerId $"caller-id"
:set calledId $"called-id"
:set interfaceName [/interface get $interface name]
:log info "$user (srcIp=$callerId, dstIp=$calledId) connected: was given $remoteAddr IP (GW $localAddr) and assigned to $interfaceName interface"
My idea in the end is to add/remove Firewall Filter rules for a given IPSec client interface, since the interface name changes to unknown after the client disconnected AND because when I make use of the PPP incoming-filter/outgoing-filter and jump to ppp chain from the forward chain, then my ROS 6.33.3 goes into a weird state by removing all my bridge interfaces.