Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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
destinationChain FORWARD (policy ACCEPT)
target prot opt source
destinationChain OUTPUT (policy ACCEPT)
target prot opt source
destinationMy 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

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

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.

![]() |
![]() |
![]() |

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