2 .\" Copyright (c) 2008 The DragonFly Project. All rights reserved.
4 .\" This code is derived from software contributed to The DragonFly Project
5 .\" by Matthew Dillon <dillon@backplane.com>
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in
15 .\" the documentation and/or other materials provided with the
17 .\" 3. Neither the name of The DragonFly Project nor the names of its
18 .\" contributors may be used to endorse or promote products derived
19 .\" from this software without specific, prior written permission.
21 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 .\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24 .\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25 .\" COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26 .\" INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
27 .\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28 .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
29 .\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
31 .\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 .\" $DragonFly: src/usr.bin/vknet/vknet.1,v 1.4 2008/07/21 23:42:23 swildner Exp $
41 .Nd create a bridged network between two hosts over
46 .Op Fl b Ar local-bridge
47 .Op Fl B Ar remote-bridge
48 .Op Fl r Ar delay[:retries]
50 .Ar [user@]host[:remote-spec]
53 .Op Fl b Ar local-bridge
58 utility connects the local machine's network to the remote machine's
59 network over a SSH connection.
61 The local and remote specification
62 typically supplies a path to a vknetd socket such as
64 but may also specify a
68 keyword to automatically allocate a
72 If a TAP interface is used on any given side it can be bridged on that
75 If a unix domain socket path is specified
77 connects to use via the SOCK_SEQPACKET socket type.
79 sockets cannot be bridged (but you don't want to anyway because vknetd
80 is already typically connected to a potentially bridged TAP interface).
82 The following options are available:
87 compress the connection.
88 .It Fl b Ar local-bridge
89 Specify that the local specification, which must be a TAP interface or
91 be bridged to the specified bridge.
92 .It Fl B Ar remote-bridge
93 Specify that the remote specification, which must be a TAP interface or
95 be bridged to the specified bridge on the remote side.
96 .It Fl r Ar delay[:retries]
97 If the link cannot be established or is lost, delay the specified number
98 of seconds and retry. If no retry limit is specified an infinite number
99 of retries will be made.
101 This option is used by the
103 run on the remote side of the
105 link to use stdin and stdout as its
106 remote specification. This option is typically not specified manually.
109 .Li "vknet -r 5 /dev/vknet myhomesystem:/dev/vknet"
111 .Li "vknet -r 5 -b bridge0 -B bridge0 auto myhomesystem:auto"
113 You may have to load the
119 to provide an interconnect to the local and remote machine's nework.
121 .Bl -tag -width /var/log/lastlog -compact
123 TAP interface used to route packets from userland providers back into the
124 real machine. If not otherwise specified an unused TAP interface will be
130 typically connects to, established by
134 There are currently no known bugs.
142 command was written by Matthew Dillon and first appeared in