ufw: How to allow traffic to all ports on specific interface

example.sh
sudo ufw allow in on tailscale0 to any

This will allow any traffic (including routed traffic, if packet forwarding is enabled) coming from the tailscale0 interface.


Check out similar posts by category: Linux, Networking, VPN