Skip to content

Conversation

@MadLittleMods
Copy link
Collaborator

@MadLittleMods MadLittleMods commented Dec 29, 2025

Add comment to ufw firewall rule so it's easier to figure out what it's from and what it's for in the future.

When you're staring at sudo ufw status numbered, make it easier to figure out why the rule is there:

sudo ufw status numbered
Status: active

     To                         Action      From
     --                         ------      ----
[ 9] Anywhere (v6) on br-+      ALLOW IN    Anywhere (v6)              # (from Matrix Complement testing) Allow traffic from custom Docker networks to the host machine (host.docker.internal)

If you've already added the rule in the past, you can delete and re-add it:

  1. Find the rule number: sudo ufw status numbered
  2. sudo ufw delete 9
  3. Re-add rule

Dev notes

Originally introduced in #388


If you additionally want to allow traffic from the default Docker network (docker0), here is that rule:

sudo ufw allow in on docker0 comment "Allow traffic from the default Docker network to the host machine (host.docker.internal)"

Pull Request Checklist

@MadLittleMods MadLittleMods marked this pull request as ready for review December 29, 2025 21:50
@MadLittleMods MadLittleMods requested review from a team as code owners December 29, 2025 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants