mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-08-28 20:06:05 +00:00
feat: Allow all forwarded NAT traffic (#1245)
This commit is contained in:
+2
-3
@@ -960,11 +960,10 @@ configureTables() {
|
||||
warn "$tables_err" && return 1
|
||||
fi
|
||||
|
||||
# Allow return traffic
|
||||
# Allow forwarding from dev -> bridge
|
||||
if ! iptables -A FORWARD \
|
||||
-i "$DEV" \
|
||||
-o "$BRIDGE" \
|
||||
-m conntrack --ctstate RELATED,ESTABLISHED \
|
||||
-m comment --comment "$rule_tag" \
|
||||
-j ACCEPT; then
|
||||
warn "$tables_err" && return 1
|
||||
@@ -1395,7 +1394,7 @@ showHostInfo() {
|
||||
[[ "$nameservers" == "127.0.0.1"* ]] && nameservers=""
|
||||
|
||||
echo
|
||||
|
||||
|
||||
if (( ${#nameservers} <= 40 )); then
|
||||
[ -n "$nameservers" ] && line+=" | DNS: $nameservers"
|
||||
echo "$line"
|
||||
|
||||
Reference in New Issue
Block a user