mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 08:51:13 +00:00
7d7d88b580
- 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
22 lines
235 B
Bash
Executable File
22 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
|
|
}
|