running web-server on home network

Reply

Join Date: May 2005
Posts: 4
Reputation: nmm124 is an unknown quantity at this point 
Solved Threads: 0
nmm124 nmm124 is offline Offline
Newbie Poster

running web-server on home network

 
0
  #1
May 24th, 2005
Hi all,

I have a small network at home (one old desktop, two laptops), running off a wireless-enabled ADSL router.

I work as a webdesigner and what I would like to do is to convert the desktop into a linux-based web-server (running Apache, MySQL, PHP) to use for testing, only visible on my internal network.

Could someone offer some advice on how to set this up?

The easiest solution I can think of is to let the router handle the internet access as per usual and to access the testing webserver via its internal IP address but I was wondering whether I can/should use the linux box as a proxy/gateway to the internet proper...

I'm not too experienced in these matters, any advice would be welcome.

Thanks - Nils.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 675
Reputation: MartyMcFly is an unknown quantity at this point 
Solved Threads: 17
MartyMcFly MartyMcFly is offline Offline
Practically a Master Poster

Re: running web-server on home network

 
0
  #2
May 26th, 2005
If you want to let just set up and internal network and access one of the servers for web hosting to the other two, then the network side should not be too difficult.

If your talking about getting your web server available to the internet, therefore running your own world wide web hosting, I think your going to be asking for a lot of difficulty. unless there is a service somewhere that sorts this out for you, your going to have to get static IPs from a ISP, probably a better router that requires configuration to route web requests to your server. This has to be measured against bandwidth issues as well. i wouldn't have a clue how to start a project like that, let alone the guts, (or should I say money) to try and make it happen.

I wasn't too sure if that was what you were asking, so .......
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 4
Reputation: nmm124 is an unknown quantity at this point 
Solved Threads: 0
nmm124 nmm124 is offline Offline
Newbie Poster

Re: running web-server on home network

 
0
  #3
May 26th, 2005
Hi,

thanks for the reply. I don't want the webserver to be globally visible - only to other computers on the home network.

- Nils.
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 1,620
Reputation: kc0arf is a jewel in the rough kc0arf is a jewel in the rough kc0arf is a jewel in the rough 
Solved Threads: 51
Team Colleague
kc0arf kc0arf is offline Offline
Posting Virtuoso

Re: running web-server on home network

 
1
  #4
May 26th, 2005
Hi,

You may use the linux box, with 2 network cards in it, to be your gateway to the internet world.

If you are running apache on the Linux box, there is a section there that you can configure what ports / ip numbers you would like apache to "listen" for requests. Simply specify the LAN IP (inside) address and port... the software willl then ignore requests on the internet (WAN) side. You can also control this via a firewall on the linux box... just block port 80 on the firewall, or have a re-direct to send port 80 somewhere else.

My RedHat 9 box is my router, webserver, dns server, email thing, and a bunch of other things running on it. 550 MHz computer with 3 network cards in it. I prefer it to a store-bought "wireless router". I know that Cisco products will route FASTER, but this is a home network, and I do not need that kind of performance.

Christian
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 4
Reputation: nmm124 is an unknown quantity at this point 
Solved Threads: 0
nmm124 nmm124 is offline Offline
Newbie Poster

Re: running web-server on home network

 
0
  #5
May 26th, 2005
How would other computers access the internet in this scenario? Would they need to use the linux box as a proxy?

If I don't want to go the whole route of using the linux box as a gateway, could I still access the linux box web server by using http://INTERNALIP/?

Thanks for the advice,

Nils.


Originally Posted by kc0arf
Hi,

You may use the linux box, with 2 network cards in it, to be your gateway to the internet world.

If you are running apache on the Linux box, there is a section there that you can configure what ports / ip numbers you would like apache to "listen" for requests. Simply specify the LAN IP (inside) address and port... the software willl then ignore requests on the internet (WAN) side. You can also control this via a firewall on the linux box... just block port 80 on the firewall, or have a re-direct to send port 80 somewhere else.

My RedHat 9 box is my router, webserver, dns server, email thing, and a bunch of other things running on it. 550 MHz computer with 3 network cards in it. I prefer it to a store-bought "wireless router". I know that Cisco products will route FASTER, but this is a home network, and I do not need that kind of performance.

Christian
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 675
Reputation: MartyMcFly is an unknown quantity at this point 
Solved Threads: 17
MartyMcFly MartyMcFly is offline Offline
Practically a Master Poster

Re: running web-server on home network

 
0
  #6
May 26th, 2005
Originally Posted by nmm124
thanks for the reply. I don't want the webserver to be globally visible - only to other computers on the home network
Apologies for the misunderstanding.
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 4
Reputation: nmm124 is an unknown quantity at this point 
Solved Threads: 0
nmm124 nmm124 is offline Offline
Newbie Poster

Re: running web-server on home network

 
0
  #7
May 27th, 2005
Hey - that's no problem Any advice on running it as an internally-visible only webserver?

cheers - Nils.

Originally Posted by MartyMcFly
Apologies for the misunderstanding.
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 1,620
Reputation: kc0arf is a jewel in the rough kc0arf is a jewel in the rough kc0arf is a jewel in the rough 
Solved Threads: 51
Team Colleague
kc0arf kc0arf is offline Offline
Posting Virtuoso

Re: running web-server on home network

 
0
  #8
May 27th, 2005
Hello,

The other computers on the family network would access the internet though the linux box. Simply give the other computers the default route (gateway) of the IP number of the linux box's LAN card, and you should be set.

Time for a little ASCII ART. Pardon the yuck here, but it will help.


WAN CARD OF LINUX BOX --> CABLE MODEM --->  INTERNET
  |
  |
an.external.ip.address  (23.11.142.7)
|
Firewall running on Linux
|
an.internal.ip.address (192.168.1.1)
|
|
LAN CARD OF LINUX BOX --> HUB -->  Computer1
				  |
				  ------> Computer2

Computer 1 could be 192.168.1.5 and computer 2 could be 192.168.1.10

You will need to tell the firewall on Linux some information about packets to allow, and which ones to drop. Check out information on IPTABLES or SONICWALL.

And if you want the linux box to be a peer, along with computer1 and computer2, then yes, you could access it http://internalnumber or if you have it in DNS somewhere, http://internalname

We are starting to get to the advanced stage of network design in the house.

Christian
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Networking Hardware Configuration Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC