1 #!/bin/sh /etc/rc.common
7 validate_firewall_redirect()
9 uci_validate_section firewall redirect "${1}" \
10 'proto:or("tcp", "udp", "tcpudp")' \
17 'target:or("SNAT", "DNAT")'
22 validate_firewall_rule()
24 uci_validate_section firewall rule "${1}" \
36 procd_add_reload_trigger firewall
39 validate_firewall_redirect
40 validate_firewall_rule
61 # Be silent on boot, firewall might be started by hotplug already,
62 # so don't complain in syslog.