This commit is contained in:
gferg 2001-09-09 21:57:12 +00:00
parent fa02a8237f
commit 7d74a25230
3 changed files with 48 additions and 14 deletions

View File

@ -25,6 +25,15 @@
</copyright>
<revhistory>
<revision>
<revnumber>5.6</revnumber>
<date>2001-09-06</date>
<authorinitials>esr</authorinitials>
<revremark>
Added a Translation section.
</revremark>
</revision>
<revision>
<revnumber>5.5</revnumber>
<date>2001-07-11</date>
@ -103,6 +112,13 @@ and now want to get it running. It focuses on the Intel
base version, which is the most popular, but much of the advice
applies on Power PCs, Sparcs and Alphas as well.</para>
</sect2>
<sect2 id="translations"><title>Translations</title>
<para>This document has been translated to <ulink
url="http://linux.softcatala.org/projectes/doc/install/index.html">
Catalan</ulink>.</para>
</sect2>
<sect2 id="sources"><title>Other sources of information</title>

View File

@ -41,6 +41,11 @@
</author>
<revhistory>
<revision>
<revnumber>0.05</revnumber>
<date>2001-09-07</date>
<authorinitials>jpt</authorinitials>
</revision>
<revision>
<revnumber>0.04</revnumber>
<date>2001-09-01</date>
@ -136,7 +141,7 @@
and the internal network card is eth1, then:
</para>
<screen format="linespecific">
<prompt moreinfo="none">$&gt;</prompt> <command>modprobe ipt_MASQUERADE</command>
<prompt moreinfo="none">$&gt;</prompt> <command>modprobe ipt_MASQUERADE</command> # If this fails, try continuing anyway
<prompt moreinfo="none">$&gt;</prompt> <command>iptables -F; iptables -t nat -F; iptables -t mangle -F</command>
<prompt moreinfo="none">$&gt;</prompt> <command>iptables -t nat -A POSTROUTING -o ppp0 -j SNAT --to 123.12.23.43</command>
<prompt moreinfo="none">$&gt;</prompt> <command>echo 1 > /proc/sys/net/ipv4/ip_forward</command></screen>
@ -144,7 +149,7 @@
Or for a dial-up connection:
</para>
<screen format="linespecific">
<prompt moreinfo="none">$&gt;</prompt> <command>modprobe ipt_MASQUERADE</command>
<prompt moreinfo="none">$&gt;</prompt> <command>modprobe ipt_MASQUERADE</command> # If this fails, try continuing anyway
<prompt moreinfo="none">$&gt;</prompt> <command>iptables -F; iptables -t nat -F; iptables -t mangle -F</command>
<prompt moreinfo="none">$&gt;</prompt> <command>iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE</command>
<prompt moreinfo="none">$&gt;</prompt> <command>echo 1 > /proc/sys/net/ipv4/ip_forward</command></screen>
@ -155,7 +160,7 @@
<prompt moreinfo="none">$&gt;</prompt> <command>iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT</command>
<prompt moreinfo="none">$&gt;</prompt> <command>iptables -A INPUT -m state --state NEW -i ! eth0 -j ACCEPT</command>
<prompt moreinfo="none">$&gt;</prompt> <command>iptables -P INPUT DROP</command> #only if the first two are succesful
<prompt moreinfo="none">$&gt;</prompt> <command>iptables -A FORWARD -i ! eth1 -j REJECT</command></screen>
<prompt moreinfo="none">$&gt;</prompt> <command>iptables -A FORWARD -i eth0 -o eth0 -j REJECT</command></screen>
<para>
Or for a dial-up connection (with eth0 as the internal network card):
</para>
@ -163,7 +168,7 @@
<prompt moreinfo="none">$&gt;</prompt> <command>iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT</command>
<prompt moreinfo="none">$&gt;</prompt> <command>iptables -A INPUT -m state --state NEW -i ! ppp0 -j ACCEPT</command>
<prompt moreinfo="none">$&gt;</prompt> <command>iptables -P INPUT DROP</command> #only if the first two are succesful
<prompt moreinfo="none">$&gt;</prompt> <command>iptables -A FORWARD -i ! eth0 -j REJECT</command></screen>
<prompt moreinfo="none">$&gt;</prompt> <command>iptables -A FORWARD -i ppp0 -o ppp0 -j REJECT</command></screen>
<para>
And thats it! To view the rules do "<command>iptables -t nat -L</command>"
</para>

