summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/ppp.8.m4
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-07-09 00:07:56 +0000
committerbrian <brian@FreeBSD.org>2001-07-09 00:07:56 +0000
commita3c5f8aba87d93c250f7cb3d4bab46a073cb8845 (patch)
tree3cfe71b4d9d924cff7901b12f0b8114b3c473acd /usr.sbin/ppp/ppp.8.m4
parent9b020ad7f31f9cfaf3c9d09136b71525dbe116e2 (diff)
downloadFreeBSD-src-a3c5f8aba87d93c250f7cb3d4bab46a073cb8845.zip
FreeBSD-src-a3c5f8aba87d93c250f7cb3d4bab46a073cb8845.tar.gz
Add a ``nat proto'' command -- similar to natd(8)'s -redirect_proto switch.
MFC after: 3 weeks
Diffstat (limited to 'usr.sbin/ppp/ppp.8.m4')
-rw-r--r--usr.sbin/ppp/ppp.8.m423
1 files changed, 23 insertions, 0 deletions
diff --git a/usr.sbin/ppp/ppp.8.m4 b/usr.sbin/ppp/ppp.8.m4
index 7b684c8..e74e2cd 100644
--- a/usr.sbin/ppp/ppp.8.m4
+++ b/usr.sbin/ppp/ppp.8.m4
@@ -3370,6 +3370,28 @@ or a range of ports the same size as the other ranges.
This option is useful if you wish to run things like Internet phone on
machines behind your gateway, but is limited in that connections to only
one interior machine per source machine and target port are possible.
+.It nat proto Ar proto localIP Op Ar publicIP Op Ar remoteIP
+This command tells
+.Nm
+to redirect packets of protocol type
+.Ar proto
+.Pq see Xr protocols 5
+to the internall address
+.Ar localIP .
+.Pp
+If
+.Ar publicIP
+is specified, only packets destined for that address are matched,
+otherwise the default alias address is used.
+.Pp
+If
+.Ar remoteIP
+is specified, only packets matching that source address are matched,
+.Pp
+This command is useful for redirecting tunnel endpoints to an internal machine,
+for example:
+.Pp
+.Dl nat proto ipencap 10.0.0.1
.It "nat proxy cmd" Ar arg Ns No ...
This command tells
.Nm
@@ -5646,6 +5668,7 @@ This socket is used to pass links between different instances of
.Xr crontab 5 ,
.Xr group 5 ,
.Xr passwd 5 ,
+.Xr protocols 5 ,
.Xr radius.conf 5 ,
.Xr resolv.conf 5 ,
.Xr syslog.conf 5 ,
OpenPOWER on IntegriCloud