summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-03-31 20:42:24 +0000
committerbrian <brian@FreeBSD.org>2000-03-31 20:42:24 +0000
commitc4adf041813242453feda501a5a910f8765cc730 (patch)
treec25e74e796b440aad2b33764c61ec2e5e8851f48 /usr.sbin
parent67534b228aa77f848b6a5635e1164846fb38fc9e (diff)
downloadFreeBSD-src-c4adf041813242453feda501a5a910f8765cc730.zip
FreeBSD-src-c4adf041813242453feda501a5a910f8765cc730.tar.gz
Use INADDR_NONE with PacketAliasSetTarget() if no args are given to
``nat target'', and suggest the use of ``nat target default'' as an interesting possibility.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/nat_cmd.c2
-rw-r--r--usr.sbin/ppp/ppp.85
-rw-r--r--usr.sbin/ppp/ppp.8.m45
3 files changed, 11 insertions, 1 deletions
diff --git a/usr.sbin/ppp/nat_cmd.c b/usr.sbin/ppp/nat_cmd.c
index f1d75ed..baa5350 100644
--- a/usr.sbin/ppp/nat_cmd.c
+++ b/usr.sbin/ppp/nat_cmd.c
@@ -345,7 +345,7 @@ nat_SetTarget(struct cmdargs const *arg)
struct in_addr addr;
if (arg->argc == arg->argn) {
- addr.s_addr = INADDR_ANY;
+ addr.s_addr = INADDR_NONE;
PacketAliasSetTarget(addr);
return 0;
}
diff --git a/usr.sbin/ppp/ppp.8 b/usr.sbin/ppp/ppp.8
index da73af1..a9c1637 100644
--- a/usr.sbin/ppp/ppp.8
+++ b/usr.sbin/ppp/ppp.8
@@ -2997,6 +2997,11 @@ Set the given target address or clear it if no address is given. The target
address is used by libalias to specify how to NAT incoming packets by default.
If a target address is not set, the alias address (that of the tun interface)
is used.
+.Pp
+The target address may be set to
+.Dq default ,
+in which case libalias will not alter the destination address of new
+incoming data.
.It nat use_sockets yes|no
When enabled, this option tells the network address translation engine to
create a socket so that it can guarantee a correct incoming ftp data or
diff --git a/usr.sbin/ppp/ppp.8.m4 b/usr.sbin/ppp/ppp.8.m4
index da73af1..a9c1637 100644
--- a/usr.sbin/ppp/ppp.8.m4
+++ b/usr.sbin/ppp/ppp.8.m4
@@ -2997,6 +2997,11 @@ Set the given target address or clear it if no address is given. The target
address is used by libalias to specify how to NAT incoming packets by default.
If a target address is not set, the alias address (that of the tun interface)
is used.
+.Pp
+The target address may be set to
+.Dq default ,
+in which case libalias will not alter the destination address of new
+incoming data.
.It nat use_sockets yes|no
When enabled, this option tells the network address translation engine to
create a socket so that it can guarantee a correct incoming ftp data or
OpenPOWER on IntegriCloud