API or SSH Access

Hello GL-iNet Team!

I am interested in the ability to interact with my Spitz-X3000 via an API (HTTP POST) or SSH session.

I am primarily interested in the ability to swap the priority order of Multi-WAN. I see there is a file that hold the Multi-WAN (and interface tracking config) settings in /etc/config/kmwan. But beyond that, there will probably be a UCI command and a service I’ll probably need to restart to actually apply any changes I’ve made to that file via SSH.

Any thoughts or help would be greatly appreciated!

Hello,

What do you need to do with API/SSH for Multi-WAN configuration?

Yes, the configuration of Multi-WAN is in /etc/config/kmwan.
You can use uci commands to configure it anyway (as long as it is configured correctly).

After uci commit, kmwan process needs to restart:
/etc/init.d/kmwan restart