I have WireGuard running on a Raspberry Pi Zero W, I use it as a dedicated VPN server. I want UFW on the server too but despite having added the following two rules it does not work.
sudo ufw allow ssh
sudo ufw allow 51820/udp
Once UFW is enabled it does not work. Disable UFW, it works again. All the guides online simply show that all that is needed for it to work is to allow 51820 through.
However some suggest it is to do with forwarding but there seems to be no agreed upon answer that I can find. Using WireGuard with a firewall must be common practice surely?
I achieved my aims via this thread that I initiated - https://www.reddit.com/r/WireGuard/comments/ik6w4h/etcdefaultufw_default_forward_policyaccept/
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments