LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-12-2003, 07:44 AM   #1
soulsniper
Member
 
Registered: Apr 2003
Distribution: Server= Fedora Core 2, Desktop= Ubuntu Hoary Preview
Posts: 41

Rep: Reputation: 15
Internet Conection Sharing


I have used the search feature but found no posts that are the same situation as mine (at least i dont think they are)

I currently have a computer dual-booting Win2k and RH9. In september i intend to build another machine, relatively low-spec with no monitor/keyboard or mouse to be used as a server.

What I want to achieve is this:

Have the server left on 24/7 in my attic, connected to the internet via broadband using my USB modem (which works fine in RH9)
I then want to create a small network to my other machine which runs Win2K, I want this computer to be able to connect to the server and connect to the internet via that server.

1. What do I need to easily connect them, will 2x10/100 LAN cards and some cable be ok??
2. Will I need a router?
3. What do I have to share the internet?

To administer the server I will have SSH and FTP servers setup for me to connect to and administer that way.

Another small question, is there anyway for me to graphically login to the server and use it with a GUI or is SSH the only way?


Sorry for being such an idiot. I'm quite good with linux really, I just don't know a thing about networks.
 
Old 07-12-2003, 07:51 AM   #2
merlin371
Member
 
Registered: Jul 2003
Location: Italy
Distribution: Ubuntu/Fedora
Posts: 152

Rep: Reputation: 30
now w cards and a cable will be fine but you'll need a crossover cable otherwise it won't work when i was sharing internet connection within winXP and win2003 server i had the DNS set up on win2003 and then i changed the settings on the lan connection for the primary DNS to be my win2003 pc and it worked in that case you don't need a router if you get a router like the us robtics 9003 you have two network ports on the back and the pppoe (if your using it) configuration is inside the modem/router itsels you won't have to set anything else up
 
Old 07-12-2003, 07:53 AM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
There are pelnty of posts like this.

1) Yes (cable should be crossover not straight)
2) The box in your attic will be the router
3) There is plenty of info on this site:
a) enable ip forwarding
b) create iptables/ipchains rules to forward data
c) set the gateway on the client machine to being ip of the otehr box

Things to consider:
1) Max lenth of a USB cable is 5M - can you get the cabling to where you want in the attic?
2) You can see a gui from the other computer on your PC if you want but I would tend to use ssh as most o the config you are likely to do is on the CLI anyway.


I think that answers everything but let me know if not.
 
Old 07-12-2003, 09:03 AM   #4
enigmasoldier
Member
 
Registered: Jul 2003
Location: Florence, Ky
Distribution: CentOS 3.3-4, OpenBSD 3.3, Fedora Core 4, Ubuntu, Novell Open Enterprise Server
Posts: 213

Rep: Reputation: 30
Check out smoothwall http://www.smoothwall.org , I have heard many stories of it saving people who need a firewall up FAST. You can't get X running on it, but you don't need X! It runs webmin http://www.webmin.com a webbased administration program. All you have to do is open up a web browser and administer away! If you still want to learn how to be a guru, ssh and ftp are still available.
 
Old 07-12-2003, 09:40 AM   #5
soulsniper
Member
 
Registered: Apr 2003
Distribution: Server= Fedora Core 2, Desktop= Ubuntu Hoary Preview
Posts: 41

Original Poster
Rep: Reputation: 15
Ok, thanks for the help all.

I can get plenty of cable to my attic from my bedroom.
I already knew I needed crossover cable but thx anyway.

Ok there's plenty of info about net connection sharing but I cannot find any particular information on sharing the net from Linux to Win2K.

How do I enable IP Forwarding, and setup IPTables and IPChains?

Sorry for being stupid.
 
Old 07-12-2003, 09:47 AM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
There is plenty of info about. The ony change you need to make on 2k is to chage it's gateway and possibly DNS settings. Take a look at:
http://www.yolinux.com/TUTORIALS/Lin...rkGateway.html
http://www.netfilter.org/
http://www.linuxquestions.org/questi...der=descending
 
Old 07-12-2003, 09:59 AM   #7
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
basically..i was gonna say what Guru david_ross said...but mozilla just crapped out on me....so i'll just add to what he said:

Linux doesnt care what OS is connecting to it as long as it "speaks" the netowrking protocols (TCP/IP, UDP, DNS, DHCP).

The setup is the same for Linux when connection to any windows OS (or simply...any OS).

So if you did a search and saw similar posts, you could have followed the same intructions. If you found one on Win XP, you could follow it exactly the same on both machines because setting up network connectivity on win2K is the exact same as setting it up on winXP.

if this came off as sounding mean, please know that i'm not trying to be mean...just wanted to let you know incase you didnt already.

to enable iptables, it has to be done when u compile the kernel ( most likey this was already done for you)

as root try: /sbin/iptables -L

if you get some output, it works. you'll want to make a
script file (a lot of people use rc.firewall, i just use
firewall.sh) and run the script file from rc.local (this
will read in your rules when u boot up, that way if the
power flickers and you arent around, you dont have to go
back and manually put in your firewall rules again.

there are several examples of firewall rules that do nating,
port forwarding...cooking...cleaning (kiddin). do a search
on "iptables" "masquerade" "port forwarding" "NAT" "nating"
and "iptables firewall"

a lot will overlap but that should give u great coverage. you'll find everything u need if u search for all of those seperately ( i think ).
 
  


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
Internet conection fireedo Linux - Newbie 2 02-26-2005 01:37 AM
sharing conection (iptables) problem TiCkO Slackware 1 01-13-2005 02:30 PM
Help Sharing Conection with WinXp And Redhat 9.0 well, there is Linux - Networking 2 07-24-2004 03:08 PM
internet conection sharing with cable modem anorman Linux - Networking 1 07-21-2004 11:49 PM
Internet conection sharing sqn Linux - Networking 1 03-18-2003 04:54 PM

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

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