Annotation of embedaddon/mpd/doc/mpd39.html, revision 1.1.1.3

1.1       misho       1: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
                      2: <HTML>
                      3: <HEAD>
                      4: <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
                      5: <TITLE>Network Address Translation (NAT)</TITLE>
                      6: </HEAD>
                      7: <BODY text="#000000" bgcolor="#ffffff">
                      8: 
1.1.1.3 ! misho       9: <A HREF="mpd.html"><EM>Mpd 5.8 User Manual</EM></A>
1.1       misho      10:  <b>:</b> <A HREF="mpd17.html"><EM>Configuring Mpd</EM></A>
                     11:  <b>:</b> <EM>Network Address Translation (NAT)</EM><BR>
                     12: <b>Previous:</b> <A HREF="mpd38.html"><EM>IP address pools</EM></A><BR>
                     13: <b>Next:</b> <A HREF="mpd40.html"><EM>Control console</EM></A>
                     14: 
                     15: 
                     16: <HR NOSHADE>
                     17:   <H2><A NAME="39"></A>4.14. Network Address Translation (NAT)<A NAME="nat"></A></H2>
                     18: 
                     19: <p>This chapter describes commands for configuring Network Address
                     20: Translation on Mpd's interfaces. NAT is implemented by 
                     21: <code>ng_nat(4)</code> node. To enable it on a particular
                     22: interface <code>nat</code> option should be used.</p>
                     23: <p><b>Note:</b> ng_nat node is available only on FreeBSD 6.0-RELEASE
                     24: and newer. Some additional options like setting target address
                     25: implemeted in later versions.</p>
                     26: <p>
                     27: <dl>
                     28: 
                     29: <dt><b><code>set nat address <em>ip</em></code></b><dd><p>Set alias IP address. If not specified, interface IP will be used.</p>
                     30: 
                     31: <dt><b><code>set nat target <em>ip</em></code></b><dd><p>Set target IP address for unknown incoming packets. If not specified,
                     32: packet will not be modified.</p>
                     33: 
                     34: <dt><b><code>set nat red-addr <em>alias_addr</em> <em>local_addr</em></code></b><dd><p>Redirect traffic for public (alias) IP address to a machine on the local network.</p>
                     35: 
                     36: <dt><b><code>set nat red-proto <em>proto</em> <em>alias_addr</em> <em>local_addr</em> [ <em>remote_addr</em> ]</code></b><dd><p>Redirect traffic of specified protocol for public (alias) IP address
                     37: (optionally from specified remote address)
                     38: to a machine on the local network.</p>
                     39: 
                     40: <dt><b><code>set nat red-port <em>proto</em> <em>alias_addr</em> <em>alias_port</em> <em>local_addr</em> <em>local_port</em> [ <em>remote_addr</em> <em>remote_port</em> ]</code></b><dd><p>Redirect incoming connections arriving to given public (alias) address and port,
                     41: (optionally from specified remote address)
                     42: to a host and port of a machine on the local network.</p>
                     43: 
1.1.1.2   misho      44: <dt><b><code>unset nat red-addr <em>alias_addr</em> <em>local_addr</em></code></b><dd><p>Deletes specific <em>set nat red-addr ...</em> rule.</p>
                     45: 
                     46: <dt><b><code>unset nat red-proto <em>proto</em> <em>alias_addr</em> <em>local_addr</em> [ <em>remote_addr</em> ]</code></b><dd><p>Deletes specific <em>set nat red-proto ...</em> rule.</p>
                     47: 
                     48: <dt><b><code>unset nat red-port <em>proto</em> <em>alias_addr</em> <em>alias_port</em> <em>local_addr</em> <em>local_port</em> [ <em>remote_addr</em> <em>remote_port</em> ]</code></b><dd><p>Deletes specific <em>set nat red-port ...</em> rule.</p>
                     49: 
1.1       misho      50: <dt><b><code>set nat enable <em>option ...</em> </code></b><dd>
                     51: <dt><b><code>set nat disable <em>option ...</em> </code></b><dd>
                     52: <p>Enable and disable nat options.</p>
                     53: 
                     54: </dl>
                     55: </p>
                     56: 
                     57: <p>The following options are supported:</p>
                     58: <p>
                     59: <dl>
                     60: 
                     61: <dt><b><code>log</code></b><dd><p>Enable statistics logging.</p>
                     62: <p>Default is disable.</p>
                     63: 
                     64: <dt><b><code>incoming</code></b><dd><p>Allow unknown incoming packets to pass.</p>
                     65: <p>Default is enable.</p>
                     66: 
                     67: <dt><b><code>same-ports</code></b><dd><p>Try to use same ports while aliasing.</p>
                     68: <p>Default is enable.</p>
                     69: 
                     70: <dt><b><code>unreg-only</code></b><dd><p>Enables aliasing only for unregistered networks.</p>
                     71: <p>Default is disable.</p>
                     72: 
                     73: </dl>
                     74: </p>
                     75: 
                     76:  <HR NOSHADE>
1.1.1.3 ! misho      77: <A HREF="mpd.html"><EM>Mpd 5.8 User Manual</EM></A>
1.1       misho      78:  <b>:</b> <A HREF="mpd17.html"><EM>Configuring Mpd</EM></A>
                     79:  <b>:</b> <EM>Network Address Translation (NAT)</EM><BR>
                     80: <b>Previous:</b> <A HREF="mpd38.html"><EM>IP address pools</EM></A><BR>
                     81: <b>Next:</b> <A HREF="mpd40.html"><EM>Control console</EM></A>
                     82: 
                     83: 
                     84: 
                     85: </BODY>
                     86: </HTML>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>