Use ppp -nat, not ppp -alias (which is now depricated)

This commit is contained in:
Brian Somers 2000-04-03 09:36:51 +00:00
parent 73b282ac14
commit 9ffffe11ab
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=6965
2 changed files with 30 additions and 30 deletions

View file

@ -13,7 +13,7 @@
</author>
</authorgroup>
<pubdate>$FreeBSD: doc/en_US.ISO_8859-1/books/faq/book.sgml,v 1.46 2000/03/25 21:09:34 alfred Exp $</pubdate>
<pubdate>$FreeBSD: doc/en_US.ISO_8859-1/books/faq/book.sgml,v 1.47 2000/04/03 09:36:31 brian Exp $</pubdate>
<abstract>
<para>This is the FAQ for FreeBSD versions 2.X and 3.X. All entries
@ -5933,7 +5933,7 @@ program. <emphasis remap=tt>Natd</emphasis> allows you to connect an entire sub
internet using only a single IP number.</para>
<para>The <ulink URL="http://www.FreeBSD.org/cgi/man.cgi?ppp">ppp</ulink> program has similar functionality built in via
the <option>-alias</option> switch. The <ulink URL="http://www.FreeBSD.org/cgi/man.cgi?libalias">alias library</ulink>
the <option>-nat</option> switch. The <ulink URL="http://www.FreeBSD.org/cgi/man.cgi?libalias">alias library</ulink>
is used in both cases.</para>
</answer></qandaentry>
@ -7048,8 +7048,8 @@ so that the source IP number is changed from the interface IP to
the negotiated IP on the fly. This is essentially what the
<emphasis remap=tt>iface-alias</emphasis> option in the latest version of <emphasis remap=bf>ppp</emphasis> is
doing (with the help of <ulink URL="http://www.FreeBSD.org/cgi/man.cgi?libalias">libalias(3)</ulink>
and ppp's <option>-alias</option> switch) - it's maintaining all previous
interface addresses and aliasing them to the last negotiated address.</para>
and ppp's <option>-nat</option> switch) - it's maintaining all previous
interface addresses and NATing them to the last negotiated address.</para>
<para>Another alternative (and probably the most reliable) would be
to implement a system call that changes all bound sockets from one
@ -7072,12 +7072,12 @@ is capable of fixing things retrospectively.</para>
</answer></qandaentry>
<qandaentry><question>
<para>Why don't most games work with the -alias switch</para></question><answer>
<para>Why don't most games work with the -nat switch</para></question><answer>
<para>The reason games and the like don't work when libalias is
in use is that the machine on the outside will try to open a
connection or send (unsolicited) UDP packets to the machine
on the inside. The packet alias software doesn't know that
on the inside. The NAT software doesn't know that
it should send these packets to the interior machine.</para>
<para>To make things work, make sure that the only thing running
@ -7094,7 +7094,7 @@ consistent. If they are, then the following line in the relevant
section of /etc/ppp/ppp.conf will make the software functional:</para>
<para>
<literallayout> alias port proto internalmachine:port port
<literallayout> nat port proto internalmachine:port port
</literallayout>
</para>
@ -7130,7 +7130,7 @@ option that avoids ever requesting that the peer open connections
back to the local machine.</para>
<para><emphasis remap=bf>3)</emphasis> Redirect everything to the internal machine using
``alias addr''. This is the sledge-hammer approach.</para>
``nat addr''. This is the sledge-hammer approach.</para>
</answer>
</qandaentry>
@ -7148,7 +7148,7 @@ be replaced with the IP number of the machine playing the game.</para>
<para><emphasis remap=bf>Quake</emphasis>
</para>
<para><emphasis remap=tt>alias port udp internal:6112 6112</emphasis></para>
<para><emphasis remap=tt>nat port udp internal:6112 6112</emphasis></para>
<para>Alternatively, you may want to take a look at
<ulink URL="http://www.battle.net/support/proxy/">www.battle.net</ulink> for Quake proxy support.</para>
@ -7164,7 +7164,7 @@ be replaced with the IP number of the machine playing the game.</para>
<para><emphasis remap=bf>Quake 2</emphasis>
</para>
<para><emphasis remap=tt>alias port udp internal:27901 27910</emphasis></para>
<para><emphasis remap=tt>nat port udp internal:27901 27910</emphasis></para>
</listitem>
</itemizedlist>
@ -7177,9 +7177,9 @@ be replaced with the IP number of the machine playing the game.</para>
<para><emphasis remap=bf>Red Alert</emphasis>
</para>
<para><emphasis remap=tt>alias port udp internal:8675 8675</emphasis></para>
<para><emphasis remap=tt>nat port udp internal:8675 8675</emphasis></para>
<para><emphasis remap=tt>alias port udp internal:5009 5009</emphasis></para>
<para><emphasis remap=tt>nat port udp internal:5009 5009</emphasis></para>
</listitem>
</itemizedlist>
@ -7192,7 +7192,7 @@ be replaced with the IP number of the machine playing the game.</para>
<para><emphasis remap=bf>Half Life</emphasis>
</para>
<para><emphasis remap=tt>alias port udp internal:27005 27015</emphasis></para>
<para><emphasis remap=tt>nat port udp internal:27005 27015</emphasis></para>
</listitem>
</itemizedlist>
@ -7205,9 +7205,9 @@ be replaced with the IP number of the machine playing the game.</para>
<para><emphasis remap=bf>PCAnywhere 8.0</emphasis>
</para>
<para><emphasis remap=tt>alias port udp internal:5632 5632</emphasis></para>
<para><emphasis remap=tt>nat port udp internal:5632 5632</emphasis></para>
<para><emphasis remap=tt>alias port tcp internal:5631 5631</emphasis></para>
<para><emphasis remap=tt>nat port tcp internal:5631 5631</emphasis></para>
</listitem>
</itemizedlist>

