I'm using a Red Hat Linux 5.0 system and a custom 2.0.32 kernel compiled
to support IP Masquerading with ipautocfg support, mainly to use ICQ on
another system on my network.  I'm also using Postgres for database
needs,  Samba for file/printer sharing.

The problem is that after some time of accessing the postgres server
from cgi scripts running on the system, Linux loses the ability to
establish new IP connections for itself.  This means it cannot telnet to
anyplace inside the network or outside through the PPP connection.  It
cannot even telnet to localhost.  It says Connecting to 127.0.0.1 and
then simply sits there, and efforts to connect to apache fail as well.
Telnet connections to outside sites before this bizzare event occurs
still function as normal, and the other systems inside my network are
still able to talk outside through the ppp connection and establish new
connections.   Otherwise, I have to reboot the linux box in order to be
able to establish new connections with it.

I've never had this problem before with postgres before I upgraded to
2.0.32 and selected the ipautocfg option.  This problem doesn't appear
to happen with the current set up if I do not access the postgres
daemon.

After establishing my ppp connection I invoke a shellscript which
contains the following:

#!/bin/bash

# Start up forwarding

echo "1" > /proc/sys/net/ipv4/ip_forward

echo "Enabling IP Masquarading Modules"
/sbin/depmod -a
/sbin/modprobe ip_masq_ftp.o
/sbin/modprobe ip_masq_raudio.o
/sbin/modprobe ip_masq_irc.o
/sbin/modprobe ip_masq_cuseeme.o
#/sbin/modprobe ip_masq_vdolive.o
#/sbin/modprobe ip_masq_quake.o

echo "Enabling Masquarading"

/sbin/ipfwadm -F -p deny
/sbin/ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0
/sbin/ifconfig eth0 192.168.1.1
/sbin/route add -net 192.168.1.0

If I have made a mistake in the shell script, or if anyone might have a
solution/idea of what might be wrong, it'd be greatly appreciated.
Thanks.


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to