WireGuard VPN and Uncomplicated Firewall

norfolk_uk

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?

norfolk_uk

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Is Uncomplicated FireWall (ufw) a service?

Uncomplicated Firewall (UFW) and UPNP

Cannot setup WireGuard VPN

Cannot setup WireGuard VPN

Wireguard VPN Outbound and Inbound

Wireguard VPN, no Internet access

Wireguard VPN Client GUI

UFW (Uncomplicated Firewall) turns off (inactive) after a while

Uncomplicated Firewall (UFW) is not blocking anything when using Docker

VPN, bridge, router or firewall?

firewalld: forward traffic as a wireguard VPN gateway

How to use multiple vpn clients with wireguard on windows?

Samba is not listening on specified wireguard / vpn interface

VPN client cannot access network behind VPN server(wireguard)

Can I make Wireguard VPN peers to talk to each other?

Wireguard VPN setup in local network: can't ping

Ip route : access ip on different interface trough Wireguard VPN

IPv6-only WireGuard VPN without NAT

How to allow VPN traffic in Firewall Outbound rules?

Robust Firewall VPN product/solution for Linux clients

Windows firewall doesnot allow to connect from vpn

can Firewall detect vpn that a client use on their pc?

What is the fastest way to install a wireguard vpn server with a oneliner bash script on a Ubuntu server?

Client (Ubuntu 20.04) cannot resolve internet pages while connected to the VPN WireGuard Server

Windows firewall suddenly blocking SMTP connection over VPN

Linux Routing in presence of VPN - Accessing router across a firewall appliance?

Adding VPN exception (allow protocol) to UFW firewall rules?

CIFS share available only via VPN. Firewall disabled

Do you need a software firewall when using VPN?