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

    Generating Rulesets through CLI

    Scheduled Pinned Locked Moved Firewalling
    1 Posts 1 Posters 595 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.
    • M Offline
      madlylurking
      last edited by

      Hello,

      First i'd like to thanks the whole team behind Pfsense, we've started using it recently and have been quite happy with it.

      Now to the question itself :

      I need to be able to easily add specifics sets of rules to the firewall on some interconnection networks. I don't want to get too much into the details but the FW is going to manage interconnections between our network and an interconnection subnet from our customer through which specifics appliances ports needs to be open, everything else will be dropped.

      Since we have quite a few rules to create we'd like to speed the process by using scripts to generate the rulesets and then push it on the firewall.

      I know there's the command easyrule that allow you to add rules to the FW but i got several issue with it :

      • I don't think i can remove rules with it
      • I don't think i can modify the comment (when i generate a rule through easyrule the comment is generated automatically : "Easy Rule: Passed from Firewall Log View"
      • I don't seems to be able to set a priority to said rules with the tool.

      Are there any other way to add rules through the CLI that would give me more options to toy with them ?
      The other way i've figured would be to load the current config, add the ruleset in it and then uploading it again.

      I did some basic search on the web and pretty much everything turned to be either through the WebGui or the easyrule command.

      Thanks for your time,
      Sincerely

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