From 56b10a617339563cda2c761e77b3acb96a1b084c Mon Sep 17 00:00:00 2001 From: cassio Date: Fri, 28 Aug 2015 10:31:34 +0100 Subject: small bug fixes --- tools/etc/network/if-pre-up.d/boca | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools/etc/network') 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 -- cgit v1.2.3