Navigation

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

    Firewall Rules

    General pfSense Questions
    4
    5
    127
    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
      • Gertjan
        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.

        fireodo 1 Reply Last reply Reply Quote 0
        • fireodo
          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, 4Ports
          SanDisk pSSD-S2 16GB (ZFS), WLE200NX (WiFi)
          Pfsense 2.6.0
          PKGs: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG-devel, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

          Gertjan 1 Reply Last reply Reply Quote 0
          • Gertjan
            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.

            1 Reply Last reply Reply Quote 0
            • R
              Renat 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