1 .\" Copyright (c) 2021 Omar Polo <op@omarpolo.com>
3 .\" Permission to use, copy, modify, and distribute this software for any
4 .\" purpose with or without fee is hereby granted, provided that the above
5 .\" copyright notice and this permission notice appear in all copies.
7 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 .Dd $Mdocdate: November 23 2021$
35 instance to forward the traffic to a remote end.
39 from the last client activity, the ssh tunnel is closed.
43 tunnel is established by running
51 The arguments are as follows:
55 .Oo Ar bind_address : Oc
56 .Ar port : host : hostport
63 .It Fl b Oo Ar host : Oc Ns Ar port
64 Where to bind the local socket.
68 will run in the foregound and log to
71 Number of seconds after the last client shutdown to kill the ssh
73 Set to zero to keep the tunnel open indefinitely.
77 Produce more verbose output.
80 Forward traffic on the local port 2525 to the remote port 25
81 .Po the port 2526 is binded by ssh while
83 listens on 2525 and forwards the traffic
85 .Bd -literal -offset indent
86 $ lstun -B 2526:localhost:25 -b 2525 example.com
92 utility was written by
93 .An Omar Polo Aq Mt op@omarpolo.com .
95 Currently it's impossible to pass flags to the
98 This is especially painful when you need to use, say, a jump host.