Hello,
It's difficult to determine the exact reason for the configuration loss without knowing the specific changes you made and the method you used. Maybe you updated the firmware with 'keep settings' disabled? This way, all configurations are lost when the firmware is updated.
Also, if you are looking to make persistent changes to the router's settings via the command line, such as IP addresses and firewall rules, you can utilize UCI (information is available here). It is worth mentioning that these configurations are also lost if you update the firmware with 'keep settings' option disabled.
For instance, to change the LAN IP address, you can follow these steps:
- uci set network.lan.ipaddr='192.168.10.1'
- uci commit
- /etc/init.d/network restart
The uci set command is used to modify a specific option, and uci commit applies the changes. To make sure the device starts using the updated configuration, restart the corresponding service. In the case of changing the LAN IP address, the network service must be restarted.
- /etc/init.d/network restart
To identify other services that can be restarted when making changes, use the following command:
To view available UCI configurations, you can use commands such as:
- uci show
- uci show network
Also, it would be great if you could explain what is it exactly that you are trying to achieve. What firewall rules you are configuring and why do you need to change them. Are you attempting to access a device in the LAN using the RUT's public IP address?
Kind Regards,
Andzej