diff options
author | 2013-12-23 13:06:53 +0000 | |
---|---|---|
committer | 2013-12-23 13:06:53 +0000 | |
commit | 19875b15905a7ad4b2204f9a18769df7bd0fa85b (patch) | |
tree | 010ef9e5e12f21833d6db542bd08864a66f1fd39 /usr.sbin/tftp-proxy/tftp-proxy.8 | |
parent | regen (diff) | |
download | wireguard-openbsd-19875b15905a7ad4b2204f9a18769df7bd0fa85b.tar.xz wireguard-openbsd-19875b15905a7ad4b2204f9a18769df7bd0fa85b.zip |
Implement -a option in tftp-proxy to make it work on a NAT gateway.
input/ok dlg, benno, camield
manpage input/ok jmc
Diffstat (limited to 'usr.sbin/tftp-proxy/tftp-proxy.8')
-rw-r--r-- | usr.sbin/tftp-proxy/tftp-proxy.8 | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/usr.sbin/tftp-proxy/tftp-proxy.8 b/usr.sbin/tftp-proxy/tftp-proxy.8 index 03d77b593f3..9cbda74b888 100644 --- a/usr.sbin/tftp-proxy/tftp-proxy.8 +++ b/usr.sbin/tftp-proxy/tftp-proxy.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tftp-proxy.8,v 1.3 2013/12/19 17:42:36 florian Exp $ +.\" $OpenBSD: tftp-proxy.8,v 1.4 2013/12/23 13:06:53 florian Exp $ .\" .\" Copyright (c) 2005 joshua stein <jcs@openbsd.org> .\" @@ -25,7 +25,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: December 19 2013 $ +.Dd $Mdocdate: December 23 2013 $ .Dt TFTP-PROXY 8 .Os .Sh NAME @@ -34,6 +34,7 @@ .Sh SYNOPSIS .Nm tftp-proxy .Op Fl 46dv +.Op Fl a Ar address .Op Fl l Ar address .Op Fl p Ar port .Op Fl w Ar transwait @@ -51,7 +52,7 @@ a rule with divert-reply set. .Pp The proxy inserts .Xr pf 4 -pass rules using the +pass and/or rdr rules using the .Ar anchor facility to allow payload packets between the client and the server. Once the rules are inserted, @@ -76,6 +77,16 @@ to use IPv4 addresses only. Forces .Nm to use IPv6 addresses only. +.It Fl a Ar address +The proxy will use +.Ar address +as the source address for the initial request from the client to the server for +NAT traversal. +Instead of a +.Dq pass in +rule an +.Dq rdr +rule will be generated. .It Fl d Do not daemonize. If this option is specified, |