The portmaster firewall catches SSH with IPv6 when connecting to my public ISP on the WAN

I know now after my investigation. systemd-resolve caused this.

It is related to the tip I had followed a long time ago:

My solution:

  1. Delete the symlink /etc/resolv.conf for systemd-resolved.

  2. Disable systemd-resolved.service.

  3. I restore my old resolv.conf from my backup. However, it could be generated by networkmanager as the dependency required by KDE.

The SSH IPv6 connection to my private NAS always remains in my private LAN after DNS resolving on my private router after each reboot, that is my expectation.


Edit:

That looks like systemd-resolve --status shows that ISP’s DNS with IPv6 support is used as the current default DNS server after reboot. :man_facepalming:


Edit2:

Another solution is also possible if you want to continue using systemd-resolved