openwrtv4/package/network/config/firewall3/files/firewall.init
Jo-Philipp Wich 7d7d88b580 firewall3: update to git head
- all uci rules are boxed in custom chains now, so a firewall stop leaves user rules intact
	- properly handle selective ipv4 or ipv6 only firewall start/stop/restart actions
	- support ip ranges (e.g. option src_ip '!192.168.1.1-192.168.1.100' -> -m iprange ! --src-range 192.168.1.1-192.168.1.100')
	- support time options (e.g. option weekdays 'Mon Tue Sat' -> -m time --weekdays 1,2,6')

SVN-Revision: 35738
2013-02-21 22:33:44 +00:00

21 lines
235 B
Bash
Executable file

#!/bin/sh /etc/rc.common
START=19
boot() {
# Be silent on boot, firewall might be started by hotplug already,
# so don't complain in syslog.
fw3 -q start
}
start() {
fw3 start
}
stop() {
fw3 stop
}
restart() {
fw3 restart
}