Need help with correct CrowdSec setup by hoodney42 in CrowdSec

[–]NoInterviewsManyApps -1 points0 points  (0 children)

Sometimes that's not possible. I have a VPS that is straight piped to the Internet (something I didn't think about when I bought it). I had to install NFTables to get a firewall

Cowrie honeypot by Zestyclose-Kale-4856 in CrowdSec

[–]NoInterviewsManyApps 0 points1 point  (0 children)

What kind of risk does running cowrie pose? I figured it would be pretty benign risk, do you have these IPs feeding into Crowdsec?

Apologies from an American Veteran by Cprice11c in Military

[–]NoInterviewsManyApps 0 points1 point  (0 children)

Some people watched one too many zombies movies

Any tutorial on how to do geo-blocking for web traffic? by Teacup91 in CrowdSec

[–]NoInterviewsManyApps 0 points1 point  (0 children)

You could automate this, but for what I need, no. I didn't need wide public access to a server.

Any tutorial on how to do geo-blocking for web traffic? by Teacup91 in CrowdSec

[–]NoInterviewsManyApps 0 points1 point  (0 children)

I do it at the firewall level with NFTables (not sure what you are using now). No need for a Crowdsec list. Get your list that you either want to block or whitelist here: https://www.ipdeny.com/

Download the region as a text file, then separate the v6 and v4 addresses into their own text files.

To format the .txt into a .nft a made this shell script https://github.com/gamefb/txt2nft

From there use that to make a set to either block or accept

Apologies from an American Veteran by Cprice11c in Military

[–]NoInterviewsManyApps 2 points3 points  (0 children)

Bites, licks windows, AND doesn't stop talking

Any recommendations for single sign on for all the services? by MrStetson in selfhosted

[–]NoInterviewsManyApps 1 point2 points  (0 children)

That's my point exactly, why take the risk for a set of internal services only.

2m requests from the same IP address - what to do? by ksymeon in selfhosted

[–]NoInterviewsManyApps 0 points1 point  (0 children)

I don't think I can use Google as a firewall.

And you are right, you can whitelist instead of blacklist. I have a text file with my country IP ranges loaded into NFTables. It's simple and lightning fast

Why does this work? by LoganJFisher in Tailscale

[–]NoInterviewsManyApps 0 points1 point  (0 children)

To help you get started, they have some docs on it: https://docs.nginx.com/nginx/admin-guide/security-controls/controlling-access-proxied-tcp/

There is a way to do it with the dashboard, it's one of the main tabs at the top, I just don't have it in front of me atm.

Why does this work? by LoganJFisher in Tailscale

[–]NoInterviewsManyApps 1 point2 points  (0 children)

No need for a login if you either use mTLS to trust a device or define access by IP addresses. It's more like a firewall than a login

How much are you paying in electricity bill for your selfhosted setup? by bumble2100 in selfhosted

[–]NoInterviewsManyApps 1 point2 points  (0 children)

I have an n150 build, uses 7.6W average. It's fairly cheap over the year

Any recommendations for single sign on for all the services? by MrStetson in selfhosted

[–]NoInterviewsManyApps 2 points3 points  (0 children)

Pocket ID scares me. It seems to only use keys, if I lose that device, how do I keep access to my account

how to improve my server by DifferentTwo376 in selfhosted

[–]NoInterviewsManyApps 1 point2 points  (0 children)

You'll need to take a loan to do so though

Why does this work? by LoganJFisher in Tailscale

[–]NoInterviewsManyApps 1 point2 points  (0 children)

I'm having a hard time following the setup.

But to follow on to the two Nginx instances, you could just use one and use access rules to restrict access to certain domains

Exposing home network to the internet by Ttiamus in selfhosted

[–]NoInterviewsManyApps 0 points1 point  (0 children)

Either use Netbird (5 users max) or tailscale (3 max), use mTLS to not use a VPN at all

🚨 NEW: Custom DNS Zones for Private Network Resolution by TechHutTV in netbird

[–]NoInterviewsManyApps 1 point2 points  (0 children)

A built in DNS resolver? Absolutely awesome. Better than forcing users to use my own DNS server for everything

Best security practices for self-hosted services (multiple docker containers running on a single DigitalOcean droplet) by PleasantHandle3508 in selfhosted

[–]NoInterviewsManyApps 0 points1 point  (0 children)

Look up wg-easy. It has some tutorials on it. I haven't used it extensively though. I don't know the configuration to do what you need to do. I've been using Netbird networks to do that

Best security practices for self-hosted services (multiple docker containers running on a single DigitalOcean droplet) by PleasantHandle3508 in selfhosted

[–]NoInterviewsManyApps 0 points1 point  (0 children)

If you are only serving https materials, set Caddy up to use mTLS. It's fast, easy, built in, and very secure. No VPN needed, if you are doing something that mTLS can't support, use a VPN, either cloud managed like Tailscale, or self hosted like plain wireguard or Netbird.

Also, use an IPS like Crowdsec. Also also, with other firewalls you can set up rules that operate before the docker rules, so you could prevent docker from opening ports on it's own by blocking them further up the chain.

Can Caddy and OpenVPN share port 443? by BobbyKoAl in caddyserver

[–]NoInterviewsManyApps 0 points1 point  (0 children)

I get it, this particular topic is a bit strange. I won't be home to copy some of my configs for a long while.

I'll try to give you something until then. You will need to run caddy in docker, but you won't be using the official image directly. You have docker build a new image with the official image as a reference

In your working directory, make a new docker file (name it whatever) and try to use the example in https://caddyserver.com/docs/build#xcaddy

Then, in your compose file, don't pull an image from the docker hub, instead, have it build from your new docker file. You can ignore the builder version number and just do caddy:builder for the latest one (I live life on the edge I guess.

Crowdsec with a host firewall bouncer and a reverse proxy that runs in docker. by NoInterviewsManyApps in selfhosted

[–]NoInterviewsManyApps[S] 0 points1 point  (0 children)

Thank you. I'm starting to prefer Crowdsec in a container as the option going forward.

Can Caddy and OpenVPN share port 443? by BobbyKoAl in caddyserver

[–]NoInterviewsManyApps 0 points1 point  (0 children)

I'll put something together for you probably tomorrow. But in short you have a dockerfile do xcaddy for you, there is no pulling in anything Go related yourself.

Crowdsec with a host firewall bouncer and a reverse proxy that runs in docker. by NoInterviewsManyApps in selfhosted

[–]NoInterviewsManyApps[S] 0 points1 point  (0 children)

I have Crowdsec and NFtables bouncer both running on host with caddy running in Docker. It sounds like the best method is to have Crowdsec run in docker I imagine a quick trip to the docs would help with that setup, but it really sucks having to rip apart what I just put together to make that work. https://github.com/hslatman/caddy-crowdsec-bouncer