How to add multiple interfaces to firewall zone w/ uci

Hello,

uci set firewall.my_zone.network='interface1' 'interface2'

returns with the man page for uci, clearly not formatted correct.

uci set firewall.my_zone.network='interface1' sets the covered network of my_zone to exclusively interface1. Then running uci set firewall.my_zone.network='interface2' sets the covered network to exclusively interface2.

how do we add multiple interfaces to a firewall zone using uci cli?

Use multiple uci add_list firewall.my_zone.network='interface1' commands.

1 Like

I was missing add_list in place of set. Thanks!

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