git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@22216
3c298f89-4303-0410-b956-
a3cf2f4a3e73
PKG_NAME:=firewall
PKG_VERSION:=1
-PKG_RELEASE:=10
+PKG_RELEASE:=11
include $(INCLUDE_DIR)/package.mk
[ -z "$src" -o -z "$dest_ip" ] && { \
echo "redirect needs src and dest_ip"; return ; }
+ find_item "$src" $CONNTRACK_ZONES || \
+ append CONNTRACK_ZONES "$src"
+
src_port_first=${src_port%-*}
src_port_last=${src_port#*-}
[ "$src_port_first" != "$src_port_last" ] && { \
${src_mac:+-m mac --mac-source $src_mac} \
-j ACCEPT
}
+
[ "$proto" == "tcpudp" -o -z "$proto" ] && {
proto=tcp
add_rule