Unverified Commit 629ae347 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Revert MASQUERADE rule for bridge (#973)

parent 8102578c
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -558,10 +558,6 @@ configureNAT() {
    warn "$tables" && return 1
  fi

  if ! iptables -t nat -A POSTROUTING -o "$VM_NET_BRIDGE" -j MASQUERADE; then
    warn "$tables" && return 1
  fi

  # shellcheck disable=SC2086
  if ! iptables -t nat -A PREROUTING -i "$VM_NET_DEV" -d "$IP" -p tcp${exclude} -j DNAT --to "$ip"; then
    warn "failed to configure IP tables!" && return 1