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

    Firewall Rules

    General pfSense Questions
    4
    5
    442
    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.
    • T
      tobijuan
      last edited by

      How to add/edit/erase firewall rules using shell?

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        True, nothing is said in the manual about that - probably because pfSense is GUI driven.

        This :

        There is no need for any UNIX knowledge, no need to use the command line for anything, and no need to ever manually edit any rule sets.

        Although some possibilities exist.
        I don't remember where it was discussed, probably in the Firewalling part of the forum.

        Note that "ip" is the firewall so https://www.freebsd.org/cgi/man.cgi?ip
        Changing the firewall using the console access will for sure conflict with the GUI settings, the latter being synced (from GUI to actual 'ip' rules - not the other way around).

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        fireodoF 1 Reply Last reply Reply Quote 0
        • fireodoF
          fireodo @Gertjan
          last edited by

          @Gertjan said in Firewall Rules:

          Note that "ip" is the firewall so https://www.freebsd.org/cgi/man.cgi?ip

          Not the "pf" ?

          Regards

          Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
          SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
          pfsense 2.7.2 CE
          Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @fireodo
            last edited by

            @fireodo said in Firewall Rules:

            Not the "pf" ?

            You're right !!

            https://www.freebsd.org/cgi/man.cgi?pf

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

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

              I think this will help you
              https://docs.netgate.com/pfsense/en/latest/book/config/what-to-do-when-locked-out-of-the-webgui.html
              https://forum.netgate.com/topic/13464/change-firewall-rules-with-shell

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