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

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: 
                      9: <A HREF="mpd.html"><EM>Mpd 5.6 User Manual</EM></A>
                     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: 
                     44: <dt><b><code>set nat enable <em>option ...</em> </code></b><dd>
                     45: <dt><b><code>set nat disable <em>option ...</em> </code></b><dd>
                     46: <p>Enable and disable nat options.</p>
                     47: 
                     48: </dl>
                     49: </p>
                     50: 
                     51: <p>The following options are supported:</p>
                     52: <p>
                     53: <dl>
                     54: 
                     55: <dt><b><code>log</code></b><dd><p>Enable statistics logging.</p>
                     56: <p>Default is disable.</p>
                     57: 
                     58: <dt><b><code>incoming</code></b><dd><p>Allow unknown incoming packets to pass.</p>
                     59: <p>Default is enable.</p>
                     60: 
                     61: <dt><b><code>same-ports</code></b><dd><p>Try to use same ports while aliasing.</p>
                     62: <p>Default is enable.</p>
                     63: 
                     64: <dt><b><code>unreg-only</code></b><dd><p>Enables aliasing only for unregistered networks.</p>
                     65: <p>Default is disable.</p>
                     66: 
                     67: </dl>
                     68: </p>
                     69: 
                     70:  <HR NOSHADE>
                     71: <A HREF="mpd.html"><EM>Mpd 5.6 User Manual</EM></A>
                     72:  <b>:</b> <A HREF="mpd17.html"><EM>Configuring Mpd</EM></A>
                     73:  <b>:</b> <EM>Network Address Translation (NAT)</EM><BR>
                     74: <b>Previous:</b> <A HREF="mpd38.html"><EM>IP address pools</EM></A><BR>
                     75: <b>Next:</b> <A HREF="mpd40.html"><EM>Control console</EM></A>
                     76: 
                     77: 
                     78: 
                     79: </BODY>
                     80: </HTML>

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