Changeset View
Changeset View
Standalone View
Standalone View
sbin/natd/natd.8
Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Lines | |||||
This option should only be used for debugging purposes. | This option should only be used for debugging purposes. | ||||
.It Fl unregistered_only | u | .It Fl unregistered_only | u | ||||
Only alter outgoing packets with an | Only alter outgoing packets with an | ||||
.Em unregistered | .Em unregistered | ||||
source address. | source address. | ||||
According to RFC 1918, unregistered source addresses are 10.0.0.0/8, | According to RFC 1918, unregistered source addresses are 10.0.0.0/8, | ||||
172.16.0.0/12 and 192.168.0.0/16. | 172.16.0.0/12 and 192.168.0.0/16. | ||||
.It Fl redirect_port Ar proto Xo | .It Fl redirect_port Ar proto Xo | ||||
.Ar targetIP Ns : Ns Xo | .Ar targetIP Ns \&: Ns Xo | ||||
.Ar targetPORT Ns Oo - Ns Ar targetPORT Oc Xc | .Ar targetPORT Ns Oo - Ns Ar targetPORT Oc Xc | ||||
.Oo Ar aliasIP Ns : Oc Ns Xo | .Oo Ar aliasIP Ns \&: Oc Ns Xo | ||||
.Ar aliasPORT Ns Oo - Ns Ar aliasPORT Oc Xc | .Ar aliasPORT Ns Oo - Ns Ar aliasPORT Oc Xc | ||||
.Oo Ar remoteIP Ns Oo : Ns | .Oo Ar remoteIP Ns Oo : Ns | ||||
.Ar remotePORT Ns Op - Ns Ar remotePORT | .Ar remotePORT Ns Op - Ns Ar remotePORT | ||||
.Oc Oc | .Oc Oc | ||||
.Xc | .Xc | ||||
Redirect incoming connections arriving to given port(s) to another host | Redirect incoming connections arriving to given port(s) to another host | ||||
and port(s). | and port(s). | ||||
Argument | Argument | ||||
▲ Show 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | |||||
.Ed | .Ed | ||||
.Pp | .Pp | ||||
the incoming traffic will be directed to the last | the incoming traffic will be directed to the last | ||||
translated local address (192.168.0.4), but outgoing | translated local address (192.168.0.4), but outgoing | ||||
traffic from the first two addresses will still be aliased | traffic from the first two addresses will still be aliased | ||||
to appear from the specified | to appear from the specified | ||||
.Ar public_addr . | .Ar public_addr . | ||||
.It Fl redirect_port Ar proto Xo | .It Fl redirect_port Ar proto Xo | ||||
.Ar targetIP Ns : Ns Xo | .Ar targetIP Ns \&: Ns Xo | ||||
.Ar targetPORT Ns Oo , Ns | .Ar targetPORT Ns Oo , Ns | ||||
.Ar targetIP Ns : Ns Xo | .Ar targetIP Ns \&: Ns Xo | ||||
.Ar targetPORT Ns Oo , Ns | .Ar targetPORT Ns Oo , Ns | ||||
.Ar ...\& | .Ar ...\& | ||||
.Oc Xc Oc Xc | .Oc Xc Oc Xc | ||||
.Oo Ar aliasIP Ns : Oc Ns Xo | .Oo Ar aliasIP Ns \&: Oc Ns Xo | ||||
.Ar aliasPORT | .Ar aliasPORT | ||||
.Xc | .Xc | ||||
.Oo Ar remoteIP Ns | .Oo Ar remoteIP Ns | ||||
.Op : Ns Ar remotePORT | .Op : Ns Ar remotePORT | ||||
.Oc | .Oc | ||||
.Xc | .Xc | ||||
.It Fl redirect_address Xo | .It Fl redirect_address Xo | ||||
.Ar localIP Ns Oo , Ns | .Ar localIP Ns Oo , Ns | ||||
▲ Show 20 Lines • Show All 250 Lines • ▼ Show 20 Lines | |||||
host to any other host are redirected to the given server and port. | host to any other host are redirected to the given server and port. | ||||
Optionally, the original target address can be encoded into the packet. | Optionally, the original target address can be encoded into the packet. | ||||
Use | Use | ||||
.Ar encode_ip_hdr | .Ar encode_ip_hdr | ||||
to put this information into the IP option field or | to put this information into the IP option field or | ||||
.Ar encode_tcp_stream | .Ar encode_tcp_stream | ||||
to inject the data into the beginning of the TCP stream. | to inject the data into the beginning of the TCP stream. | ||||
.It Fl punch_fw Xo | .It Fl punch_fw Xo | ||||
.Ar basenumber Ns : Ns Ar count | .Ar basenumber Ns \&: Ns Ar count | ||||
.Xc | .Xc | ||||
This option directs | This option directs | ||||
.Nm | .Nm | ||||
to | to | ||||
.Dq punch holes | .Dq punch holes | ||||
in an | in an | ||||
.Xr ipfirewall 4 | .Xr ipfirewall 4 | ||||
based firewall for FTP/IRC DCC connections. | based firewall for FTP/IRC DCC connections. | ||||
▲ Show 20 Lines • Show All 309 Lines • Show Last 20 Lines |