1 --- MoBlock-0.8/MoBlock-nfq.sh.orig 2008-11-30 03:44:02.000000000 -0500
2 +++ MoBlock-0.8/MoBlock-nfq.sh 2008-12-01 18:56:15.000000000 -0500
4 # MoBlock.sh - MoBlock start script
5 # ---------------------------------
14 +# Some configuration options have been moved to an external conf file
15 +# This should make maintenance and upgrading easier
17 +. /etc/moblock/config
19 PIDF=/var/run/moblock.pid
22 iptables -I MOBLOCK_FW -p udp --dport $PORT -j ACCEPT
25 +# For added IP whitelisting support
27 +for IP in $WHITE_IP_OUT; do
28 + iptables -I MOBLOCK_OUT -p all -m iprange --dst-range $IP -j ACCEPT
30 +for IP in $WHITE_IP_IN; do
31 + iptables -I MOBLOCK_IN -p all -m iprange --src-range $IP -j ACCEPT
33 +for IP in $WHITE_IP_FW; do
34 + iptables -I MOBLOCK_FW -p all -m iprange --dst-range $IP -j ACCEPT
37 # Loopback traffic fix
40 iptables -I OUTPUT -p all -o lo -j ACCEPT
42 # Here you can change block list and log files
43 -./moblock -p /etc/guarding.p2p ./moblock.log
44 +#./moblock -p /etc/guarding.p2p ./moblock.log
45 +/usr/bin/moblock -p /etc/moblock/banned.list /var/log/moblock.log >/dev/null 2>&1
47 # On exit delete the rules we added