No, they are not the same.
This:
sudo ufw allow proto udp from 192.168.1.0/24 to any port 137
is an inbound rule.
This:
sudo ufw allow proto udp to any port 137 from 192.168.29.0/24
is an outbound rule.
You can confirm this yourself by looking at the configuration in gufw.
Bookmarks