LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-06-2013, 01:28 PM   #1
jddancks
LQ Newbie
 
Registered: Jan 2013
Location: Central NY
Distribution: Mac, debian
Posts: 29

Rep: Reputation: Disabled
How would I set up a web server and allow other hosts on home network internet access


So, logically I just don't understand something. I know home network routers use random sockets (if I remember correctly) to differentiate access. (eg user a: 75.78.209.107:60999 translates to 192.168.1.101:80 and 75.78.209.107:61000 translates to 192.168.1.103:80) How could an outside user (most likely me away from home) access my web site and still have home users...

ohhh... wait a minute. They'll simply use 75.78.209.107:61000 because I can trust them to always establish connections from their own machine and not outside the home network and I can still forward port 80 packets from the outside to my server. whew. I think. I was afraid every packet would have to be forwarded to my server and then my server acts as a pseudo-router or something.

Does this make any sense? stream of consciousness notwithstanding.
 
Old 10-06-2013, 02:36 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,561

Rep: Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127
You're over-thinking things. Just forward port 80 to your web server, nothing else will be affected on your router, server, or any other machines on your network.
 
1 members found this post helpful.
Old 10-07-2013, 03:56 PM   #3
redfox2807
Member
 
Registered: Jul 2012
Distribution: Debian testing/stable, Sailfish OS, Android
Posts: 131

Rep: Reputation: 20
For security reasons you can consider using a VPN to connect from outside of your home network, not just forward a port.
 
1 members found this post helpful.
Old 10-07-2013, 09:11 PM   #4
jddancks
LQ Newbie
 
Registered: Jan 2013
Location: Central NY
Distribution: Mac, debian
Posts: 29

Original Poster
Rep: Reputation: Disabled
I don't like leaving threads un-responded to. I will be looking into the VPN thing at a later time. Thanks Redfox. Hopefully I won't get hacked again. Not sure how it happened to first time I think it was because I stupidly forwarded several ports thinking of future hopeful projects I had in mind.

Anyways for the clarity, suicide eggroll
 
Old 10-08-2013, 01:32 AM   #5
ifgot
LQ Newbie
 
Registered: Oct 2013
Posts: 1

Rep: Reputation: Disabled
I was a newbie, I also encountered the such a problem
 
  


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
Setting up a DNS server for hosts both on the Internet and on a private network jjthomas Linux - Networking 1 03-08-2011 11:47 PM
Testing web server on local network with ports... how to use with hosts file? raisinlove Linux - Server 4 06-08-2009 02:39 PM
Can't access web server from outside home network launchpadtt Linux - Server 2 10-13-2008 09:22 PM
Access Windows users network home folders from web AwakenLie Linux - Server 5 01-27-2008 12:47 PM
LXer: Red Hat Magazine August: How to set up a home web server LXer Syndicated Linux News 0 08-23-2006 08:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration