Hi, community!
I’m running a proxy service on OpenWrt 24.x which:
• creates a TUN interface
• dynamically sets up its own nftables table and chains on start/restart
I have a script in /etc/firewall.user that adds additional rules to those chains.
The script works flawlessly when executed manually after the service has started, but I’m struggling to run it automatically. I’ve already tried procd trigger, service hook, hotplug with no luck(
It must run after every start/restart of this specific service, once the TUN interface and nft tables already exist
I want to avoid modifying the service’s own /etc/init.d/ script.
What is the proper, supported OpenWrt (fw4) way to automatically execute /etc/firewall.user after a given service starts or restarts?