LDP/LDP/guide/docbook/linux-ip/scripts.xml

72 lines
2.4 KiB
XML

<!-- $Id$ -->
<chapter id="ax-scripts">
<title>Scripts for Managing IP</title>
<para>
Here are some scripts which may come in handy for manipulating different
features of the linux networking stack. If you'd like, you can get a
<ulink url="scripts/linux-ip-scripts.tar.gz">tarball</ulink>
of these scripts to take home with you.
</para>
<section id="scripts-proxy-arp">
<title>Proxy ARP Scripts</title>
<para>
The proxy ARP script was written before the kernel supported proxy ARP
natively. If you simply want proxy ARP to work, then you need only
<link linkend="ether-arp-proxy-kernel">enable it in your 2.4
kernel</link>. If you require more control than afforded by the kernel
proxy ARP functionality and you wish to recompile
&iproute2; and your kernel, you can use the
&iproute2; extension,
<link linkend="ether-arp-filtering"><command>ip arp</command></link>.
Otherwise, you might try this script.
</para>
<example id="ex-sc-proxy-arp">
<title>Proxy ARP SysV initialization script</title>
<para>
<ulink url="scripts/proxy-arp">Download.</ulink>
</para>
<programlisting>
&sc-proxy-arp;
</programlisting>
</example>
<example id="ex-sc-proxy-arp-conf">
<title>Proxy ARP configuration file</title>
<para>
<ulink url="scripts/proxy-arp.conf">Download.</ulink>
</para>
<programlisting>
&sc-proxy-arp-conf;
</programlisting>
</example>
</section>
<section id="scripts-nat">
<title>NAT Scripts</title>
<para>
The script will remove all NAT route entries and then all RPDB entries,
other than the three default entries and anything saying "iif lo". It
will then populate the RPDB and create NAT route entries according to
the configuration file. Use this script with caution if you have
customized your RPDB.
</para>
<example id="ex-sc-nat">
<title>Static NAT SysV initialization script</title>
<para>
<ulink url="scripts/nat">Download.</ulink>
</para>
<programlisting>
&sc-nat;
</programlisting>
</example>
<example id="ex-sc-static-nat">
<title>Static NAT configuration file</title>
<para>
<ulink url="scripts/static-nat">Download.</ulink>
</para>
<programlisting>
&sc-static-nat;
</programlisting>
</example>
</section>
</chapter>