[Firewall] Port forwarding rules in separate file

Lonnie Abelbeck lists at lonnie.abelbeck.com
Fri Dec 2 15:31:57 CET 2011

On Dec 2, 2011, at 8:05 AM, Claes Parflo wrote:

> Hello,
> Is there a way to have port forwarding rules in a separate file instead of using firewall.conf, for example in /home directory? Same principle as DNSMASQ uses for hosts and MAC address? I'm using php to write to this file.
> Regards,
> Claes

Yes, use the "LOCAL_CONFIG_FILE" to source your own local script.  It gets called via:
if [ -e "$LOCAL_CONFIG_FILE" ]; then
and is called after firewall.conf is sourced, so you can override or add any AIF variables you need.


More information about the Firewall mailing list