this post was submitted on 07 May 2026
79 points (96.5% liked)

Selfhosted

60093 readers
955 users here now

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.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam.

  3. Posts here are to be centered around self-hosting. Please ensure it is clear in your post how it relates to self-hosting.

  4. Don't duplicate the full text of your blog or git here. Just post the link for folks to click.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require your active participation in selfhosting or related communities, or the post will be removed. No more than 10% of your posts or comments may be self-promotional, or your post will be removed. F/LOSS Exception: If your post is about a project that is completely open source & can be self-hosted in full without payment, and your account is at least 7 days old, your post is exempt from this rule as long as you continue to engage in comments.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

So it's my first time setting up a VPS. Is it to be expected to ban 54 IPs over a 12h timespan? The real question for me is whether this is normal or too much.

$ sudo fail2ban-client status sshd
Status for the jail: sshd
|- Filter
|  |- Currently failed: 3
|  |- Total failed:     586
|  `- Journal matches:  _SYSTEMD_UNIT=ssh.service + _COMM=sshd
`- Actions
   |- Currently banned: 51
   |- Total banned:     54
   `- Banned IP list:   [list of IPs]

fail2ban sshd.conf

$ sudo cat /etc/fail2ban/jail.d/sshd.conf 
[sshd]
enabled = true
mode = aggressive
port = ssh
backend = systemd
maxretry = 3
findtime = 600
bantime = 86400

I have disabled SSH login via password. And only allow it over an SSH key.

$ sudo sshd -T | grep -E -i 'ChallengeResponseAuthentication|PasswordAuthentication|UsePAM|PermitRootLogin'
usepam no
permitrootlogin no
passwordauthentication no
you are viewing a single comment's thread
view the rest of the comments
[–] trackball_fetish@lemmy.wtf 5 points 1 month ago (1 children)

My question too, pretty sure you can

[–] pHr34kY@lemmy.world 13 points 1 month ago* (last edited 1 month ago) (1 children)

The smallest possible subnet has 18.4 quintillion addresses.

You can't scan it before encountering the heat death of the universe.

Outgoing connections are made on a different address that does not accept incoming connections. You never disclose your real IP when browsing.

So, no. It can't be done.

[–] possiblylinux127@lemmy.zip 5 points 1 month ago (1 children)

That's only if you use the brute force method

IPs are not secret and can be leaked in various ways. Don't count on IPv6 as a security mechanism as that's not what it was designed to do

[–] pHr34kY@lemmy.world -2 points 1 month ago* (last edited 1 month ago) (1 children)

It's literally called "IPv6 privacy extension". It's what it does.

Unless you're in the middle and fowarding the packets, you won't stumble across a connectable IPv6 endpoint.

[–] possiblylinux127@lemmy.zip 6 points 1 month ago

The IPv6 privacy extensions are something else entirely and are not used for anything server side

You should research IPv6 port scanning techniques. It is harder than IPv4 but still doable depending on the context. If your goal is simply to reduce network traffic due to bots that's one thing. However, it should not be considered a security mechanism.