LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   web hosting (https://www.linuxquestions.org/questions/linux-software-2/web-hosting-868124/)

ksmatthews 03-12-2011 08:38 AM

web hosting
 
Hi All

I was wondering how I could host my web apps
so that anyone could see them in both WAN and LAN ?

I run a local LAMP dev box

I realise that this would be foolish and leaves my linux bo open
to all kinds of vulnerabilities ...

regards,

Steven Matthews

repo 03-12-2011 08:41 AM

To start you need a domain name and a DNS entry which points to the IP from your router.
On the router, you need to forward port 80 to the server.
Do you have a fixed or dynamic IP?
Does your ISP allows you to run servers, eq is port 80 open?

Kind regards

ksmatthews 03-28-2011 01:35 AM

RE To start you need a domain name and a DNS entry which points to the IP from your router.
I have done this using dyndns

RE Does your ISP allows you to run servers, eq is port 80 open?

I would imagine not - why would an ISP allow this ?

Assuming not, how to direct traffic to my machine via another router ?

regards,

Steven Matthews

repo 03-28-2011 03:48 AM

Quote:

I would imagine not - why would an ISP allow this ?
Some ISP allow you to run services, others don't, verify with your ISP.
Quote:

I have done this using dyndns
So can you connect?
Did you forwarded the port on the router to your server?

Kind regards

ksmatthews 03-28-2011 06:52 AM

Quote:

Originally Posted by repo (Post 4305946)
Some ISP allow you to run services, others don't, verify with your ISP.

So can you connect?
Did you forwarded the port on the router to your server?

Kind regards

Hi again,

I am new to port forwarding so bear with me ...

dyndns have given me this information:

URL: stevenm.dyndns-at-home.com
Current IP Address of network (def gw): 81.38.27.58
my internal (local LAN) static IP address is 192.168.1.34

I want to enter the network via the router from the outside using IP address 81.38.27.165.
All TCP packets destined for port 80 should be forwarded to port 80 on my local machine

What commands would I use to set this up and test it ? iptables ?

Steven Matthews

ksmatthews 03-28-2011 06:53 AM

Quote:

Originally Posted by ksmatthews (Post 4306142)
Hi again,

I am new to port forwarding so bear with me ...

dyndns have given me this information:

URL: stevenm.dyndns-at-home.com
Current IP Address of network (def gw): 81.38.27.58
my internal (local LAN) static IP address is 192.168.1.34

I want to enter the network via the router from the outside using IP address 81.38.27.165.
All TCP packets destined for port 80 should be forwarded to port 80 on my local machine

What commands would I use to set this up and test it ? iptables ?

Steven Matthews

CORRECTION !!

Hi again,

I am new to port forwarding so bear with me ...

dyndns have given me this information:

URL: stevenm.dyndns-at-home.com
Current IP Address of network (def gw): 81.38.27.58
my internal (local LAN) static IP address is 192.168.1.34

I want to enter the network via the router from the outside using IP address 81.38.27.58.
All TCP packets destined for port 80 should be forwarded to port 80 on my local machine

What commands would I use to set this up and test it ? iptables ?

Steven Matthews

ksmatthews 03-28-2011 06:59 AM

Quote:

Originally Posted by repo (Post 4288057)
To start you need a domain name and a DNS entry which points to the IP from your router.
On the router, you need to forward port 80 to the server.
Do you have a fixed or dynamic IP?
Does your ISP allows you to run servers, eq is port 80 open?

Kind regards

Hi repo,

RE you need a domain name and a DNS entry which points to the IP from your router

Wouldn't dyndns have set that up for me when I registered 'stevenm.dyndns-at-home.com' with them ?

regards,

Steven Matthews

repo 03-28-2011 11:13 AM

On the router, forward port 80 to 192.168.1.34
Start with a disabled firewall on 192.168.1.34
Make sure the webserver is running.
See if it works, then setup the firewall.

Kind regards


All times are GMT -5. The time now is 06:27 PM.