Fixing more of my errors
parent
8eb1953ebb
commit
bd7fbeb274
|
@ -171,7 +171,7 @@ if [ "$BLOCKTCPPORTS" ] || [ "$BLOCKUDPPORTS" ]; then
|
|||
fi
|
||||
done
|
||||
fi
|
||||
echo -en "\n"
|
||||
reset_color
|
||||
fi
|
||||
|
||||
if [ -s "$BASEDIR/include/ipv4_custom_allowedports" ]; then
|
||||
|
@ -302,7 +302,7 @@ fi
|
|||
if [ $NAT ]; then
|
||||
if [ $NAT_RANGE ]; then
|
||||
display_c YELLOW "Adding NAT rule: " N
|
||||
for i in $NAT_RANGE; do
|
||||
for i in "$NAT_RANGE"; do
|
||||
NAT_RULE=( ${i//:/ } )
|
||||
case ${NAT_RULE[0]} in
|
||||
SNAT)
|
||||
|
@ -313,9 +313,8 @@ if [ $NAT ]; then
|
|||
$IPTABLES -A OUTPUT -p icmp --icmp-type fragmentation-needed -o ${NAT_RULE[3]} -j ACCEPT
|
||||
;;
|
||||
MASQ)
|
||||
$IPTABLES -A POSTROUTING -t nat -s ${NAT_RULE[2]} \
|
||||
-j MASQUERADE -o ${NAT_RULE[3]}
|
||||
display_c PURPLE "MASQ:${NAT_RULE[1]}:${NAT_RULE[2]}->${NAT_RULE[3]} " N
|
||||
$IPTABLES -A POSTROUTING -t nat -s ${NAT_RULE[2]} -j MASQUERADE -o ${NAT_RULE[3]}
|
||||
display_c PURPLE "MASQ:${NAT_RULE[2]}->${NAT_RULE[3]} " N
|
||||
$IPTABLES -A OUTPUT -p icmp --icmp-type time-exceeded -o ${NAT_RULE[3]} -j ACCEPT
|
||||
$IPTABLES -A OUTPUT -p icmp --icmp-type fragmentation-needed -o ${NAT_RULE[3]} -j ACCEPT
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue