summaryrefslogtreecommitdiff
path: root/firewall/files/firewall.init
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2021-05-18 22:56:05 +0200
committerKarel Kočí <cynerd@email.cz>2021-05-18 22:56:05 +0200
commit82b6fdad3e720a59a8314e74a9b9f87775ec2514 (patch)
treed1effa25b8af6afaa5cb020609fd43b9032d7252 /firewall/files/firewall.init
parenta15265f77d1cfb1d53de6919a65e5fd73cbeafe2 (diff)
downloadopenwrt-personal-pkgs-82b6fdad3e720a59a8314e74a9b9f87775ec2514.tar.gz
openwrt-personal-pkgs-82b6fdad3e720a59a8314e74a9b9f87775ec2514.tar.bz2
openwrt-personal-pkgs-82b6fdad3e720a59a8314e74a9b9f87775ec2514.zip
firewall: remove for now
Diffstat (limited to 'firewall/files/firewall.init')
-rwxr-xr-xfirewall/files/firewall.init61
1 files changed, 0 insertions, 61 deletions
diff --git a/firewall/files/firewall.init b/firewall/files/firewall.init
deleted file mode 100755
index ee3ed1a..0000000
--- a/firewall/files/firewall.init
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/sh /etc/rc.common
-
-START=19
-USE_PROCD=1
-QUIET=""
-
-validate_firewall_redirect()
-{
- uci_validate_section firewall redirect "${1}" \
- 'proto:or(uinteger, string)' \
- 'src:string' \
- 'src_ip:cidr' \
- 'src_dport:or(port, portrange)' \
- 'dest:string' \
- 'dest_ip:cidr' \
- 'dest_port:or(port, portrange)' \
- 'target:or("SNAT", "DNAT")'
-}
-
-validate_firewall_rule()
-{
- uci_validate_section firewall rule "${1}" \
- 'proto:or(uinteger, string)' \
- 'src:string' \
- 'dest:string' \
- 'src_port:or(port, portrange)' \
- 'dest_port:or(port, portrange)' \
- 'target:string'
-}
-
-service_triggers() {
- procd_add_reload_trigger firewall
-
- procd_open_validate
- validate_firewall_redirect
- validate_firewall_rule
- procd_close_validate
-}
-
-restart() {
- fw3 restart
-}
-
-start_service() {
- fw3 ${QUIET} start
-}
-
-stop_service() {
- fw3 flush
-}
-
-reload_service() {
- fw3 reload
-}
-
-boot() {
- # Be silent on boot, firewall might be started by hotplug already,
- # so don't complain in syslog.
- QUIET=-q
- start
-}