diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-08-03 22:24:48 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-08-03 22:24:48 +0000 |
commit | 5c4b352bf542636809d0385755ef36c20d1776f4 (patch) | |
tree | 621b8ac1f6fa63f60afc1ffaf591dea7e24ad903 | |
parent | 30d59cc2a30e9f86d61916834c0137a049328faa (diff) | |
download | upstream-5c4b352bf542636809d0385755ef36c20d1776f4.tar.gz upstream-5c4b352bf542636809d0385755ef36c20d1776f4.tar.bz2 upstream-5c4b352bf542636809d0385755ef36c20d1776f4.zip |
[package] firewall: add icmp_type option to specify the icmp type in rule sections, bump pkg revision (#5554)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17115 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/firewall/Makefile | 2 | ||||
-rwxr-xr-x | package/firewall/files/uci_firewall.sh | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/package/firewall/Makefile b/package/firewall/Makefile index 61da9bed19..7dcc2f5739 100644 --- a/package/firewall/Makefile +++ b/package/firewall/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=firewall PKG_VERSION:=1 -PKG_RELEASE:=3 +PKG_RELEASE:=4 include $(INCLUDE_DIR)/package.mk diff --git a/package/firewall/files/uci_firewall.sh b/package/firewall/files/uci_firewall.sh index 263a33d153..b71b25de7c 100755 --- a/package/firewall/files/uci_firewall.sh +++ b/package/firewall/files/uci_firewall.sh @@ -243,6 +243,7 @@ fw_rule() { local dest_ip local dest_port local proto + local icmp_type local target local ruleset @@ -254,6 +255,7 @@ fw_rule() { config_get dest_ip $1 dest_ip config_get dest_port $1 dest_port config_get proto $1 proto + config_get icmp_type $1 icmp_type config_get target $1 target config_get ruleset $1 ruleset @@ -276,6 +278,7 @@ fw_rule() { add_rule() { $IPTABLES -I $ZONE 1 \ ${proto:+-p $proto} \ + ${icmp_type:+--icmp-type $icmp_type} \ ${src_ip:+-s $src_ip} \ ${src_port:+--sport $src_port} \ ${src_mac:+-m mac --mac-source $src_mac} \ |