aboutgitcodebugslistschat
path: root/passt.1
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2023-05-14 16:24:11 +0200
committerStefano Brivio <sbrivio@redhat.com>2023-05-23 16:13:28 +0200
commita7359f09489803e501c85c7158b9462c6b3df465 (patch)
treee5cb8249fe2fe0dc7d4c9cc56d6c6b3d0003f949 /passt.1
parente8fef7525cdea5857deb3cbbbb32ab7b42cfdc1f (diff)
downloadpasst-a7359f09489803e501c85c7158b9462c6b3df465.tar
passt-a7359f09489803e501c85c7158b9462c6b3df465.tar.gz
passt-a7359f09489803e501c85c7158b9462c6b3df465.tar.bz2
passt-a7359f09489803e501c85c7158b9462c6b3df465.tar.lz
passt-a7359f09489803e501c85c7158b9462c6b3df465.tar.xz
passt-a7359f09489803e501c85c7158b9462c6b3df465.tar.zst
passt-a7359f09489803e501c85c7158b9462c6b3df465.zip
conf: Don't exit if sourced default route has no gateway
If we use a template interface without a gateway on the default route, we can still offer almost complete functionality, except that, of course, we can't map the gateway address to the outer namespace or host, and that we have no obvious server address or identifier for use in DHCP's siaddr and option 54 (Server identifier, mandatory). Continue, if we have a default route but no default gateway, and imply --no-map-gw and --no-dhcp in that case. NDP responder and DHCPv6 should be able to work as usual because we require a link-local address to be present, and we'll fall back to that. Together with the previous commits implementing an actual copy of routes from the outer namespace, this should finally fix the operation of 'pasta --config-net' for cases where we have a default route on the host, but no default gateway, as it's the case for tap-style routes, including typical Wireguard endpoints. Reported-by: me@yawnt.com Link: https://bugs.passt.top/show_bug.cgi?id=49 Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'passt.1')
-rw-r--r--passt.16
1 files changed, 4 insertions, 2 deletions
diff --git a/passt.1 b/passt.1
index ee2803a..96ce96e 100644
--- a/passt.1
+++ b/passt.1
@@ -281,7 +281,8 @@ guest or target namespace will be silently dropped.
.TP
.BR \-\-no-dhcp
Disable the DHCP server. DHCP client requests coming from guest or target
-namespace will be silently dropped.
+namespace will be silently dropped. Implied if there is no gateway on the
+selected IPv4 default route.
.TP
.BR \-\-no-ndp
@@ -301,7 +302,8 @@ namespace will be ignored.
.TP
.BR \-\-no-map-gw
Don't remap TCP connections and untracked UDP traffic, with the gateway address
-as destination, to the host.
+as destination, to the host. Implied if there is no gateway on the selected
+default route for any of the enabled address families.
.TP
.BR \-4 ", " \-\-ipv4-only