LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-15-2003, 09:26 AM   #16
mymojo
Member
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 176

Rep: Reputation: 30

thank you JordanH! you're my hero!
 
Old 12-16-2003, 08:48 AM   #17
Xenocide
LQ Newbie
 
Registered: Sep 2003
Location: England
Posts: 12

Rep: Reputation: 0
Quote:
Originally posted by JordanH
Firstly, IANA has set aside specific ip address ranges for private use. 90.0.0.0/8 is not one of them. That particular network is reserved and although you *can* use that as your network, it is not a good idea.

Secondly, I can't think of a way to use Linux as a hub. As I see them, your options are hub/switch -or- separate your network into subnets. The hub/switch solution is best, however, for the $0 budget, you can split it into two subnets.

Lastly... SMB... To tell you the truth, I don't know. I suspect you should be able to share your files just fine however, I'm not the person to ask on this subject althought I would put my money on it.

Tell you how to config your network? ok.
Linux machine
eth0 192.168.0.1/24
eth1 192.168.1.1/24
Ensure routing table sends traffic to the correct cards
Ensure your iptables firewall allows forwarding between internal NICS

Machine 1
eth0 192.168.0.2/24
gateway: 192.168.0.1

Machine 2
eth0 192.168.1.2/24
gateway: 192.168.1.1
right thankyou ill change that at some point lol.

eth1 isnt working atm (card's fooked) so its not urgent but that sound v good thanks.

When u say x.x.x.x/yy what does the yy mean?
 
Old 12-16-2003, 09:12 AM   #18
JordanH
Member
 
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360

Original Poster
Rep: Reputation: 30
So many good questions in one thread. We should have really broken this one up.

The /yy part is the network mask. It defines the network as opposed to just one address. Check out this link for a good discussion on the subject:
http://www.linuxquestions.org/questi...hreadid=123068
Post there if you have more questions and I will follow-up with you.
Regards,
J.
 
Old 12-17-2003, 01:59 AM   #19
trinhnamthai
LQ Newbie
 
Registered: Dec 2003
Location: HCM city
Posts: 1

Rep: Reputation: 0
Internet connection sharing (ADSL) for Linux 9.0

Hello , Please help me how to share internet connection (ADSL)on Linux 9.0 for LAN ussing windows 2000. I have ADSL modem use USB.

Many thank.

Thai
 
Old 12-17-2003, 07:37 AM   #20
JordanH
Member
 
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360

Original Poster
Rep: Reputation: 30
Hi Trinhnamthai...

You should post your questions in a new thread.

Here are the steps in short - follow them in order.
1. Setup your USB modem... sorry, I have no experience here.
2. Configure your ethernet cards. If you have trouble, ask in the Networking forum.
3. Setup your Firewall. The above script will let you share your ADSL connection with your LAN.
4. Setup your client machines to use your Linux machine as the "Default Gateway".

Again... your questions are good but please post them in a NEW thread.
Regards.
 
Old 12-29-2003, 05:01 PM   #21
Xenocide
LQ Newbie
 
Registered: Sep 2003
Location: England
Posts: 12

Rep: Reputation: 0
I got myself a switch like you suggested and now there are 5pc's all on this one connections. Thankyou Very much again. Without ne mods it works. Bulletproof ^_^
 
Old 12-29-2003, 09:41 PM   #22
Jakerohs
LQ Newbie
 
Registered: Dec 2003
Posts: 6

Rep: Reputation: 0
Thanks so much! Very useful script Works like a charm.
 
Old 02-05-2004, 01:04 PM   #23
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Rep: Reputation: 30
Gateway

Jordan-

Why are the two nic's looking at different gateways?

And not just 192.168.0.1?

thanks

Mike D
 
Old 02-05-2004, 01:51 PM   #24
JordanH
Member
 
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360

Original Poster
Rep: Reputation: 30
Hi Mike,
I'm a little confused by your question, perhaps you can give me more details about what you want to know.

The firewall script above does not specify anything about gateways so perhaps that isn't the term you meant to use. If you are talking about Internet gateways, that is a function of your routing table... you can use the route command to show to which gateways your NICs are pointing.
In my case, I only have one gateway specified and it is assigned to my ppp0 adapter (the default route). This is the other end of the ppp connection to which I need to route traffic. My ethX NICs do not have an associated gateway.

Try your question again and I'll see if I can answer it more clearly.
 
Old 04-03-2004, 11:25 PM   #25
uvone
LQ Newbie
 
Registered: Aug 2003
Location: Brisbane, Australia
Distribution: slackware-current
Posts: 25

Rep: Reputation: 15
hey
looking for a good iptables firewall script for a dial-up connection, from what peoplehave said this is good but will it work with dial-up??
 
Old 04-04-2004, 01:11 AM   #26
JordanH
Member
 
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360

Original Poster
Rep: Reputation: 30
It should work just fine with dial-up. Dial-up is pretty much the same as ADSL so your external interface will be ppp0 instead of say eth0. Make sure you change the ext and int variables to your external interface (ppp0) and internal interface eth?

let us know if you have any problems.
J.
 
  


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
Iptables with iptables-firewall.conf arno's matt3333 Slackware 16 06-28-2007 07:20 AM
Any @home users??? drisay Slackware 15 09-17-2004 11:00 PM
Portforwarding using JordanH's "firewall for home users" script steepcreep Linux - Networking 1 07-29-2004 08:15 PM
home users with vsftpd swobodin Linux - Software 1 02-15-2004 08:35 AM
Home Folder for new users CatSC Red Hat 3 11-29-2003 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:27 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