Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-23-2005, 05:52 AM   #1
Registered: Dec 2004
Location: Uganda
Distribution: SuSE
Posts: 36

Rep: Reputation: 15
Router set-up


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 ( communicates with the local network and eth1 ( 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 ( and above) but when I give them as the gateway I cant get to the Internet.

Please help!
Old 02-23-2005, 07:58 PM   #2
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363

Rep: Reputation: 31
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.
Old 02-23-2005, 08:58 PM   #3
Registered: Nov 2003
Location: Brisbane, Australia
Distribution: Crux 2.0
Posts: 66

Rep: Reputation: 15
iptables -t nat -A POSTROUTING -j MASQUERADE -o eth1
Old 02-24-2005, 05:07 PM   #4
Registered: Jan 2003
Location: Long Island
Distribution: Redhat 8.0
Posts: 109

Rep: Reputation: 15
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set up FC 4 as a router/gateway tanchekseng Linux - Newbie 1 11-01-2005 06:11 AM
How to set up a router Sushy Slackware 1 10-13-2005 07:53 AM
How do I set up remote access through a router? bad_andy General 4 01-28-2005 02:41 PM
set up router with fedora3 starfish Linux - Networking 1 12-14-2004 01:48 AM
Demarctech AP Router set-up Mr. Slappy Linux - Wireless Networking 0 11-12-2004 04:11 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration