Meh. Safeish. Until one of your servers has a zero day.
Self-Hosted Main
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
For Example
- Service: Dropbox - Alternative: Nextcloud
- Service: Google Reader - Alternative: Tiny Tiny RSS
- Service: Blogger - Alternative: WordPress
We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.
Useful Lists
- Awesome-Selfhosted List of Software
- Awesome-Sysadmin List of Software
Everything has some sort of vulnerability, the qestion is will someone be assed to abuse it.(rheotical question)
Not so much will someone be assed about it, it’s whether a script will pick you up your server. There’s a ton of aggregation search engines that scan most IPv4 addresses and list them on what ports are open etc. such as Shodan.io
Like I said, safeish.
As far as i understood it a cloudflare tunneled service should not be visible when port scanning. Or am i completely wrong here? I started using tunnels just so i can avoid opening ports to the internet. I also restricted the access to my services to specific countries.
The only thing a CF tunnel does is protect your home IP. Doesn’t protect the app or server you’re exposing.
Well it does slightly more than just obfuscating your home IP, in that it will also do automatic bot, DDOS prevention, etc...
Nothing will stop a general scan from happening. Especially if it’s a slow scan.
Scans won’t trigger dos/ddos alerts.
Well yeah, that would get your host IP...if they're doing a general scan of whole ISP IP ranges (Which nothing could really stop, except for a good firewall). But there is much more low-hanging fruit for hackers than to scan tens of thousands of unoccupied subnets.
Ilulz. Automated scans cost nothing in resources. That would not find a host IP, it’d find the public Ip and open port.
I would consider time a pretty major resource....and yes, you are correct I misspoke/typed. I meant public IP, not host IP...
Anyway, the point is not to prevent all attack vectors (which is impossible, unless you're totally offline/air-gapped/etc), OP wants to minimize the probability of infiltration. So to get back to the question, yes CF tunnels help with that when implemented correctly.
tunnels are reverse-portforwarding. ports aren't open on my network but on theirs.
anyways i moved back on VPS because im not 100% sure what is my ISPs stance lmao. and since i cant have much control with my internal network for now, id rather stay away but i def wanna host at home eventually
If you keep up to date with all the vulnerabilities for the software you use you should be generally pretty safe.
Tbh.. It's just nginx and gunicorn and yeah i keep it updated :)
You should be fine then!
You can't get rid of the ISP router? Can you contact your ISP to put the router into bridge mode?
Connecting another router would introduce a double nat as they don't allow bridging.
Maybe you should try connecting another router nontheless. Double NAT isn't nice, but not having VLANs and generally being bound to your ISP router isn't either. I'm behind a double NAT for some time now and my network still works fine.
Run your hosting inside a docker container. If someone were to hack you they, in theory, would only have access to whatever is in that container and not your entire server. Someone with more expertise please feel free to correct me if I'm wrong. I am not an expert in this, just offering what I (think I) know.
Exactly. Even if they make it into your network (which would be somewhat unlikely already, since CF obfuscates your home IP), as long as you don't run your docker containers in "privileged" mode (or give the containers RW access to important directories on your server), you'd be fine except for the most end-of-world scenarios.
You've already taken a great step by setting up Cloudflare tunnels, as that will obfuscate your WAN IP, but a common mistake I see a lot is having another random device on a network that is perhaps using a DDNS that doesn't obfuscate A records or something like that.
Basically, just make sure everything that is public/internet-facing is going through CF tunnels and you're as protected as you can (reasonably) can be - from that angle at least.
Keep in mind though, this just (largely) prevents one vector of attack - through your WAN IP - depending on your set-up, you could (and likely do) have other ways of penetration to get into your network.
I am a big proponent of getting something like a Firewalla to mitigate many other vectors. They're bit pricey (though for their capabilities relative to other "off the shelf" devices, not really, I suppose) but largely hands-off.
Do you have any auth in cloudflare? If so, that mitigates a lot of zero-days. First they have to get past cloudflare, then a zero-day in your nginx.
no auth as personal blog is supposed to be public and accessible to everyone.
however, until i can have more control of my internal network, i moved back to a vps :)
Yeah, might be for the best.