mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
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.
This commit is contained in:
parent
5dd44916b7
commit
804e0a12f2
3 changed files with 11 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue