Part of the Furniture
The openvpn-event template was posted by @john9527, so whilst not being a formal standard (it should be added to the firmware!) it eliminates the maintenance of a potentially humungous script that is easy to break i.e creating individual files for each VPN Client/Server instance reduces the chances of breaking 'everything'.Alright so what I did now is I create a "VPNPortRouting.sh" file in /jffs/scripts/ and I am calling it from "nat-start"
And then in "openvpn-event" file I add this code ( found it from this forum )
This way I'm calling the required "vpnclient1-route-up" so I want to know is this still the preferred method to call this file?
Obviously if you only have a need for 'vpnclient1-route-up' then you could simply use script openvpn-event, but should you wish to create a script for the event VPN Client 'DOWN' then it is safer to work on a separate script file 'vpnclient1-down' knowing you won't break the existing VPN Client 'ROUTE UP' code.