LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How would I set up a web server and allow other hosts on home network internet access (https://www.linuxquestions.org/questions/linux-newbie-8/how-would-i-set-up-a-web-server-and-allow-other-hosts-on-home-network-internet-access-4175479804/)

jddancks 10-06-2013 12:28 PM

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.

suicidaleggroll 10-06-2013 01:36 PM

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.

redfox2807 10-07-2013 02:56 PM

For security reasons you can consider using a VPN to connect from outside of your home network, not just forward a port.

jddancks 10-07-2013 08:11 PM

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

ifgot 10-08-2013 12:32 AM

I was a newbie, I also encountered the such a problem


All times are GMT -5. The time now is 08:18 AM.