Problem with Gateway Setup

Problem with Gateway Setup

Post by LFessen1 » Sat, 22 Sep 2001 03:21:58



>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?

OK, assuming you are running on a modem to the internet, here's the *
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.

 
 
 

1. Gateway P5-75 w/ SMC Ether Power setup problem

My new gateway P5-75 has a SMC Ether Power PCI ethernet card.
With help and advice from fellow usenetters I convinced
Linux 1.1.95 to recognize it at boot time as a
DECchip 21040 "Tulip" ethernet adapter.

However, it does not seem to communicate with the LAN
consisting of several PCs running Windows for workgroups.

I get the following messages on the console:

... kernel: eth0: transmit timed out, status fc260000, SIA ffffffc6
                        ffffef05 ffffffff ffff0000, resetting ...
... kernel: Rx ring 001c0e68: 80000000 80000000 80000000 80000000
... kernel: Tx ring 001c0ea8: 80000000 80000000 80000000 80000000

ifconfig and route both report the eth0 interface up and running.

Is there any additional setup that needs to be done to enable
this card, other then selecting it at config time (yes, I uncommented
the "bool 'DEC 21040 PCI support' CONFIG_DEC_ELCP n" in the config.in
file).

Any help is appreciated.

--
Raimund K. Ege                             School of Computer Science

(305) 348-3381  fax: (305) 348-3549                   University Park
http://www-cs.fiu.edu/scspage/professor/Ege.html      Miami, FL 33199

2. Logitech USB QuickCam on FreeBSD

3. IPX gateway setup problem

4. Linuxware: Competitive upgrade! For only $10!

5. Gateway mouse setup problem

6. this is a tough one !!

7. Newbie needs help:Gateway mouse setup problem

8. disabling ftp/rlogin/telnet to use SSH

9. Networking problem - Gateway setup & configuration

10. Slackware 2.0 & Gateway P60 setup problem

11. Gateway 2000 Setup problems

12. The Great gateway Train or how to gateway behind the gateway

13. How to Setup a Gateway Computer running Red Hat 7.1