OpenVPN server guide. Firewall setting failes

Hi. I used the guide before but now the firewall section failes with requires option fw4_compatible.
OpenWrt 22.03.5, r20134-5f15225c1e

root@LEDE:~# uci rename firewall.@zone[0]="lan"
root@LEDE:~# uci rename firewall.@zone[1]="wan"
root@LEDE:~# uci del_list firewall.lan.device="tun+"
root@LEDE:~# uci add_list firewall.lan.device="tun+"
root@LEDE:~# uci -q delete firewall.ovpn
root@LEDE:~# uci set firewall.ovpn="rule"
root@LEDE:~# uci set firewall.ovpn.name="Allow-OpenVPN"
root@LEDE:~# uci set firewall.ovpn.src="wan"
root@LEDE:~# uci set firewall.ovpn.dest_port="${VPN_PORT}"
root@LEDE:~# uci set firewall.ovpn.proto="${VPN_PROTO}"
root@LEDE:~# uci set firewall.ovpn.target="ACCEPT"
root@LEDE:~#
root@LEDE:~# uci commit firewall
root@LEDE:~# /etc/init.d/firewall restart
Section @include[0] is not marked as compatible with fw4, ignoring section
Section @include[0] requires 'option fw4_compatible 1' to be considered compatible

openvpn server guide

uci -q delete firewall.@include[0]
uci commit firewall
/etc/init.d/firewall restart
1 Like

Works like a charm! Thx :slight_smile: :blush:

1 Like

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