LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-12-2011, 08:38 AM   #1
ksmatthews
Member
 
Registered: Aug 2008
Posts: 86

Rep: Reputation: 15
Question 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
 
Old 03-12-2011, 08:41 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
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
 
Old 03-28-2011, 01:35 AM   #3
ksmatthews
Member
 
Registered: Aug 2008
Posts: 86

Original Poster
Rep: Reputation: 15
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
 
Old 03-28-2011, 03:48 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
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
 
Old 03-28-2011, 06:52 AM   #5
ksmatthews
Member
 
Registered: Aug 2008
Posts: 86

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by repo View Post
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
 
Old 03-28-2011, 06:53 AM   #6
ksmatthews
Member
 
Registered: Aug 2008
Posts: 86

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ksmatthews View Post
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
 
Old 03-28-2011, 06:59 AM   #7
ksmatthews
Member
 
Registered: Aug 2008
Posts: 86

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by repo View Post
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
 
Old 03-28-2011, 11:13 AM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
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
 
  


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
LXer: SELinux - Highly Secured Web Hosting for Python-based Web Applications LXer Syndicated Linux News 0 05-28-2008 07:30 AM
LXer: Web Hosting Provider Verizon Business Expands Managed Hosting ... LXer Syndicated Linux News 0 09-17-2006 06:21 AM
LXer: Web Hosting Provider Zen Internet Offer Linux Hosting Trial for 1 ... LXer Syndicated Linux News 0 04-20-2006 09:33 PM
web hosting emailssent Linux - Networking 1 10-02-2004 03:31 AM
Free web based control panel for web hosting? mooman_fl Linux - Software 0 06-18-2004 05:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:24 AM.

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