LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Accessing Apache/HTTPD in Linux Home Network (https://www.linuxquestions.org/questions/linux-server-73/accessing-apache-httpd-in-linux-home-network-787526/)

KinnowGrower 02-07-2010 01:56 AM

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

konzo 02-07-2010 04:31 AM

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.

KinnowGrower 02-07-2010 08:51 AM

Quote:

Originally Posted by konzo (Post 3855483)
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?

konzo 02-08-2010 02:09 AM

Quote:

Originally Posted by varindersingh (Post 3855644)
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.

Allanitto Newbee 02-08-2010 08:52 AM

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.

KenJackson 02-08-2010 09:50 AM

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.

Allanitto Newbee 02-08-2010 12:14 PM

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

KinnowGrower 02-08-2010 11:01 PM

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

konzo 02-09-2010 03:03 AM

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.

Allanitto Newbee 02-09-2010 09:19 AM

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!


All times are GMT -5. The time now is 01:57 PM.