View file

@ -13,7 +13,7 @@
</author>
</authorgroup>
<pubdate>$FreeBSD: doc/en_US.ISO_8859-1/books/faq/book.sgml,v 1.46 2000/03/25 21:09:34 alfred Exp $</pubdate>
<pubdate>$FreeBSD: doc/en_US.ISO_8859-1/books/faq/book.sgml,v 1.47 2000/04/03 09:36:31 brian Exp $</pubdate>
<abstract>
<para>This is the FAQ for FreeBSD versions 2.X and 3.X. All entries
@ -5933,7 +5933,7 @@ program. <emphasis remap=tt>Natd</emphasis> allows you to connect an entire sub
internet using only a single IP number.</para>
<para>The <ulink URL="http://www.FreeBSD.org/cgi/man.cgi?ppp">ppp</ulink> program has similar functionality built in via
the <option>-alias</option> switch. The <ulink URL="http://www.FreeBSD.org/cgi/man.cgi?libalias">alias library</ulink>
the <option>-nat</option> switch. The <ulink URL="http://www.FreeBSD.org/cgi/man.cgi?libalias">alias library</ulink>
is used in both cases.</para>
</answer></qandaentry>
@ -7048,8 +7048,8 @@ so that the source IP number is changed from the interface IP to
the negotiated IP on the fly. This is essentially what the
<emphasis remap=tt>iface-alias</emphasis> option in the latest version of <emphasis remap=bf>ppp</emphasis> is
doing (with the help of <ulink URL="http://www.FreeBSD.org/cgi/man.cgi?libalias">libalias(3)</ulink>
and ppp's <option>-alias</option> switch) - it's maintaining all previous
interface addresses and aliasing them to the last negotiated address.</para>
and ppp's <option>-nat</option> switch) - it's maintaining all previous
interface addresses and NATing them to the last negotiated address.</para>
<para>Another alternative (and probably the most reliable) would be
to implement a system call that changes all bound sockets from one
@ -7072,12 +7072,12 @@ is capable of fixing things retrospectively.</para>
</answer></qandaentry>
<qandaentry><question>
<para>Why don't most games work with the -alias switch</para></question><answer>
<para>Why don't most games work with the -nat switch</para></question><answer>
<para>The reason games and the like don't work when libalias is
in use is that the machine on the outside will try to open a
connection or send (unsolicited) UDP packets to the machine
on the inside. The packet alias software doesn't know that
on the inside. The NAT software doesn't know that
it should send these packets to the interior machine.</para>
<para>To make things work, make sure that the only thing running
@ -7094,7 +7094,7 @@ consistent. If they are, then the following line in the relevant
section of /etc/ppp/ppp.conf will make the software functional:</para>
<para>
<literallayout> alias port proto internalmachine:port port
<literallayout> nat port proto internalmachine:port port
</literallayout>
</para>
@ -7130,7 +7130,7 @@ option that avoids ever requesting that the peer open connections
back to the local machine.</para>
<para><emphasis remap=bf>3)</emphasis> Redirect everything to the internal machine using
``alias addr''. This is the sledge-hammer approach.</para>
``nat addr''. This is the sledge-hammer approach.</para>
</answer>
</qandaentry>
@ -7148,7 +7148,7 @@ be replaced with the IP number of the machine playing the game.</para>
<para><emphasis remap=bf>Quake</emphasis>
</para>
<para><emphasis remap=tt>alias port udp internal:6112 6112</emphasis></para>
<para><emphasis remap=tt>nat port udp internal:6112 6112</emphasis></para>
<para>Alternatively, you may want to take a look at
<ulink URL="http://www.battle.net/support/proxy/">www.battle.net</ulink> for Quake proxy support.</para>
@ -7164,7 +7164,7 @@ be replaced with the IP number of the machine playing the game.</para>
<para><emphasis remap=bf>Quake 2</emphasis>
</para>
<para><emphasis remap=tt>alias port udp internal:27901 27910</emphasis></para>
<para><emphasis remap=tt>nat port udp internal:27901 27910</emphasis></para>
</listitem>
</itemizedlist>
@ -7177,9 +7177,9 @@ be replaced with the IP number of the machine playing the game.</para>
<para><emphasis remap=bf>Red Alert</emphasis>
</para>
<para><emphasis remap=tt>alias port udp internal:8675 8675</emphasis></para>
<para><emphasis remap=tt>nat port udp internal:8675 8675</emphasis></para>
<para><emphasis remap=tt>alias port udp internal:5009 5009</emphasis></para>
<para><emphasis remap=tt>nat port udp internal:5009 5009</emphasis></para>
</listitem>
</itemizedlist>
@ -7192,7 +7192,7 @@ be replaced with the IP number of the machine playing the game.</para>
<para><emphasis remap=bf>Half Life</emphasis>
</para>
<para><emphasis remap=tt>alias port udp internal:27005 27015</emphasis></para>
<para><emphasis remap=tt>nat port udp internal:27005 27015</emphasis></para>
</listitem>
</itemizedlist>
@ -7205,9 +7205,9 @@ be replaced with the IP number of the machine playing the game.</para>
<para><emphasis remap=bf>PCAnywhere 8.0</emphasis>
</para>
<para><emphasis remap=tt>alias port udp internal:5632 5632</emphasis></para>
<para><emphasis remap=tt>nat port udp internal:5632 5632</emphasis></para>
<para><emphasis remap=tt>alias port tcp internal:5631 5631</emphasis></para>
<para><emphasis remap=tt>nat port tcp internal:5631 5631</emphasis></para>
</listitem>
</itemizedlist>