Fixing UDP allows

master
bruns@2mbit.com 2009-08-15 23:56:02 +00:00
parent 313cff540c
commit 77b891f0a5
1 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#/bin/bash #/bin/bash
# v0.3 # v0.4
# By Brielle Bruns <bruns@2mbit.com> # By Brielle Bruns <bruns@2mbit.com>
# URL: http://www.sosdg.org/freestuff/firewall # URL: http://www.sosdg.org/freestuff/firewall
# License: GPLv3 # License: GPLv3
@ -61,8 +61,9 @@ 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 INPUT -p udp --sport $i --dport 1:65535 -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 --sport $i --dport 1:65535 -j ACCEPT
done done
echo -en "\n" echo -en "\n"