View File

@ -1,4 +1,8 @@
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
<!ENTITY howto "http://www.linuxdoc.org/HOWTO/">
<!ENTITY mini-howto "http://www.linuxdoc.org/HOWTO/mini/">
<!ENTITY x-version "4.1.0">
]>
<article>
<articleinfo>
@ -29,6 +33,14 @@
</legalnotice>
<revhistory>
<revision>
<revnumber>7.2</revnumber>
<date>2001-09-09</date>
<authorinitials>esr</authorinitials>
<revremark>
XFree86 site has changed directory structure.
</revremark>
</revision>
<revision>
<revnumber>7.1</revnumber>
<date>2001-08-09</date>
@ -49,7 +61,7 @@
<abstract>
<para>This document describes how to obtain, install, and configure
version 4.0 of the XFree86 version of the X Window System (X11R6)
version &x-version; of the XFree86 version of the X Window System (X11R6)
for Linux systems. It is a step-by-step guide to configuring
XFree86 on your system.</para>
</abstract>
@ -103,8 +115,9 @@ to <ulink url="news:comp.os.linux.help">comp.os.linux.help</ulink> and
uploaded to various Linux WWW and FTP sites, including the LDP home
page.</para>
<para>You can always view the latest version of this on the World Wide Web via
the URL <ulink url="http://metalab.unc.edu/LDP/HOWTO/XFree86-HOWTO.html">http://metalab.unc.edu/LDP/HOWTO/XFree86-HOWTO.html</ulink>.</para>
<para>You can always view the latest version of this on the World Wide Web
via the URL <ulink
url="&howto;/XFree86-HOWTO.html">&howto;/XFree86-HOWTO.html</ulink>.</para>
<para>This document was originally written by Matt Welsh in the dim and
backward abysm of time. Thanks, Matt!</para>
@ -122,7 +135,7 @@ make your video card and monitor work with X. This HOWTO is intended to be
a rapid, painless guide to <emphasis>normal</emphasis> installation using
the new interactive configurator. If you run into problems, browse the
<ulink
url="http://metalab.unc.edu/LDP/HOWTO/XFree86-Video-Timings-HOWTO.html">XFree86
url="&howto;/XFree86-Video-Timings-HOWTO.html">XFree86
Video Timings HOWTO</ulink>. (This is the up-to-date HTML version of
XFree86's `Videomodes.doc' file.) That document tells everything I know
about configuration troubleshooting. If it can't help you, I can't
@ -133,8 +146,8 @@ either.</para>
<sect1><title>Hardware requirements</title>
<para>You can find an up-to-date list of supported cards and chipset types
at <ulink url="http://www.xfree86.org/4.0/Status.html">
the 4.0 status page</ulink>.</para>
at <ulink url="http://www.xfree86.org/&x-version;/Status.html">
the &x-version; status page</ulink>.</para>
<para>The documentation included with your video adaptor should specify the
chipset used. If you are in the market for a new video card, or are
@ -205,7 +218,7 @@ case you can skip this the rest of this section.</para>
<para>The Linux binary distributions of XFree86 can be found on a number of
FTP sites. On the XFree86 site they are <ulink
url="ftp://ftp.xfree86.org/pub/XFree86/current/binaries/">here</ulink>.
url="ftp://ftp.xfree86.org/pub/XFree86/&x-version;/binaries/">here</ulink>.
You will want either the Linux-axp-glibc21, Linux-ix86-glibc20, or
Linux-ix86-glibc21 subdirectories, depending on your processor type
(axp=alpha, ix86=Intel 80x86) and Gnu C library version.</para>
@ -213,8 +226,8 @@ Linux-ix86-glibc21 subdirectories, depending on your processor type
<para>Before doing anything else, download and run the `Xinstall.sh' shell
script first. This may tell you about prerequisites you'll need to have in
place before continuing your installation. Complete instructions for
installing the XFree86 nbinary distribution are at <ulink
url="http://www.xfree86.org/4.0/Install2.html">http://www.xfree86.org/4.0/Install2.html</ulink>.</para>
installing the XFree86 binary distribution are at <ulink
url="http://www.xfree86.org/&x-version;/Install2.html">http://www.xfree86.org/&x-version;/Install2.html</ulink>.</para>
<para>The binary directory should contain release notes for the current
version in <filename>RELNOTES</filename>. Consult those for installation