Fixing UDP allows
parent
313cff540c
commit
77b891f0a5
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue