geoip-shell icon indicating copy to clipboard operation
geoip-shell copied to clipboard

How to properly backup config for OpenWrt?

Open axzxc1236 opened this issue 7 months ago • 1 comments

I just did OpenWrt version update from 23.05.5 to 24.10.1 on my router, after restoring backup and install package I couldn't get geoip-shell to work, it says countries list is empty. (I had to reconfigure from scratch after doing geoip-shell reset)

root@OpenWrt:/tmp# opkg install geoip-shell_0.7.2-r1.ipk
Installing geoip-shell (0.7.2-1) to root...
Configuring geoip-shell.
Updating the config file... Ok.
Creating directory '/tmp/geoip-shell-data'... Ok.

Applying config... 
No IP lists registered - skipping firewall rules creation.
Processing cron jobs... 
cronsetup: Configured countries list is empty. Not creating cron jobs.
geoip-shell: Countries list in the config file is empty! No point in creating firewall include.

Successfully configured geoip-shell for firewall backend: nftables.

View geoblocking status with 'geoip-shell status' (may require 'sudo').

geoip-shell-mk-fw-include.sh: no_persist file exists. Disabling the init script.
Removing the firewall include... /usr/bin/geoip-shell-mk-fw-include.sh: line 75: OK: not found
/usr/bin/geoip-shell-mk-fw-include.sh: line 75: FAIL: not found
Committing fw4 changes...
Reloading firewall4...

The openwrt router is configured to save /etc/geoip-shell but appearantly that doesn't work, is there other file/directory that needs to be saved?

axzxc1236 avatar Apr 19 '25 04:04 axzxc1236

Hi, thanks for reporting this. Saving the config directory should be enough. I'll try to duplicate the issue.

friendly-bits avatar Apr 19 '25 08:04 friendly-bits