I have it running fine in 2.4.3 driven off of an entry in one of the
rc.d scripts. Try to complile it after your kernel and modules are
built. (That is the way I did it).
Note: "{a}.{b}.{c}.{d}" represent specific devices behind your NAT
gateway.
Example entry:
start)
echo -n "Starting ADSL service: "
# Load up the PPP/ATM/ADSL Module, then "dial" in
[ -z "`/sbin/lsmod | /bin/grep idt77105`"] && \
/sbin/insmod idt77105
[ -z "`/sbin/lsmod | /bin/grep nicstar`" ] && \
/sbin/insmod nicstar
/usr/sbin/pppd call adsl_service_script
# Load up some of the IP Masquerade modules
/sbin/modprobe ip_nat_ftp
/sbin/modprobe ip_conntrack_ftp
# /sbin/modprobe ip_masq_irc
# /sbin/modprobe ip_masq_quake
# /sbin/modprobe ip_masq_raudio
# /sbin/modprobe ip_masq_user
# /sbin/modprobe ip_masq_vdolive
# Set up IP Masquerade forwarding policies,
# port forwarding policies & stealth policies
/sbin/modprobe ip_tables
/usr/local/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j
MASQUERADE
#an FTP tunnel
/usr/local/sbin/iptables -t nat -A PREROUTING \
-i ppp0 --protocol tcp --dport 4223 -j DNAT --to
{a}.{b}.{c}.{d}:23
/usr/local/sbin/iptables -t nat -A PREROUTING \
-i ppp0 --protocol tcp --dport 4224 -j DNAT --to
{a}.{b}.{c}.{d}:24
#needed for NORTEL VPN
/usr/local/sbin/iptables -t nat -A PREROUTING \
-i ppp0 --protocol tcp --dport 500 -j DNAT --to
{a}.{b}.{c}.{e}:500
/usr/local/sbin/iptables -t nat -A PREROUTING \
-i ppp0 --protocol udp --dport 500 -j DNAT --to
{a}.{b}.{c}.{e}:500
#kill any M$ networking
/usr/local/sbin/iptables -t filter -A INPUT \
-i ppp0 --protocol tcp --dport 137:139 -j DROP
/usr/local/sbin/iptables -t filter -A INPUT \
-i ppp0 --protocol udp --dport 137:139 -j DROP
touch /var/lock/subsys/adsl
echo_success ""
echo
;;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/