mirror of https://github.com/hak5/openwrt.git
firewall: enable /etc/firewall.user by default and install sample firewall.user file
SVN-Revision: 15221lede-17.01
parent
a03e00bbcf
commit
97100e0248
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||
PKG_NAME:=firewall
|
||||
|
||||
PKG_VERSION:=1
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
|
|
@ -22,6 +22,10 @@ config forwarding
|
|||
option dest wan
|
||||
option mtu_fix 1
|
||||
|
||||
# include a file with users custom iptables rules
|
||||
config include
|
||||
option path /etc/firewall.user
|
||||
|
||||
|
||||
### EXAMPLE CONFIG SECTIONS
|
||||
# do not allow a specific ip to access wan
|
||||
|
@ -53,10 +57,6 @@ config forwarding
|
|||
# option dest_port 80
|
||||
# option proto tcp
|
||||
|
||||
# include a file with users custom iptables rules
|
||||
#config include
|
||||
# option path /etc/firewall.user
|
||||
|
||||
|
||||
### FULL CONFIG SECTIONS
|
||||
#config rule
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
# This file is interpreted as shell script.
|
||||
# Put your custom iptables rules here, they will
|
||||
# be executed with each firewall (re-)start.
|
||||
|
Loading…
Reference in New Issue