LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 04-25-2006, 02:16 PM   #1
librano
Member
 
Registered: Jul 2004
Location: Here, there and everywhere.
Distribution: Arch+KDE, Linux Mint Fluxbox CE
Posts: 163

Rep: Reputation: 31
Web server in local network serving to internet


hi all!..

I have a single internet connection with a static IP at home which i want to use for 3 machines as follows:
1. provide internet for a workstation with port forwarding so that i can use bittorrent
2. provide internet for my laptop also with port forwarding...
3. setup up a web server that is in the local network ie. with a local IP like 192.168.0.2... BUT that can serve the sites i put on it to the internet.

The problems:

1. I have done some reading up on this to find the cheapest option... so far i have determined that i can't use an ethernet hub to 'split' my internet connection the way i want... what i am not sure about is switches (that are cheaper than routers...) can i use a switch which has managnent/configuration tools to perform this task? and how configurable are switches?

2. I would like packets from to and from the server to have priority over the other boxes but without limiting bandwidth of the other boxes... to make full use of my bandwidth while noone is browsing the sites on the server. how can i go about doing this?

3. coming back to switches.. are there compatibility issues with Linux? I have seen some switches that are configurable only from IE... strange but true... any suggestions of makes of switches?

4. How would I go about port forwarding for the workstation and laptop?

The other option is to use the server as the gateway... but it only has 2 PCI slot for ethernet cards... that means i will still have to use a switch for the workstation and laptop... how would go about port-forwarding in this setup?

any suggestions will be most welcome or links to other sites where I can read up on this...

thanks.

lib.
 
Old 04-25-2006, 02:58 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
1. you can seldom get multiple IP's from an ISP, it depends how they work. from your perspective here a hub IS a switch. that's wrong, but close enough for your questions. a switch won't do what you want and any switch you would be pricing for will not do a single thing in terms of configuration of it. nada.

2. you would need a router to do QoS or a pseudo-equivalent of it. a linux router can do this, but requires another machine. other than that... just see what off-the-shelf routers in your price range provide... i doubt you'll get lucky though.

3. no. ethernet is ethernet. operating systems are irrelevant.

4. configure your router correct. portfoward.com is a very very userful site. i've got this far and you've still apparently not realised that what you want to do for the websites is also to portforward, assuming the server sits topologically the same place as the desktop and laptop...

and the one that you didn't even validate with a number is probably the best if you don't want to spend out for a hardware router... you would be best to just use a gui firewall builder like firestarter, which will more than likely throw in the routing and port forwarding functionalities for free while it configures a decent firewall. to do it manually you would enable ip forwarding and configure iptables to to ip masquarading, and i don't think that's somethign you're going to want to do. in this solution though you would only want 2 nic's anyway, one internal one external. the internal nice just connects to a $10 switch and both clients plug into that. you would configure each internal node to use, for example, a 192.168.0.0/24 network address using the server as the gateway.

personally i would say buy a $50-$100 ADSL router, and have it do all the security and forwarding, or if you have a spare old x86 lying around, you might like to look at ipcop.org to do the same thing for free within linux.
 
  


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
Local network can't access Internet (Server can) Notwerk Linux - Networking 2 12-15-2005 03:19 AM
help: ubuntu as a server connecting local network to internet ctdarksilver Linux - Networking 2 10-26-2005 09:17 PM
Email Server Able to see Local Network but not Internet?? thiessenstuart Linux - Networking 3 08-24-2005 02:29 PM
my web server can't be reached by local network tiang_ono Linux - Software 4 07-14-2005 08:02 PM
Local webserver -- How to deny all client install their local web server--Please help b:z Linux - Networking 13 04-16-2005 07:11 PM


All times are GMT -5. The time now is 06:34 PM.

Main Menu
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