From 9657b6ed05cc67273f6bab1751ae98ca4e89f114 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Mon, 27 Sep 2021 05:24:30 +0200 Subject: conf, tcp: Periodic detection of bound ports for pasta port forwarding Detecting bound ports at start-up time isn't terribly useful: do this periodically instead, if configured. This is only implemented for TCP at the moment, UDP is somewhat more complicated: leave a TODO there. Signed-off-by: Stefano Brivio --- passt.1 | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'passt.1') diff --git a/passt.1 b/passt.1 index e547eca..d3a5cc5 100644 --- a/passt.1 +++ b/passt.1 @@ -297,9 +297,9 @@ Don't forward any ports .TP .BR auto -Forward all ports currently bound in the namespace. The list of ports is derived -from listening sockets reported by \fI/proc/net/tcp\fR and \fI/proc/net/tcp6\fR, -see \fBproc\fR(5). +Dynamically forward ports bound in the namespace. The list of ports is +periodically derived (every second) from listening sockets reported by +\fI/proc/net/tcp\fR and \fI/proc/net/tcp6\fR, see \fBproc\fR(5). .TP .BR ports @@ -331,9 +331,10 @@ Default is \fBauto\fR. .TP .BR \-u ", " \-\-udp-ports " " \fIspec -Configure UDP port forwarding to guest. \fIspec\fR is as described for TCP +Configure UDP port forwarding to namespace. \fIspec\fR is as described for TCP above, and the list of ports is derived from listening sockets reported by -\fI/proc/net/udp\fR and \fI/proc/net/udp6\fR, see \fBproc\fR(5). +\fI/proc/net/udp\fR and \fI/proc/net/udp6\fR, see \fBproc\fR(5), +when \fBpasta\fR starts (not periodically). Note: unless overridden, UDP ports with numbers corresponding to forwarded TCP port numbers are forwarded too, without, however, any port translation. @@ -345,14 +346,14 @@ Default is \fBauto\fR. .TP .BR \-T ", " \-\-tcp-ns " " \fIspec Configure TCP port forwarding from target namespace to init namespace. -\fIspec\fR is as described above. +\fIspec\fR is as described above for TCP. Default is \fBauto\fR. .TP .BR \-U ", " \-\-udp-ns " " \fIspec Configure UDP port forwarding from target namespace to init namespace. -\fIspec\fR is as described above. +\fIspec\fR is as described above for UDP. Default is \fBauto\fR. -- cgit v1.2.3