Computing.Net > Forums > Linux > redhat 7.2 as a gateway please help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

redhat 7.2 as a gateway please help

Reply to Message Icon

Name: John
Date: December 7, 2001 at 07:02:50 Pacific
Comment:

hi there, here's my problem:

I have red hat 7.2 up and running.
2 NIC
LAN card (eth1) : 192.168.0.1
CABLE MODEM nic (eth0): 217.70.66.140
(using dhcp from isp)

I want to allow all computers from
192.168.0.* to access the internet.

My iptables look like this:
Chain INPUT (policy ACCEPT)
target prot opt source
destination

Chain FORWARD (policy ACCEPT)
target prot opt source
destination

Chain OUTPUT (policy ACCEPT)
target prot opt source
destination

My route looks like this:
Kernel IP routing table
Destination Gateway Genmask
Flags Metric Ref Use Iface
192.168.0.0 *
255.255.255.0 U 0 0 0 eth1
217.70.66.0 *
255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0
U 0 0 0 lo
default router-net-217- 0.0.0.0
UG 0 0 0 eth0


what must i change to put my box as a
gateway ?


thanks in advance



Sponsored Link
Ads by Google

Response Number 1
Name: paul
Date: December 13, 2001 at 12:24:49 Pacific
Reply:

You probably already havedone this but I didn't see it any where above. Have you enabled routing?
You can do it by editing the file:
/etc/sysconfig/network
including the line
FORWARD_IPV4="yes"

You can also set this up in linuxconf the same place you set up your default gateway.

I hope this helps

Paul


0

Response Number 2
Name: Vidya
Date: December 18, 2001 at 12:54:55 Pacific
Reply:

Just a word of caution, I found in my installation that after setting stuff in linuxconf, somehow it did not permanently register so I had to edit the files like
/etc/sysconfig/network-scripts/ifconf-eth0 to ensure that the settings always started.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: redhat 7.2 as a gateway please help

Redhat 7.2 as a router...problem www.computing.net/answers/linux/redhat-72-as-a-routerproblem/12945.html

Setting up Suse 7.3 as a gateway www.computing.net/answers/linux/setting-up-suse-73-as-a-gateway/20307.html

Configuring RedHat 7.2 for Linux Gateway www.computing.net/answers/linux/configuring-redhat-72-for-linux-gateway/6920.html