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 08-23-2005, 04:35 PM   #1
jimkid42
LQ Newbie
 
Registered: Aug 2005
Location: Bicknoller, Somerset, UK
Posts: 3

Rep: Reputation: 0
Webserver over windows lan


I have a windows XP home edition system routing the internet to a linux system using an 8 port lan switch, i have correctly set up the internet on the linux box as well as file sharing between the two systems but i wish to set up a web server on the linux system how would i be able to use it over my lan so that people on the web could access my site.
 
Old 08-23-2005, 09:24 PM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Hi, and welcome to LQ.

First of all, add a little punctuation next time, it makes it a lot easier to read.

Quote:
I have correctly set up internet on the linux box.
... correctly according to which criteria?

Quote:
How would I (make it publicly accessible)?
1) Install a web server. Apache, anyone?
2) Take precautions for going on the net (*)
3) Give the box a public IP or in other ways route traffic to it (**).
4) (optional) give it a dns entry; see http://www.dyndns.org

(*) adding the following two lines to /etc/hosts.deny might be enough:
Code:
ALL: PARANOID
ALL EXCEPT apache, ssh: ALL EXCEPT LOCAL
(**)
Code:
$ ip addr show
To show which address each interface is bound to.

hth --Jonas
 
Old 08-24-2005, 07:30 PM   #3
jimkid42
LQ Newbie
 
Registered: Aug 2005
Location: Bicknoller, Somerset, UK
Posts: 3

Original Poster
Rep: Reputation: 0
hi thanks for the reply,

1 - i have installed the apache webserver.
2 - i have set up firewall software and done the tip's you provided.
3 - i do not know how to give the box a public ip or rout trafic to it when i used the command you suggested i got my ip info:
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:01:80:54:4e:50 brd ff:ff:ff:ff:ff:ff
inet 10.2.2.2/24 brd 10.2.2.255 scope global eth0
inet6 fe80::201:80ff:fe54:4e50/64 scope link
valid_lft forever preferred_lft forever
3: sit0: <NOARP> mtu 1480 qdisc noqueue
link/sit 0.0.0.0 brd 0.0.0.0

4 - i have a dynamic dns from Dns2go

i believe i just need to rout the incoming http requests to the linux box, i just don't know how to do that.
I upgraded to suse linux 9.2 professional this evening if that's any help to you.

Thanks
James
 
Old 08-24-2005, 07:33 PM   #4
jimkid42
LQ Newbie
 
Registered: Aug 2005
Location: Bicknoller, Somerset, UK
Posts: 3

Original Poster
Rep: Reputation: 0
sorry forgot to mention by 'I have correctly set up internet on the linux box' i meant that i can access the internet over the lan on the linux box.
 
Old 08-25-2005, 03:53 AM   #5
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
I wouldn't know anything about windows (wrt your problem) or your networking hardware--which I figure out to be responsible for forwarding packets.

Sorry I can't help --Jonas
 
  


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
Can access local LAN Webserver, but not Internet spaceuser Debian 11 08-23-2005 12:54 AM
Cant connect to my webserver and ftp server from outside LAN akudewan Linux - Networking 3 05-15-2005 02:00 PM
linux dns webserver for lan omgwtfbbqhax Linux - Networking 23 05-05-2005 03:43 PM
Setting up a webserver inside a lan, which should be accessible from outside seidren Linux - Networking 2 05-18-2004 08:26 AM
newbie setting up lan - can't see local webserver. nmoog Linux - Networking 1 03-27-2004 11:17 PM

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

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