commit 8947862e3e7a03e5e7cabc441ca70c016a7f5bed from: Omar Polo date: Tue Nov 23 17:08:54 2021 UTC improve manpage and sync usage commit - 97b5d46faaf0295397b8ac10736936cdcd7f583c commit + 8947862e3e7a03e5e7cabc441ca70c016a7f5bed blob - 96603e67cab9f369059ecaee92f04287b841df51 blob + 1081ab94e94d21c43eddc424f5fd22ce4d9964c0 --- lstun.1 +++ lstun.1 @@ -11,7 +11,7 @@ .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -.Dd $Mdocdate: November 20 2021$ +.Dd $Mdocdate: November 23 2021$ .Dt LSTUN 1 .Os .Sh NAME @@ -20,7 +20,7 @@ .Sh SYNOPSIS .Nm .Bk -words -.Fl B Ar port:host:hostport +.Fl B Ar sshaddr .Fl b Ar addr .Op Fl t Ar timeout .Ar destination @@ -42,14 +42,19 @@ The tunnel is established by running .Bk .Pa /usr/bin/ssh -.Fl L Ar port:host:hostport +.Fl L Ar sshaddr .Fl NTq .Ar destination . .Ek .Pp The arguments are as follows: .Bl -tag -width Ds -.It Fl B Ar port:host:hostport +.It Fl B Xo +.Sm off +.Oo Ar bind_address : Oc +.Ar port : host : hostport +.Sm on +.Xc Fed to .Xr ssh 1 .Fl L blob - 1f5f88032b6844ccfbdd46732096e1c681083db7 blob + 90aee5a5f007d52a75b505f44ff7e2fcb631f15f --- lstun.c +++ lstun.c @@ -299,7 +299,7 @@ do_accept(int fd, short event, void *data) static void __dead usage(void) { - fprintf(stderr, "usage: %s -B port:host:hostport -b addr [-t timeout]" + fprintf(stderr, "usage: %s -B sshaddr -b addr [-t timeout]" " destination\n", getprogname()); exit(1); }