Add informations on how to use a configuration file with natd(8).

This commit is contained in:
Marc Fonvieille 2004-02-20 18:44:19 +00:00
parent 6b326c5ca1
commit 23fe617b54
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=20104

View file

@ -6308,6 +6308,27 @@ natd_flags=""</programlisting>
<command>natd -interface fxp0</command> at boot. This can also
be run manually.</para>
<note>
<para>It is also possible to use a configuration file for
&man.natd.8; when there are too many options to pass. In this
case, the configuration file must be defined by adding the
following line to <filename>/etc/rc.conf</filename>:</para>
<programlisting>natd_flags="-f /etc/natd.conf"</programlisting>
<para>The <filename>/etc/natd.conf</filename> file will
contain a list of configuration options, one per line. For
example the next section case would use the following
file:</para>
<programlisting>redirect_port tcp 192.168.0.2:6667 6667
redirect_port tcp 192.168.0.3:80 80</programlisting>
<para>For more information about the configuration file,
consult the &man.natd.8; manual page about the
<option>-f</option> option.</para>
</note>
<para>Each machine and interface behind the LAN should be
assigned IP address numbers in the private network space as
defined by <ulink
@ -6367,9 +6388,10 @@ natd_flags=""</programlisting>
to 3000 on client <hostid>A</hostid>.</para>
<para>These options can be used when directly running
&man.natd.8; or placed within the
&man.natd.8;, placed within the
<literal>natd_flags=""</literal> option in
<filename>/etc/rc.conf</filename>.</para>
<filename>/etc/rc.conf</filename>,
or passed via a configuration file.</para>
<para>For further configuration options, consult &man.natd.8;</para>
</sect2>
@ -6419,7 +6441,7 @@ natd_flags=""</programlisting>
-redirect_address 192.168.0.3 128.1.1.3</programlisting>
<para>Like <option>-redirect_port</option>, these arguments are also placed within
the <literal>natd_flags=""</literal> option of <filename>/etc/rc.conf</filename>. With address
the <literal>natd_flags=""</literal> option of <filename>/etc/rc.conf</filename>, or passed via a configuration file. With address
redirection, there is no need for port redirection since all data
received on a particular IP address is redirected.</para>