In your case, it will be like this below (please issue all the commands one by one):
uci set vpn-policy-routing.config.enabled="1"
while uci -q delete [email protected][0]; do :; done
uci add vpn-policy-routing policy
uci set vpn-po[email protected][-1].dest_addr="10.10.21.0/24 10.10.20.0/24"
uci set [email protected][-1].interface="ignore"
uci add vpn-policy-routing policy
uci set [email protected][-1].src_addr="10.10.21.0/24"
uci set [email protected][-1].interface="DE"
uci commit
/etc/init.d/vpn-policy-routing restart
These configurations are executed through UCI commands. To delete any rule/command, you can use UCI delete attribute for that specific rule. For example, if added ntp server using UCI command as below:
uci add_list system.ntp.server='0.de.pool.ntp.org'
This can be deleted via the UCI delete command:
uci delete system.ntp.server
For more information about UCI commands, please visit the below link:
https://wiki.teltonika-networks.com/view/UCI_command_usage#Available_commands
Regards,
Ramandeep