contrib/freifunk-p2pblock: Fix non-working whitelist which was reported on irc, also fix whitespace issues and a typo in comment
This commit is contained in:
parent
5a0dbb895e
commit
52855e8e78
1 changed files with 4 additions and 4 deletions
|
@ -34,7 +34,7 @@ start() {
|
|||
|
||||
# create new p2p-chain
|
||||
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 udp --sport $portrange --dport $portrange -j p2pblock"
|
||||
|
||||
|
@ -55,7 +55,7 @@ start() {
|
|||
done
|
||||
|
||||
# insert whitelisted ips
|
||||
for ip in $WHITELIST; do
|
||||
for ip in $whitelist; do
|
||||
ipt_add "p2pblock -d $ip -j RETURN"
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in a new issue