luci-0.11: merge r9362 and r9363
This commit is contained in:
parent
0a6c627ac7
commit
25a1e70804
2 changed files with 5 additions and 5 deletions
|
@ -8,7 +8,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=freifunk-p2pblock
|
PKG_NAME:=freifunk-p2pblock
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ start() {
|
||||||
|
|
||||||
# create new p2p-chain
|
# create new p2p-chain
|
||||||
iptables -N p2pblock
|
iptables -N p2pblock
|
||||||
# pipe all incomming FORWARD with source-/destination-port 1024-65535 throu p2p-chain
|
# pipe all incoming FORWARD with source-/destination-port 1024-65535 throu p2p-chain
|
||||||
ipt_add "FORWARD -i $wan -p tcp --sport $portrange --dport $portrange -j p2pblock"
|
ipt_add "FORWARD -i $wan -p tcp --sport $portrange --dport $portrange -j p2pblock"
|
||||||
ipt_add "FORWARD -i $wan -p udp --sport $portrange --dport $portrange -j p2pblock"
|
ipt_add "FORWARD -i $wan -p udp --sport $portrange --dport $portrange -j p2pblock"
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ start() {
|
||||||
done
|
done
|
||||||
|
|
||||||
# insert whitelisted ips
|
# insert whitelisted ips
|
||||||
for ip in $WHITELIST; do
|
for ip in $whitelist; do
|
||||||
ipt_add "p2pblock -d $ip -j RETURN"
|
ipt_add "p2pblock -d $ip -j RETURN"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue