Calling router HTTP to disable/enable an IP via shell script

Hey all I am new at all this shell script stuff so keep that in mind :slight_smile: I have seen this post but am unsure of what the script looks like other than it takes querystring values and mac address. Would like to know the command(s) it takes to do that behind the scenes.

What I am wanting to do is be able to call a shell script that disables an IP address (so no internet connection can be established) that I provide within the call.

As an example, say that I want to disable ip 192.168.1.111.

The call I would like to make would be:
http://192.168.1.1/edip.sh?ip=192.168.1.111&type=disable

The same would apply for the enabled:
http://192.168.1.1/edip.sh?ip=192.168.1.111&type=enable

How would I go about being able to do this?

The versions I am currently using are:

  •         Hostname: turris
    
  •            Model: Turris Omnia
    
  •     Architecture: ARMv7 Processor rev 1 (v7l)
    
  • Firmware Version: TurrisOS 5.3.10 / LuCI branch git-22.115.68448-712bc8e
    
  •   Kernel Version: 4.14.277

Anyone able to help me with this?