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

    How to change gateway in firewall rule from php

    Scheduled Pinned Locked Moved Development
    3 Posts 3 Posters 1.8k 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.
    • X
      xogoc
      last edited by

      I have only 1 rule for all traffic. And I want to change gateway in this rule from my own php script on pfSense 2.0… Please help.

      1 Reply Last reply Reply Quote 0
      • yakarY
        yakar
        last edited by

        i think you need this:

        http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html

        with this: http://tr2.php.net/manual/en/function.exec.php

        Bilgi paylaştıkça artar!
        5651 sayılı kanun (güncel)
        pfSense alt yapısı üzerine kurulu iSafe ile işletmelere özel çözümler.

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

          @Aydin:

          i think you need this:

          http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html

          No.

          xogoc: you'll have to script your change to firewall_rules_edit.php and then trigger a filter reload.

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