how to use PHP shell with static route add

  • Hi, I am not very good at PHP shell. I can do basic single field changes. Here is a static route example of what I'd like to do:

    $config["staticroutes"]["route"] = json_decode('[{"network":"","gateway":"myint","descr":"mydescription"}]',true);

    Unfortunately the above example does not work when run via PHP shell. Please help.

    Thanks in advance,

  • Netgate Administrator

    You probably need some include files there for the functions involved.

Log in to reply