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

    add nat & fw rules over script over SSH

    General pfSense Questions
    2
    5
    387
    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.
    • M
      marnog
      last edited by marnog

      Dear All

      I am have a questions

      there are any way to add rules over script ?

      I need to add more 1000 rules i will like to make some automation over this.

      Thank you

      Kind Regards.

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        I have done this in the past by just editing the config file directly. There is no easy way I'm aware of unfortunately.

        1 Reply Last reply Reply Quote 0
        • M
          marnog
          last edited by

          Hi Stephenw10.

          Nice to meet you.

          Thank you for the replay.

          Is not any command like .add rules .......

          will be nice get this functions done. of some command line. in Datacenter environment is very need.

          but is not possible with ansible module ?

          Thank you

          Kind Regards.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Nope not currently. The closest thing in the official release is the easyrule function:
            https://docs.netgate.com/pfsense/en/latest/firewall/easyrule.html#easyrule-in-the-shell

            M 1 Reply Last reply Reply Quote 0
            • M
              marnog @stephenw10
              last edited by

              @stephenw10

              Thank you So Much

              Will nice in near future will all some options to manage the fw & nat rules. over command line.

              right now pfsense start be used very large scale in datacenter for secure layer apps.

              can be i game changer for pfsense to be massive deploy a large scale.

              thank you

              have a nice time.

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