diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-12-15 13:59:08 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-12-15 13:59:08 +0100 |
commit | b820d892a6914104a0ecb3af9fa287e693a4f90c (patch) | |
tree | a4e6679090d9745a87bb6db8413ad087a35dc4fa /sys | |
parent | c3af90c6c7441c41dc592d0b94023895859634fa (diff) |
ip(3): document special null-address hack for accepting all incoming connections
Diffstat (limited to 'sys')
-rw-r--r-- | sys/man/3/ip | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/man/3/ip b/sys/man/3/ip index 72a7ea7fa..031d5eca9 100644 --- a/sys/man/3/ip +++ b/sys/man/3/ip @@ -185,6 +185,22 @@ ARP requests for the remote address. .IR Ppp (8) does this to make remote machines appear to be connected to the local Ethernet. +Adding the special null-address +.B "0.0.0.0" +or +.B "::" +in +.I local +to a interface makes the ip stack accept all incoming +connections regardless of the destination IP address. +This is used temporarily by +.IR ipconfig (8) +to accept DHCP answers when no IP address +has been assigned yet. This can also be used +to implement a NAT gateway by accepting all +incoming connections and proxying them with +.IR trampoline (8) +to a different ip stack. .TP .BI remove\ "local mask" Remove a local IP address from an interface. |