[gentoo-user] Re: Re: DSL modem + Web Server + Home Box

2005-05-15 Thread Gabriel M. Beddingfield
david wrote:

 Thanks for the reply.I'm new to this so your explanation really
 helps.The dsl modem's set-up page is at 192.168.1.254.It is also the
 default gateway.Here is resolv.conf;
snip

I'm getting a little lost here.  It looks like you're trying to do 2
distinct tasks here.  It looks like:

1. You're trying to set up a web server that is publicly available to the
internet
2. You're trying to share your network connection with another computer.

It might be a good idea to tackle them one at a time.  If you don't have
nmap installed: install it ('emerge nmap').

0. INFORMATION
==

What's the make and model of the DSL modem you're trying to use?  You say
you

1. WEB SERVER UP


Get the web server up and running.  When it's running, on the same server
enter the command:

nmap -p 80 192.168.1.96

If it is up, then you will see something like:

Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2005-05-15 13:20 CDT
Interesting ports on foo.local (192.168.1.96):
PORT   STATE SERVICE
80/tcp open  http

Nmap run completed -- 1 IP address (1 host up) scanned in 0.129 seconds

If you see this (STATE: open), then make sure the web browser works.  Fire
up Konq or Firefox and navigate to http://192.168.1.96.  If the page looks
correct, then move on to the next step (port forwarding).  If not, then you
probably saw:

PORT   STATE  SERVICE
80/tcp closed http

That means that you need to configure your web server properly, and start it
up.

2. PORT FORWARDING
==

Lets say that your assigned static ip address is a.b.c.d.  If you indeed
have forwarded the port to the web server, then you will see:

$ nmap -p 80 a.b.c.d

Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2005-05-15 13:20 CDT
Interesting ports on (a.b.c.d):
PORT   STATE SERVICE
80/tcp open  http

Nmap run completed -- 1 IP address (1 host up) scanned in 0.129 seconds

If the web server is up, and you see STATE closed, then you need to get your
port forwarding working correctly.  Possibly the routings are messed up in
your Modem.

If you see STATE open, then test with:

$ firefox http://a.b.c.d

And make sure the web content looks right.  If some does, and some
doesn't... then it means your web server isn't properly configured. 
(Things like bind addresses, etc.)  You said your setting up a LAMP
(Linux/Apache/MySQL/PHP) -- focus on 'LA' for now.  Getting all four to
work together the way you want is a little trickier.

3. AVAILABLE VIA WAN


Check to see if Bellsouth is blocking your IP from being a server.  SSH to
an external machine, or call your aunt in Toledo and have them navigate a
web browser to:

http://a.b.c.d

If it works, then all is good with your web server.  If not, then you
probably have issues with Bellsouth.  Most 'for-the-masses' ISP's are
blocking people from running servers.  And those that don't, still have
policies against it.  This includes Verizon (port blocking), and Comcast
(policy).  Exceptions include Speakeasy, Earthlink (for some
subscriptions), and Covad.

If they see the web page, and all the content looks good -- then your web
server is set up and ready for action.

4. INTERNET SHARING WITH OTHER COMPUTER
===

Get your web server working, and then move on to this.

Hope this helps!

-- 
 G a b r i e l   M .   B e d d i n g f i e l d

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Re: DSL modem + Web Server + Home Box

2005-05-15 Thread Colin
Gabriel M. Beddingfield wrote:
3. AVAILABLE VIA WAN

Check to see if Bellsouth is blocking your IP from being a server.  SSH to
an external machine, or call your aunt in Toledo and have them navigate a
web browser to:
http://a.b.c.d
If it works, then all is good with your web server.  If not, then you
probably have issues with Bellsouth.  Most 'for-the-masses' ISP's are
blocking people from running servers.  And those that don't, still have
policies against it.  This includes Verizon (port blocking), and Comcast
(policy).  Exceptions include Speakeasy, Earthlink (for some
subscriptions), and Covad.
I know that EarthLink dial-up has no port forwarding or port blocking in 
effect.  I think they'll let you run servers from behind dial-up 
connections, but I know that it's a no-no from behind their high-speed 
connections, unless you get a business plan.
--

Colin
--
gentoo-user@gentoo.org mailing list