Wednesday, September 2, 2026

Viewing Windows PCs on network when using ufw firewall in Kubuntu 26.04

For anyone having a problem with Windows shares not showing up in the network when using samba with the ufw firewall enabled, it seems an additional source port filter rule for wsdd is required. Refer to the discussion at firewalld here. Since ufw app rules only allow simple filters, this extra rule needs to be manually applied as follows.
sudo ufw allow proto udp from any port 3702 to any

 Note: Ensure your machine is on a trusted network.

 I am assuming filter rules for samba and wsdd have already been applied. If not, apply them with the following commands.

sudo ufw allow samba
sudo ufw allow wsdd

Restart the firewall with 'sudo ufw reload' and windows PCs in the network should become visible in Dolphin. Hope this helps!