LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-07-2010, 01:56 AM   #1
KinnowGrower
Member
 
Registered: May 2008
Location: Toronto
Distribution: Centos && Debian
Posts: 347

Rep: Reputation: 34
Accessing Apache/HTTPD in Linux Home Network


Hi everybody,

I am trying to setup Fedira 12 Linux Apache in my home network. I am able to access the hosted website from inside my home network without any problem.

I am facing the problem to access it from outside. At the moment i have connected the Apache directly to DSL modem for testing purpose. I was reading "The ISP may have blocked the HTTP port 80. So check it by connecting the Apache directly to DSL modem."

The temporary network connections for testing purpose are as follows..


DSL modem (SIEMENS Speed Stream 4200)-->Fedora 12/Linux Apache Server

I am even unable to PING the real ip (IP for DSL modem).(Firefox gave me error message "Connection Timed out) I have tried to ping it from the internet.I can PING the DSL from Apache without any problem.

My doubts/questions are.

1. Why i am even unable to PING the real IP of DSL modem at my home.?

2. Is it possible to run/setup Apache by using this type of DSL modem?

3. DSL modem has real IP. DSL MODEM assigns private IP (192.168.x.x) to Apache. So when a http request form the internet came to DSL modem on port 80, will it forward to Apache automatically.? or i have to made any changes.(I can not see anything in DSL modem to change/modify), OR do I have to use another DSL MODEM/Equipment (router)?


This setup is just temporary. The actual design is as follows

DSL MODEM(Speed Stream 4200)-->Fedora 12 Linux ROUTER--->Internal network with DNS/Apache Server

Am i going to right direction?. Is all of my understanding is correct?


Please help.


Thanks

Last edited by KinnowGrower; 02-07-2010 at 09:33 AM.
 
Old 02-07-2010, 04:31 AM   #2
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Rep: Reputation: 34
Sure you can:

1. Check the firewall of the router, be sure it has exception rule for that

2. Yes.

3. Check your modem is set to forward port 80 (needed for apache)

My router settign are accessible through 192.168.1.1 with user and password. Check address for your and set firewall and port forwarding.
 
Old 02-07-2010, 08:51 AM   #3
KinnowGrower
Member
 
Registered: May 2008
Location: Toronto
Distribution: Centos && Debian
Posts: 347

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by konzo View Post
Sure you can:

1. Check the firewall of the router, be sure it has exception rule for that

2. Yes.

3. Check your modem is set to forward port 80 (needed for apache)

My router settign are accessible through 192.168.1.1 with user and password. Check address for your and set firewall and port forwarding.
Hi konzo

Thanks for reply.

First of all please note that i am using the temporary network connection (Connected Apache directly to MODEM). There is no router in between.

I wanna make it more clear to understand the issue.

1. The Apache is directly connected to the DSL modem as shown below

DSL Modem-->Fedora Linux/Apache server Directly connected to MODEM

2. There is no Port forward thing on modem to set. Yes , it has just few settings. No port forwarding settings. (thats why i was wondering (question number 3 in First post) weather it will work or not).the model of modem Speedstream 4200

3. Why i am unable to ping modem ip from internet? any idea?


any hint please?

Last edited by KinnowGrower; 02-07-2010 at 08:54 AM.
 
Old 02-08-2010, 02:09 AM   #4
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Rep: Reputation: 34
Quote:
Originally Posted by varindersingh View Post
3. Why i am unable to ping modem ip from internet? any idea?
Maybe because tour firewall deny it.

For the port forwarding - if you have not setting for that, be sure that your ISP forward port 80.

I have no other ideas. Hope this helps.
 
Old 02-08-2010, 08:52 AM   #5
Allanitto Newbee
Member
 
Registered: Oct 2007
Location: Montreal
Distribution: Slackware12;Slackware13
Posts: 106

Rep: Reputation: 15
Yes, it is very important the port forwarding if you don't have router. Some ISP's doesn't allow hosting. Verify it with them.
 
Old 02-08-2010, 09:50 AM   #6
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 757

Rep: Reputation: 145Reputation: 145
There are two very good reasons to not use port 80.
  1. Your ISP almost undoubtedly doesn't allow it and scans for it, and
  2. There are thousands of criminals scanning home IP addresses looking for open ports to cause havoc with.
I do what you are trying to do, but I configured Apache to listen to a high port number (pick one--almost any one), and configured the router to forward that port to my PC's local IP address.

I can access it from either inside or outside the house with the form of http://IP-ADDRESS:PORT/.

You probably can too.

As for pinging, my router allows me to specifically configure it (via it's web interface) to either respond to pings or ignore them.
 
Old 02-08-2010, 12:14 PM   #7
Allanitto Newbee
Member
 
Registered: Oct 2007
Location: Montreal
Distribution: Slackware12;Slackware13
Posts: 106

Rep: Reputation: 15
Hey Kenjackson,

Good point...your second good reason not to use port 80. I myself is running proxy site at my place and definitely using port 80. I'll change it to something else. Thanks.

and as not to hijack this place.... He mentioned he doesn't have a router at the moment. I'm not sure if there's a configurable modem to forward inbound packet request. I think he needs a router to route the request.

Thanks
 
Old 02-08-2010, 11:01 PM   #8
KinnowGrower
Member
 
Registered: May 2008
Location: Toronto
Distribution: Centos && Debian
Posts: 347

Original Poster
Rep: Reputation: 34
Thanks for help

What i understand from the discussion is , i have to disable the firewall from my modem or have do made some other kind of changes to modem configuration. But still i am not able to find those settings on my modem. This Modem has just few settings. (no firewall or port forwarding options) May be i have to jailbreak the modem or use different modem.

Let me try that...


Thanks

Last edited by KinnowGrower; 02-08-2010 at 11:03 PM.
 
Old 02-09-2010, 03:03 AM   #9
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Rep: Reputation: 34
Here is discussion about "configuring SIEMENS Speed Stream 4200"

http://www.dslreports.com/forum/remark,12998125

If the is information there didn't help you, try guoted text in google.
 
Old 02-09-2010, 09:19 AM   #10
Allanitto Newbee
Member
 
Registered: Oct 2007
Location: Montreal
Distribution: Slackware12;Slackware13
Posts: 106

Rep: Reputation: 15
Verindersingh,

Link seems to be informative, go and read it. It's exactly the same modem model as yours. You need to do some configuration on your modem like to enable port forwarding and stuff like that.

Good Luck!
 
  


Reply



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
Failed to start apache :Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/ payjoe Linux - Newbie 3 09-21-2007 07:24 AM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 10:32 PM
IP table for home office dsl /smoothwall firewall/ apache server/ two pc network rioguia Linux - Networking 4 10-06-2002 05:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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