"Idris Saliu" <(E-Mail Removed)> wrote in message
news:2004021318004816807%saliui@qwestscientificcom ...
> Hello All,
> I'm trying to get a redhat 9 server to act as a router, caching dns
> and firewall for my small office network, but i've had very little
> success getting the system working right. i can do a dns lookup from
> my internal network, but thats about it. i can't browse the web or ping
> any servers outside my network. I have two nics with two static ip's,
> with the following config
>
> internet:eth0
> ip 80.248.13.3
> netmask 255.255.255.252
> gw 80.248.13.1
>
> Local Lan:eth1
> eth1
> ip 10.0.0.1
> netmask 255.255.255.0
>
> I have set net.ipv4.ip_forward = 1 in /etc/sysctl.conf
>
> i also added the following command to my /etc/rc.d/rc.local script.
>
> route add -net 80.248.13.3 netmask 255.255.255.252 dev eth0
> route add -net 10.0.0.1 netmask 255.255.255.0 dev eth1
> route add -net 0.0.0.0 netmask 0.0.0.0 gw 80.248.13.1
All this seems ok.
> i think the problem might be with iptables, but I'm not sure what else
> to do to get it working. I will really appreciate any information that
> will enable me get this thing working. Thanks in advance
You will need to configure IP Tables to allow NAT/Masquerading
through your router machine. Theres a starter example on the sort
of 'firewall' script you need at:
http://www.tldp.org/HOWTO/IP-Masquer...FIREWALL-2.4.X
Cheers,
Dave.