LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 02-21-2006, 02:04 PM   #1
alfredh
Member
 
Registered: Nov 2003
Distribution: Mandriva PWP 2009i586
Posts: 111

Rep: Reputation: 15
How to connect Network PC's through a Linux PC to the Internet?


Probably has been asked a hundred times but it is giving me grey hairs.

SuSE 9.3 is connected to the Network via eth0
A 2nd Ethernet card eth1 has been installed which is now hooked up to the Internet via ADSL modem.
Internet works through the eth1 card for the SuSE9.3 PC

Internal Network works through the eth0 card of the SuSE 9.3 PC

I am trying to get the Internal Network to access the Internet through the Linux box with the ADSL modem.

All PC's are set up with fixed IP ranges for the moment for the sake of simplicity.

The internal address range is: 192.168.0.**
The eth1 card on the Linux PC is: 10.0.0.*
The ADSL modem is: 10.0.0.***

Do I use masquerading to get from eth0 to eth1 for the other internal PC's ?
If so how?

Which one is the Gateway that I have to enter into the internal PC's ?
 
Old 02-21-2006, 03:17 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I think you're looking for NAT (network address translation) and masquerading. Try using a gui frontend like fwbuilder or guidedog.

The gateway will be the linux box eth0, which looks like 192.168.0.xxx. Generally the convention is for the router to be 192.168.0.1, but it's really arbitrary.

Search the forums for linux router setup to help out with command line stuff if you can't get a gui to work for you.

Or try this link: http://www.section6.net/wiki/index.p...using_IPTables

Last edited by pljvaldez; 02-21-2006 at 03:19 PM.
 
Old 02-21-2006, 03:43 PM   #3
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Someone posted this link on another forum:

http://www.section6.net/wiki/index.p...using_IPTables
 
Old 02-24-2006, 04:22 AM   #4
alfredh
Member
 
Registered: Nov 2003
Distribution: Mandriva PWP 2009i586
Posts: 111

Original Poster
Rep: Reputation: 15
pljvaldez

Sorry for the very late reply.
Yes it's solved..:-)
Forget about YAST as the explanations for Masquerading/forwarding etc are rubbish.
I used your links and some info that comes with Firewall2 and manually edited the config file.

Go to: /usr/share/doc/packages/SuSEfirewall2/EXAMPLES.html
This is located on your HDD
The above info and those examples will get most people up and running fast.

Thanks again for your help :-)
 
  


Reply



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 connect two pc's via modem? (server = linux, client = windows) seraph-seph Slackware 15 07-11-2008 03:58 PM
How to connect two pc's via modem? (server = linux, client = windows) seraph-seph Linux - Networking 2 11-18-2005 08:26 AM
How to network 3 PC's on Suse Linux 9.0 Bob Moore Linux - Networking 4 04-26-2004 12:58 PM
Can't connect to network with Win98/2k pc's m.landoni Linux - Networking 2 11-25-2003 11:16 AM
Connect 2 Linux PC's Daisey Grey Linux - Networking 2 10-17-2001 09:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 02:42 PM.

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
Open Source Consulting | Domain Registration