News for hackers. Stuff that matters.
Re:Ask HN: What do you self-host? by sdan on Saturday October 12, 2019 @09:41PM (#21237699)
I host a bunch of docker containers plus Traefik to route everything. It runs on a cheap GCP instance (more on this here: https://sdan.xyz/sd2)

Overleaf: https://sdan.xyz/latex

A URL Shortener: https://sdan.xyz

All my websites (https://sdan.xyz/drf, https://sdan.xyz/surya, etc.)

My blog(s) (https://sdan.xyz/blog, https://sdan.xyz/essays)

Commento commenting server (I don't like disqus)

Monitoring (https://sdan.xyz/monitoring, etc.)

Analytics (using Fathom Analytics) and some more stuff!

Re:Ask HN: What do you self-host? by djsumdog on Sunday October 13, 2019 @07:04AM (#21239745)
I run netdata too, but I keep that behind my VPN. I'd suggest the same for you. No reason to have that exposed to the entire world.

I wrote this to setup my web server, mail server and VPN server, and auto-generate all my VPN keys.

https://github.com/sumdog/bee2

Re:Ask HN: What do you self-host? by sdan on Sunday October 13, 2019 @05:12PM (#21243075)
You're 100% right. Actually was a bit concerned myself when I realized hundreds of people were peering into how my server is doing.

But at the same time, I understand the security risks and if I have to I can just stop netdata's container and add some more security on it before turning it on again (I'm not running some SaaS startup, so security isn't a huge concern and I don't think you can do anything with my netdata that can affect or show anything else that can make me prone to attack)

Re:Ask HN: What do you self-host? by rovr138 on Sunday October 13, 2019 @11:45AM (#21240993)
Any reason to have it behind a VPN?
Re:Ask HN: What do you self-host? by AdamGibbins on Sunday October 13, 2019 @05:20PM (#21243128)
Reduces surface area of attack, you never know when a 0day is going to be found. Exposing monitoring/metrics is particularly interesting as it exposes a lot of information to an attacker, if they're trying to starve your machine of a resource or whatever.
Re:Ask HN: What do you self-host? by sdan on Sunday October 13, 2019 @05:43PM (#21243298)
Exactly. They have direct access to your vitals and can push certain buttons to figure out how your system is running to brute-force that attack, ultimately ruining whatever they intended to do.

I'm probably going to change how publicly accessible my monitoring view is soon, but for now, it seems pretty cool for everyone to see.

Re:Ask HN: What do you self-host? by lma21 on Monday October 14, 2019 @06:56AM (#21246853)
Indeed it was cool.

Would love to get a link to a screenshot of your system's resource monitoring. The description of each panel & eache metric was quite useful!

Re:Ask HN: What do you self-host? by pm7 on Monday October 14, 2019 @12:44PM (#21250176)
It's still public as of now.
Re:Ask HN: What do you self-host? by RulerOf on Sunday October 13, 2019 @05:04AM (#21239335)
It’s a relatively popular choice but I’ll ask you about it...

I see a lot of people putting their home stuff behind CloudFlare, but when I reviewed their free tier, I didn’t actually see any security benefit to outweigh the privacy loss, and I didn’t see that covered on your blog post.

Re:Ask HN: What do you self-host? by tbyehl on Sunday October 13, 2019 @02:41PM (#21242031)
> I didn’t actually see any security benefit to outweigh the privacy loss

The main thing is being able to hide your origin IP address. That turns many types of DDoS attacks into CloudFlare's problem, not yours, and it doesn't matter that you're on the free tier[0]. If you firewall to only allow traffic from CF[1], then you can make your services invisible to IP-based port scans / Shodan.

CloudFlare isn't a magic-bullet for security, but, used correctly, they greatly reduce the attack surface.

Whether any of that is worth the privacy / security risk of letting CloudFlare MITM your traffic is up to you.

[0] https://news.ycombinator.com/item?id=21170847

[1] https://www.cloudflare.com/ips/

Re:Ask HN: What do you self-host? by sdan on Sunday October 13, 2019 @05:33AM (#21239439)
Thanks for the read!

1. This is hosted on GCP. Actually was thinking of using Cloudflare Argo once my GCP credits expire so that I can truly self host all this (although all I have is an old machine).

2. For me, Cloudflare makes my websites load faster on pages. Security wise, I have pretty much everything enabled... like always on HTTPS, etc. and I some strict restrictions on SSHing into my instance (also note that none of my ip addresses are exposed thanks to Cloudflare), so really I'm not sure what security risk there may be.

3. How am I losing privacy loss? Just curious, not really understanding what you're saying there.

Re:Ask HN: What do you self-host? by tbyehl on Sunday October 13, 2019 @03:02PM (#21242189)
> Actually was thinking of using Cloudflare Argo

I'd suggest that Argo is a waste of money if you have control of your router, you don't need to secure unencrypted HTTP traffic, and your ISP isn't port-blocking. Block all traffic except from CF's IPs, configure Authenticated Origin Pulls, and use SSL for your CF<->Origin traffic (your own cert or CF's).

If you don't meet all of those conditions, a cheap VPS as a VPN server is probably a better value (plus you get a VPS to do other stuff with).

Re:Ask HN: What do you self-host? by sdan on Sunday October 13, 2019 @05:14PM (#21243089)
Great idea. Didn't think of that. Maybe I'll do that in the future.
Re:Ask HN: What do you self-host? by oarsinsync on Sunday October 13, 2019 @09:42AM (#21240290)
You lose the end to end encryption that you’d get by HTTPS directly to your home instead of proxying via CF, as CF will MITM all of your sessions.

Browser <> CF, CF<> source server. Two distinct TCP sessions. Both potentially encrypted, but there’s no E2E encryption anymore.

Re:Ask HN: What do you self-host? by sdan on Sunday October 13, 2019 @05:21PM (#21243135)
I get what you're saying, but here's some benefits of using CF:

1. Been using it for 3+ years. Whenever I'm making a site, there's nothing better than easily making some DNS records and making sure they're all always-on HTTPS.

2. A little bit of the first part: It's a hassle to setup my own certs, etc.. I feel that Cloudflare "protecting" my IP from DDOS and other attacks is far better than anything that I can setup easily (at least from my experience, I think they know what they're doing)

3. Maybe in the future when I have some time and money I'll do everything on my own and ensure I have E2E encryption. At the moment, anything I'm running isn't mission-critical and isn't used by hundreds of people; I'm not making a SaaS startup. I understand your concern, but the ease of use of Cloudflare is something I value.

4. Analytics. I've come not to trust Google Analytics at all. I'm not sure what they're doing, but most if not 100% of tech-savy people have adblock, which blocks GA. My VPN from AlgoVPN blocks GA and anything related to GA, FB, Twitter, etc. So I'm not really sure how much I can trust GA's analytics opposed to Cloudflare giving me the exact numbers on how many people requested or visited my site. (I'm going to make my own analytics soon since Fathom has turned to profit only and not open source).

Re:Ask HN: What do you self-host? by oarsinsync on Sunday October 13, 2019 @08:18PM (#21244257)
Apologies for not being clear, but I was simply addressing the third point in your previous post:

> 3. How am I losing privacy loss? Just curious, not really understanding what you're saying there.

I understand the benefit of CF, and it’s for each person to decide for themselves what they consider acceptable or not.

> Cloudflare giving me the exact numbers on how many people requested or visited my site. (I'm going to make my own analytics soon since Fathom has turned to profit only and not open source).

We could do this in the 90s with our web server logs. It didn’t involve third parties or paid tools or centralising logging and sacrificing privacy. Tooling for simple stats has existed for literally more than two decades.

Re:Ask HN: What do you self-host? by asdkhadsj on Sunday October 13, 2019 @10:14AM (#21240446)
> HTTPS directly to your home

Can you elaborate on this? Maybe I misunderstand you, but is there a good way to get HTTPS from your home?

Re:Ask HN: What do you self-host? by notkaya on Sunday October 13, 2019 @10:18AM (#21240471)
Don't use CF. Route everything directly to a reverse proxy on your home server.
Re:Ask HN: What do you self-host? by pm7 on Monday October 14, 2019 @12:42PM (#21250167)
You may want to consider adding netdata user to docker group. It will allow checking Docker names of containers instead of numeric id.

Of course, it would simplify privilege escalation if someone successfully attack netdata service. If you want public dashboard, streaming is supposed to be quite safe (no way to send instruction to streaming instance of netdata).

Re:Ask HN: What do you self-host? by _emacsomancer_ on Saturday October 12, 2019 @11:15PM (#21238114)
how difficult is overleaf to self host?
Re:Ask HN: What do you self-host? by sdan on Saturday October 12, 2019 @11:59PM (#21238272)
Super easy, here's the docker compose file I used:

https://github.com/dantuluri/sd2/blob/master/docker-compose....

You'll need Mongo and Redis (last I remember) as well (which I believe are the two images that follow the sharelatex image.