Adding prerun file

master
bruns@2mbit.com 2009-08-19 21:10:47 +00:00
parent aec794cddd
commit d4fec36e7c
2 changed files with 4 additions and 1 deletions

1
prerun Executable file
View File

@ -0,0 +1 @@
#!/bin/bash

View File

@ -19,6 +19,8 @@ if [ $NAT ]; then
fi fi
$IPTABLES -F -t raw &>/dev/null $IPTABLES -F -t raw &>/dev/null
$BASEDIR/prerun
$IPTABLES -A INPUT -i lo -j ACCEPT $IPTABLES -A INPUT -i lo -j ACCEPT
$IPTABLES -A OUTPUT -o lo -j ACCEPT $IPTABLES -A OUTPUT -o lo -j ACCEPT
@ -61,7 +63,7 @@ done
for i in $UDPPORTS; do for i in $UDPPORTS; do
echo -n "UDP/$i " echo -n "UDP/$i "
#$IPTABLES -A INPUT -p udp --dport $i -j ACCEPT #$IPTABLES -A INPUT -p udp --dport $i -j ACCEPT
#$IPTABLES -A OUTPUT -p udp --sport 1:65535 --dport $i -j ACCEPT $IPTABLES -A OUTPUT -p udp --sport 1:65535 --dport $i -j ACCEPT
$IPTABLES -A INPUT -p udp --dport $i --sport 1:65535 -j ACCEPT $IPTABLES -A INPUT -p udp --dport $i --sport 1:65535 -j ACCEPT
$IPTABLES -A INPUT -p udp --sport $i --dport 1:65535 -j ACCEPT $IPTABLES -A INPUT -p udp --sport $i --dport 1:65535 -j ACCEPT
done done