aboutsummaryrefslogtreecommitdiff
path: root/tools/etc/network/if-pre-up.d/boca
diff options
context:
space:
mode:
Diffstat (limited to 'tools/etc/network/if-pre-up.d/boca')
-rw-r--r--tools/etc/network/if-pre-up.d/boca7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/etc/network/if-pre-up.d/boca b/tools/etc/network/if-pre-up.d/boca
index f65a27f..3e5eb5b 100644
--- a/tools/etc/network/if-pre-up.d/boca
+++ b/tools/etc/network/if-pre-up.d/boca
@@ -8,12 +8,17 @@ fi
/sbin/iptables -A INPUT -s 143.107.255.15 -j ACCEPT
# just to make things easier, let's allow communication to/from BOCA servers
-/sbin/iptables -A INPUT -s 143.107.45.122 -j ACCEPT
+/sbin/iptables -A INPUT -s 45.33.30.235 -j ACCEPT
/sbin/iptables -A INPUT -s 50.116.19.221 -j ACCEPT
if [ "$BOCASERVER" != "" ]; then
/sbin/iptables -A INPUT -s $BOCASERVER -j ACCEPT
fi
+if [ "$BOCASERVERS" != "" ]; then
+ for i in `echo $BOCASERVERS | cut -d';'`; do
+ /sbin/iptables -A INPUT -s $i -j ACCEPT
+ done
+fi
/sbin/iptables -A INPUT -m udp -p udp -s 0/0 --sport 67:68 --dport 67:68 -j ACCEPT
/sbin/iptables -A INPUT -m udp -p udp -s 0/0 --sport 53 --dport 53 -j ACCEPT
/sbin/iptables -A INPUT -m tcp -p tcp -s 0/0 --sport 53 --dport 53 -j ACCEPT