Save updated firewall configuration before reboot

Hello,

I changed the firewall configuration via SSH with the “iptables” command. Concretely, I added a new chain and some rules to it. A bit later, I ran “reboot” on the command line, but the changes were lost.

Is there a way to do this without using the web GUI?

Add your rules to /etc/config/firewall.

See https://wiki.openwrt.org/doc/uci/firewall

Thanks protree =)

I’ll read the documentation of the UCI firewall and save the rules in that file.