Wireguard VPN server - firewall issue

I followed the firewall settings here: https://openwrt.org/docs/guide-user/services/vpn/wireguard/server

I am now locked out fo the router. Unable to SSH in and no access to Luci, both "connection refused". All I did before I lost access was follow the configure firewall section:

# Configure firewall
uci rename firewall.@zone[0]="lan"
uci rename firewall.@zone[1]="wan"
uci del_list firewall.lan.network="${WG_IF}"
uci add_list firewall.lan.network="${WG_IF}"
uci -q delete firewall.wg
uci set firewall.wg="rule"
uci set firewall.wg.name="Allow-WireGuard"
uci set firewall.wg.src="wan"
uci set firewall.wg.dest_port="${WG_PORT}"
uci set firewall.wg.proto="udp"
uci set firewall.wg.target="ACCEPT"
uci commit firewall
/etc/init.d/firewall restart

Are these the only changes you made to the firewall? Did you make any changes anywhere else?

Just to double-check, have you copy-pasted the configuration parameters from section 1 before you copy-pasted the configure firewall section (section 3)?

1 Like
1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.