Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-12-2003, 07:44 AM
|
#1
|
Member
Registered: Apr 2003
Distribution: Server= Fedora Core 2, Desktop= Ubuntu Hoary Preview
Posts: 41
Rep:
|
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.
|
|
|
07-12-2003, 07:51 AM
|
#2
|
Member
Registered: Jul 2003
Location: Italy
Distribution: Ubuntu/Fedora
Posts: 152
Rep:
|
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
|
|
|
07-12-2003, 07:53 AM
|
#3
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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.
|
|
|
07-12-2003, 09:03 AM
|
#4
|
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:
|
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.
|
|
|
07-12-2003, 09:40 AM
|
#5
|
Member
Registered: Apr 2003
Distribution: Server= Fedora Core 2, Desktop= Ubuntu Hoary Preview
Posts: 41
Original Poster
Rep:
|
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.
|
|
|
07-12-2003, 09:59 AM
|
#7
|
LQ Guru
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280
Rep:
|
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 ).
|
|
|
All times are GMT -5. The time now is 04:20 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|