I have a stock Redhat 5.1 installation (i.e. I haven't recompile the
kernal
but from what I've read that isn't necasary for my purposes). I have the
following in my rc.local file:
echo "ip_masq 192.168.0.2"
echo "1" > /proc/sys/net/ipv4/ip_forward
/sbin/depmod -a
/sbin/modprobe ip_masq_ftp.o
/sbin/modprobe ip_masq_raudio.o
/sbin/modprobe ip_masq_irc.o
/sbin/ipfwadm -F -p deny
/sbin/ipfwadm -F -a m -S192.168.0.0/24 -D0.0.0.0/0
/sbin/ifconfig eth0 192.168.0.2
/sbin/route add -net 192.168.0.0
So, as you can see the ip address of the machine I'm setting up is
192.168.0.2.
When I first bring up the ppp link I can browse the web or e-mail or
whatever from one of my other machines (they have this one set as the gateway).
After a few minutes it just stops working. Any ideas?
Any help would be greatly appreciated.
Jim
but from what I've read that isn't necasary for my purposes). I have the
following in my rc.local file:
echo "ip_masq 192.168.0.2"
echo "1" > /proc/sys/net/ipv4/ip_forward
/sbin/depmod -a
/sbin/modprobe ip_masq_ftp.o
/sbin/modprobe ip_masq_raudio.o
/sbin/modprobe ip_masq_irc.o
/sbin/ipfwadm -F -p deny
/sbin/ipfwadm -F -a m -S192.168.0.0/24 -D0.0.0.0/0
/sbin/ifconfig eth0 192.168.0.2
/sbin/route add -net 192.168.0.0
So, as you can see the ip address of the machine I'm setting up is
192.168.0.2.
When I first bring up the ppp link I can browse the web or e-mail or
whatever from one of my other machines (they have this one set as the gateway).
After a few minutes it just stops working. Any ideas?
Any help would be greatly appreciated.
Jim
