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

ufw_allow_on_interface.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