feat: Allow all forwarded NAT traffic (#82)

This commit is contained in:
Kroese
2026-07-11 08:42:11 +03:00
committed by GitHub
parent f109354b0e
commit bc85e62071
+2 -3
View File
@@ -455,11 +455,10 @@ configureTables() {
error "$tables_err" && return 1 error "$tables_err" && return 1
fi fi
# Allow return traffic from the Docker uplink back to the Proxmox VM subnet. # Allow traffic from the Docker uplink back to the Proxmox VM subnet.
if ! iptables -A FORWARD \ if ! iptables -A FORWARD \
-d "$subnet" \ -d "$subnet" \
-i "$DEV" \ -i "$DEV" \
-m conntrack --ctstate RELATED,ESTABLISHED \
-m comment --comment "$rule_tag" \ -m comment --comment "$rule_tag" \
-j ACCEPT; then -j ACCEPT; then
error "$tables_err" && return 1 error "$tables_err" && return 1
@@ -744,7 +743,7 @@ showHostInfo() {
[[ "$nameservers" == "127.0.0.1"* ]] && nameservers="" [[ "$nameservers" == "127.0.0.1"* ]] && nameservers=""
echo echo
if (( ${#nameservers} <= 40 )); then if (( ${#nameservers} <= 40 )); then
[ -n "$nameservers" ] && line+=" | DNS: $nameservers" [ -n "$nameservers" ] && line+=" | DNS: $nameservers"
echo "$line" echo "$line"