Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Building shell scripts

    Scheduled Pinned Locked Moved Development
    3 Posts 3 Posters 2.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      ekses_dinajd
      last edited by

      Hi!

      Does anyone know how to create your own shell script that for example change the rule value from enabled to disabled?? I would like to trigger that script when some ip (for example ip of my gateway) is not available any more, and for result of that i would like to have some rule being disabled so the next rule in order will take place..
      I've tried failover methods, but not get them worked, so i would like to try do that manually…

      anyone with this kind of knowledge?

      Thx!

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by

        I know people have done things of this nature using curl, might search the forum on that to find more info.

        1 Reply Last reply Reply Quote 0
        • T
          thekod
          last edited by

          Use a php script with the -q argument when calling the interpreter.  Include the config.inc file, and set the variable to whatever you need it to be.  It will reset to the stored value when the router reboots.  The current value will be written to the config if you save any settings.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.