<para>
NAT will translate address <address> to <addressreal>.</para>
</refsect1>
-
- <refsect1>
- <title><filename>/etc/sysconfig/masquerade</filename></title>
- <para>
- Configuration file for masquerade.
- Contain lines of the form:</para>
- <para>
-<literal><address> by <interface> to <destination></literal></para>
- <para>
- Where <address> is source address or class, <interface> is
- interface by whom packets will be sent and <destination>
- is destination address or class (usually 0.0.0.0/0).
- All address classes should be in form of 192.168.1.0/24.</para>
- </refsect1>
-
<refsect1>
<title><filename>/etc/sysconfig/static-routes</filename></title>
<para>Contains lines of the form:</para>
-$Id: sysconfig.txt,v 1.5 2002/02/02 17:30:20 adasi Exp $
+$Id: sysconfig.txt,v 1.6 2002/02/03 16:17:23 adasi Exp $
Files in /etc/sysconfig
=======================
NAT will translate address <address> to <addressreal>.
-/etc/sysconfig/masquerade
-
- Configuration file for masquerade.
- Contain lines of the form:
- <address> by <interface> to <destination>
-
- Where <address> is source address or class, <interface> is
- interface by whom packets will be sent and <destination>
- is destination address or class (usually 0.0.0.0/0).
- All address classes should be in form of 192.168.1.0/24.
-
/etc/sysconfig/static-routes:
Contains lines of the form:
#
-# $Id: functions.network,v 1.67 2002/02/02 17:13:01 adasi Exp $
+# $Id: functions.network,v 1.68 2002/02/03 16:14:32 adasi Exp $
#
# This is not a shell script; it provides functions to network scripts
# that source it.
fi
}
-# Setup Masquerade
-setup_masq()
-{
-typeset src by iface to dst
-if [ -r /etc/sysconfig/masquerade ]; then
- grep "^[0-9]" /etc/sysconfig/masquerade | while read src by iface to dst; do
- if [ "$1" = "on" ]; then
- /sbin/ipchains -A forward -i $iface -j MASQ -s $src -d $dst
- elif [ "$1" = "off"]; then
- /sbin/ipchains -D forward -i $iface -j MASQ -s $src -d $dst
- fi
- done
-fi
}
# Setup static ARP
static_arp()
#
# probe: true
-# $Id: network,v 1.50 2002/02/02 17:13:01 adasi Exp $
+# $Id: network,v 1.51 2002/02/03 16:14:31 adasi Exp $
PATH=/sbin:/usr/sbin:/bin:/usr/bin
setup_forwarding on
setup_nat on
setup_routes on
-setup_masq on
# Setup IPX
if is_yes "$IPX"; then
if [ -n $IPXAUTOPRIMARY ] ; then
# Set down NAT rules
setup_nat off
-# Set down masquerade rules
-setup_masq off
# Set DOWN loopback interface
set_down_loopback
}