diff options
| author | cassio <cassiopc@gmail.com> | 2015-08-28 09:31:34 +0000 |
|---|---|---|
| committer | cassio <cassiopc@gmail.com> | 2015-08-28 09:31:34 +0000 |
| commit | 56b10a617339563cda2c761e77b3acb96a1b084c (patch) | |
| tree | b0856564f7652ec2940aa6f0595cef1c7b73b52a /tools/etc/network | |
| parent | 2a185532e3a0acf9e37e601fc71c148510dd36a7 (diff) | |
| download | boca-56b10a617339563cda2c761e77b3acb96a1b084c.tar.gz boca-56b10a617339563cda2c761e77b3acb96a1b084c.zip | |
small bug fixes
Diffstat (limited to 'tools/etc/network')
| -rw-r--r-- | tools/etc/network/if-pre-up.d/boca | 7 |
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 |