# /etc/config/firewall
config include
option enabled 1
option type 'uci'
option path '/etc/config/firewall.d/User-Allow-WireGuard'
# /etc/config/firewall.d/User-Allow-WireGuard
config rule
option name 'Allow-WireGuard'
option src 'wan'
option dest_port '53260'
option proto 'udp'
option target 'ACCEPT'
You cannot use UCI in firewall includes!
Include '/etc/firewall.user' failed with exit code 1
The /etc/config/firewall file contains numerous rules, and its content is becoming increasingly voluminous. Therefore, it is recommended to split the proposed new feature into multiple files for easier organization and management.
It is recommended to refer to the configuration file management of nginx/conf.d, which is elegant and concise.
This doesn’t seem to be a real recommendation from any actual users.
That said, it is recommended to refer to the documentation (to which I linked earlier) because it does specify how the includes are intended to be used.
The issue encountered here is simply that the entries in your includes files was not valid - a fact that is confirmed by the documentation.