Jump to content

Hi guys! I 'm running my website from my Rasp Pi2 at home, and I was wondering if I can get so...


G+_Darryl Gibbs
 Share

Recommended Posts

Hi guys!  I'm running my website from my Rasp Pi2 at home, and I was wondering if I can get some assistance with hiding my IP.  Sorry that I'm not sure exactly how to phrase this question, but hopefully the 2 pictures below would help.

 

I noticed (by accident) that if I tried dragging a web link on my page (see pic1), that it shows the server IP address (i.e. my home IP), but if I did the same on G+, it shows the plus.google domain name (pic2).  

 

How could I do that for my own site?  Have the doman name in place of the actual IP?  Thanks!!

pic2.pngpic1.png
Link to comment
Share on other sites

If I understand  you correctly, you would like to send people to your web server, without giving out the address of your house. If that is correct, then you can't, really.

 

People need to know your address to get to the pi server. Since you are running your pi at your house, there's no real practical way (that I know of anyway) to send people to your pi website without giving out your ip. This is why its generally not a good idea to run public web pages from your house.

 

The g+ url is just for tracking. So if someone goes to my website via g+, I would be able to figure out exactly what the clicked on by viewing the referral link. The g+ link, simply redirects the user to your ip address.

Link to comment
Share on other sites

Darryl Gibbs You are correct. Computers go off of ip address (for the most part). A DNS changes a url to an ip address that your computer can use to find the server. If you open up a terminal or command prompt, and ping google.com, it will tell you the ip address that google resolves too. There is also various websites that will do this too.

Link to comment
Share on other sites

Darryl Gibbs  Probably not. From what I understand (I never used such a service) is that they simply forward a domain to a roaming ip address. So a domain name would point to there servers, then their servers would find your ip, and forward the traffic to you.

 

It would be possible to restrict certain traffic in this model, but I never heard of this being done. And you could run a traceroute and find your ip anyway. Plus, you pi would still respond on port 80, so a ddos attack would still be possible, and quite easy with a pi.

 

What you need is what Black Merc  said, a vpn. But anyone who wants to get to your website, would need to get the vpn software and login credentials. And from what I understand, you do wish to share your website. Correct?

Link to comment
Share on other sites

Ha. The VPN idea isn't too far off. What you would need is a VPS that can host the VPN and act as the public IP then forward any web traffic into that IP across the VPN to your Pi. But, yeah... No way to hide your IP if you want to allow direct connections.

 

610bob?, wasn't that you that said you had a VPS acting as a VPN gateway for a mail server? This isn't really too much off from that.

 

And arguably there's no advantage to hiding your IP if you've got ports open. It's a whole lot easier to scan every public IP on the net than it is to scan every domain name. If you have ports open and something vulnerable on the receiving end, there's a good chance it's already been compromised.

Link to comment
Share on other sites

Darryl Gibbs Host anywhere and be a target is more accurate. From there it's just a matter of whose network could be compromised if an attacker gains privileged access to your server, or whose network is burdened in the event of a DDoS.

 

Put your LAN behind another NAT beyond your server, and make sure no ports are open on your "internal" LAN. On your "outer" LAN, forward only port 80 to your server.

 

Have a look at Steve Gibson's treatment of NAT and double NAT at https://www.grc.com/nat/nat.htm AND https://www.grc.com/nat/nats.htm

Link to comment
Share on other sites

Thanks Jason Marsh? and Black Merc?. That info. Is helpful.

 

610bob? it started out just as a project for the sake of learning, which then turned into an idea to host my site that I'm building to promote my teaching business. My expectations for traffic is extremely low, thus the idea to do it from home. Having said that, the security concerns are far higher as later this week that same pi is going to be my NAS amongst other things, and I cannot have my personal files open to the world!

 

Silly question, but all your advice about having open ports applies to allowing SSH access also, correct?

Link to comment
Share on other sites

 Share

×
×
  • Create New...