I set up OpenVPN server on one Ubuntu machine and I am connecting to it via another Ubuntu machine. However, the VPN works only when the server firewall (ufw) is disabled. That is I can connect when the firewall is on but I get timeout if I try to connect to some local server from the client (or browse). Meanwhile, the server logs in /var/log/syslog:

Jun 30 16:33:09 user kernel: [543227.015571] [UFW BLOCK] IN=tap0 OUT=eth0 MAC=0e:*********:00 SRC= DST= LEN=69 TOS=0x00 PREC=0x00 TTL=63 ID=10228 DF PROTO=UDP SPT=7401 DPT=53 LEN=49

I added to the firewall

ufw allow 1194/udp

also tried

ufw allow from

but no luck.

The DST IP in the error message is different from my server wlan0 IP. Running openvpn on the server adds tap0. On the client it adds tap0

1 Answer 1


When running a firewall like ufw, please consider enabling ip forwarding, otherwise the clients will only be able to connect to the server, but not to other LAN servers. [0]

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .