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

    Copy rules from one interface to another?

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 3 Posters 3.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.
    • F
      fogogg
      last edited by

      As part of my setup I'm using a Poweredge 1650 with 2 onboard 1gb interfaces and two dual port add on cards for a total of six interfaces. I have the interfaces configured and all verified working properly, one being the WAN interface visible to the rest of the company network and the other five being used to segment the the users based on which building they are occupying.

      My question is this: Is there a way I can copy the completed ruleset from the first LAN interface and apply it to the other four? I would like them all to be restricted equally, but have ten to fifteen rules I'd rather not recreate four more times if it can be avoided.

      Thanks for any help, and thanks for this great software.

      1 Reply Last reply Reply Quote 0
      • R
        rsw686
        last edited by

        Download the config. Copy / paste the rules and edit to reflect the interface. Restore the config.

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

          You can do that, but it's much easier to just click the + to the right of the rule you want to copy, which lets you add a rule based on that rule, then change the interface and hit save, and you're done.

          1 Reply Last reply Reply Quote 0
          • F
            fogogg
            last edited by

            Excellent, thank you very much. Using the "Create rule based on this one" button worked perfectly. Thanks for the suggestion of copying the config files too, rsw.

            1 Reply Last reply Reply Quote 0
            • R
              rsw686
              last edited by

              No problem. I was under the assumption you have a lot of rules you wanted to copy quickly and I figured just copy/pasting in the config was the fastest method. But yeah the create rule based on this one button works too.

              1 Reply Last reply Reply Quote 0
              • F
                fogogg
                last edited by

                I ended up using a combination of both. I filled out the remaining rules I hadn't already rebuilt by hand using the "new rules based on this one" button, then did some cut/paste and find/replacing in config backups to fill out opt2-4.

                Thanks again to you both.

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