Allow GIT port (9418) out.

This commit is contained in:
Christoph 2019-03-13 16:04:59 +01:00
parent 2bae6a7953
commit 9444e0ae12
2 changed files with 32 additions and 0 deletions

View File

@ -1695,6 +1695,22 @@ for _dev in ${ext_if_arr[@]} ; do
fi
done
echo_done
# ---
# - GIT out only
# ---
echononl "\t\tGIT out only"
for _dev in ${ext_if_arr[@]} ; do
$ip6t -A OUTPUT -o $_dev -p tcp --dport 9418 -m state --state NEW -j ACCEPT
if $kernel_forward_between_interfaces ; then
$ip6t -A FORWARD -o $_dev -p tcp --dport 9418 -m state --state NEW -j ACCEPT
fi
done
echo_done
echo

View File

@ -1939,6 +1939,22 @@ for _dev in ${ext_if_arr[@]} ; do
fi
done
echo_done
# ---
# - GIT out only
# ---
echononl "\t\tGIT out only"
for _dev in ${ext_if_arr[@]} ; do
$ipt -A OUTPUT -o $_dev -p tcp --dport 9418 -m state --state NEW -j ACCEPT
if $kernel_activate_forwarding ; then
$ipt -A FORWARD -o $_dev -p tcp --dport 9418 -m state --state NEW -j ACCEPT
fi
done
echo_done
echo