LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Router set-up (https://www.linuxquestions.org/questions/linux-networking-3/router-set-up-293770/)

sucram2g 02-23-2005 04:52 AM

Router set-up
 
Hi,

I have a Suse 9.1 box with two network cards which I want to use as a router from my private network to the Internet:

eth0 (192.168.1.1/255.255.255.0) communicates with the local network and eth1 (192.168.0.1/255.255.255.0) communicates with dsl0.

Ive enabled ipforwarding for both eth0 and eth1 and there is no firewall setup.

I can ping eth0 from any of the machines on the local network (192.168.1.10 and above) but when I give them 192.168.1.1 as the gateway I cant get to the Internet.

Please help!

leosgb 02-23-2005 06:58 PM

you need to setup forward rules at iptables. i dont have my system script here w/ me so i cant help you but that's what you should look for right now... you have to allow forwarding or something like that.

bareego 02-23-2005 07:58 PM

Code:

iptables -t nat -A POSTROUTING -j MASQUERADE -o eth1

zymurgist 02-24-2005 04:07 PM

Make sure eth1 is on the same network as your dsl modem. If its dhcp, then you need to configure it as such. Also make sure you have enabled ipV4 forwarding.


All times are GMT -5. The time now is 05:45 AM.