Navigation

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

    How to change gateway in firewall rule from php

    Development
    3
    3
    1678
    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
      • yakar
        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

        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

          Products

          • Platform Overview
          • TNSR
          • pfSense
          • Appliances

          Services

          • Training
          • Professional Services

          Support

          • Subscription Plans
          • Contact Support
          • Product Lifecycle
          • Documentation

          News

          • Media Coverage
          • Press
          • Events

          Resources

          • Blog
          • FAQ
          • Find a Partner
          • Resource Library
          • Security Information

          Company

          • About Us
          • Careers
          • Partners
          • Contact Us
          • Legal
          Our Mission

          We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

          Subscribe to our Newsletter

          Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

          © 2021 Rubicon Communications, LLC | Privacy Policy