LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



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

Rep: Reputation: 15
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!
 
Old 02-23-2005, 07:58 PM   #2
leosgb
Member
 
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
bareego
Member
 
Registered: Nov 2003
Location: Brisbane, Australia
Distribution: Crux 2.0
Posts: 66

Rep: Reputation: 15
Code:
iptables -t nat -A POSTROUTING -j MASQUERADE -o eth1
 
Old 02-24-2005, 05:07 PM   #4
zymurgist
Member
 
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.
 
  


Reply


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


All times are GMT -5. The time now is 09:21 AM.

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