mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-20 00:58:25 +02:00
[package] firewall: enable /etc/firewall.user by default and install sample firewall.user file
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15221 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
dda4e674ce
commit
4ed7156513
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
PKG_NAME:=firewall
|
PKG_NAME:=firewall
|
||||||
|
|
||||||
PKG_VERSION:=1
|
PKG_VERSION:=1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
8
package/firewall/files/firewall.config
Executable file → Normal file
8
package/firewall/files/firewall.config
Executable file → Normal file
@ -22,6 +22,10 @@ config forwarding
|
|||||||
option dest wan
|
option dest wan
|
||||||
option mtu_fix 1
|
option mtu_fix 1
|
||||||
|
|
||||||
|
# include a file with users custom iptables rules
|
||||||
|
config include
|
||||||
|
option path /etc/firewall.user
|
||||||
|
|
||||||
|
|
||||||
### EXAMPLE CONFIG SECTIONS
|
### EXAMPLE CONFIG SECTIONS
|
||||||
# do not allow a specific ip to access wan
|
# do not allow a specific ip to access wan
|
||||||
@ -53,10 +57,6 @@ config forwarding
|
|||||||
# option dest_port 80
|
# option dest_port 80
|
||||||
# option proto tcp
|
# option proto tcp
|
||||||
|
|
||||||
# include a file with users custom iptables rules
|
|
||||||
#config include
|
|
||||||
# option path /etc/firewall.user
|
|
||||||
|
|
||||||
|
|
||||||
### FULL CONFIG SECTIONS
|
### FULL CONFIG SECTIONS
|
||||||
#config rule
|
#config rule
|
||||||
|
4
package/firewall/files/firewall.user
Normal file
4
package/firewall/files/firewall.user
Normal file
@ -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
Block a user