diff options
| author | cassio <cassiopc@gmail.com> | 2013-07-02 05:44:46 +0000 |
|---|---|---|
| committer | cassio <cassiopc@gmail.com> | 2013-07-02 05:44:46 +0000 |
| commit | a9aa438ea0558eb0044cf1e54a9190ddb41b65e5 (patch) | |
| tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /boca-1.5.2/tools/etc/network | |
| parent | 94caebadeb66ad7b453d4258a796979cafb758b0 (diff) | |
| download | boca-a9aa438ea0558eb0044cf1e54a9190ddb41b65e5.tar.gz boca-a9aa438ea0558eb0044cf1e54a9190ddb41b65e5.zip | |
restructuring of boca's git
Diffstat (limited to 'boca-1.5.2/tools/etc/network')
| -rw-r--r-- | boca-1.5.2/tools/etc/network/if-pre-up.d/boca | 25 | ||||
| -rw-r--r-- | boca-1.5.2/tools/etc/network/if-up.d/boca | 17 |
2 files changed, 0 insertions, 42 deletions
diff --git a/boca-1.5.2/tools/etc/network/if-pre-up.d/boca b/boca-1.5.2/tools/etc/network/if-pre-up.d/boca deleted file mode 100644 index f65a27f..0000000 --- a/boca-1.5.2/tools/etc/network/if-pre-up.d/boca +++ /dev/null @@ -1,25 +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 143.107.45.122 -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 -/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 diff --git a/boca-1.5.2/tools/etc/network/if-up.d/boca b/boca-1.5.2/tools/etc/network/if-up.d/boca deleted file mode 100644 index 0f31ee0..0000000 --- a/boca-1.5.2/tools/etc/network/if-up.d/boca +++ /dev/null @@ -1,17 +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 -if [ "$BOCASERVER" != "" ]; then - /sbin/iptables -A INPUT -s $BOCASERVER -j ACCEPT -fi -/sbin/iptables -A INPUT -j REJECT -else - if [ -x /etc/icpc/bocaserver.iptables ]; then - . /etc/icpc/bocaserver.iptables - fi -fi |