diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-08-10 10:35:53 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-08-10 10:35:53 +0000 |
| commit | 02b4aacc81613792b0fa618692145dc1e2989e42 (patch) | |
| tree | da7e9da7a587e8ffa9032ebf02a1022a315e9305 /tools/etc/network/if-up.d | |
| parent | e1b61094597488dcb3ef166013186b07bf379d76 (diff) | |
| download | boca-02b4aacc81613792b0fa618692145dc1e2989e42.tar.gz boca-02b4aacc81613792b0fa618692145dc1e2989e42.zip | |
removal of old files, preparation for https
Diffstat (limited to 'tools/etc/network/if-up.d')
| -rw-r--r-- | tools/etc/network/if-up.d/boca | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tools/etc/network/if-up.d/boca b/tools/etc/network/if-up.d/boca deleted file mode 100644 index 20ff38f..0000000 --- a/tools/etc/network/if-up.d/boca +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash -if [ ! -f /etc/icpc/.isserver ]; then -if [ -x /etc/icpc/bocaserver.sh ]; then - . /etc/icpc/bocaserver.sh -fi -/sbin/iptables -F INPUT -/sbin/iptables -A INPUT -i lo -j ACCEPT -/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 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 | tr ';' ' '`; 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 -/sbin/iptables -A INPUT -j REJECT -else - if [ -x /etc/icpc/bocaserver.iptables ]; then - . /etc/icpc/bocaserver.iptables - fi -fi |