mirror of
https://github.com/dockur/proxmox.git
synced 2026-07-27 16:54:51 +07:00
feat: Allow all forwarded NAT traffic (#82)
This commit is contained in:
+2
-3
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user