>I am trying to get my gateway running again after a hardware failure and I
>am having problems with the other computers on the network.
>I installed RedHat 6.2 as a server, and IP Forwarding is enabled, since
>the /proc/net/...ip_forward contains 1.
>I can get out and see the Internet via the Gateway computer, but none of
>my other computers can view the network. For testing reasons, I do not
>have any IPChains rules set, so they are all at Accept. The /etc/hosts
>file does contain a reference to the other computers, and the hosts.allow
>and hosts.deny are blank. The other computers simply time out trying to
>get to the gateway and out to the internet.
>Any thoughts on getting this problem resolved?
>Also, I would like to remove the hosts references from the /etc/hosts, and
>simply cover them with an entry in hosts.allow with the abbreviated
>network ALL:192.168.0. to allow all internal computers to use this
>gateway. Is this truly needed?
>Thanks in advance to all responses.
>Steven Scott
>--=_alternative 0062D80585256ACD_=
>Content-Type: text/html; charset="us-ascii"
>I am trying to get my gateway running again after a hardware failure and I am
>having problems with the other computers on the network.
>I installed RedHat 6.2 as a server, and IP Forwarding is enabled, since the
>/proc/net/...ip_forward contains 1.
>I can get out and see the Internet via the Gateway computer, but none of my
>other computers can view the network. For testing reasons, I do not
>have any IPChains rules set, so they are all at Accept. The /etc/hosts
>file does contain a reference to the other computers, and the hosts.allow and
>hosts.deny are blank. The other computers simply time out trying to get
>to the gateway and out to the internet.
>Any thoughts on getting this problem resolved?
>Also, I would like to remove the hosts references from the /etc/hosts, and
>simply cover them with an entry in hosts.allow with the abbreviated network
>ALL:192.168.0. to allow all internal computers to use this gateway. Is
>this truly needed?
answer....
Make a file called /etc/rc.d/rc.masq and in it put:
#!/bin/sh
/sbin/depmod -a
echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -i ppp0 -j MASQ
then make it executable thusly:
chmod 777 rc.masq
then add to your /etc/rc.d/rc.local:
/etc/rc.d/rc.masq
then run the rc.masq script.
Thane make sure your other computers have their gateway correctly as your
gateway machines ip address. Violla.