You don't have to build it, at least, not for RH.  All you have to do
is load it, as described in the IP Masquerade HOW-TO. 


On Tue, 4 Aug 1998, Andrew McCready wrote:

> Subject: [masq] ip masq and ftp
> 
> With 2.0.35, is it still necessary to build ip_masq_ftp as a module or is
> it built into the kernel if you disable module support? 
#!/bin/sh

# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.


#  Edited by J. A. Carroll for jeeves.mv.com
#    8/16/1997: Inserted lines to enable IP Masquerade
#    7/12/1998: Revised for RH 5.0 according to IP Masq RH 5.0 writeup

if [ -f /etc/redhat-release ]; then
        R=$(cat /etc/redhat-release)
else
        R="release 3.0.3"
fi

arch=$(uname -m)
a="a"
case "_$arch" in
        _a*) a="an";;
        _i*) a="an";;
esac

# This will overwrite /etc/issue at every boot.  So, make any changes you
# want to make to /etc/issue here or you will lose them when you reboot.
echo "" > /etc/issue
echo "Red Hat Linux $R" >> /etc/issue
echo "Kernel $(uname -r) on $a $(uname -m)" >> /etc/issue

cp -f /etc/issue /etc/issue.net
echo >> /etc/issue

# Recommended in RH 5.0 Setup note from ipmasq.home.ml.org:
# Print message to boot console
echo "ip_masq 192.168.203.111"
# Turn on IP forwarding (off by default on RH 5.0)
echo "1" > /proc/sys/net/ipv4/ip_forward

# Recommended in Linux IP Masquerade mini-HOWTO:
# Load necessary modules
/sbin/depmod -a
/sbin/modprobe ip_masq_ftp.o
/sbin/modprobe ip_masq_irc.o
# Call script containing ipfwadm commands
/etc/rc.d/rc.firewall

Reply via email to