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

Firewall Rules

Scheduled Pinned Locked Moved General pfSense Questions
5 Posts 4 Posters 445 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.
  • T
    tobijuan
    last edited by Jul 22, 2019, 7:37 AM

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

    1 Reply Last reply Reply Quote 0
    • G
      Gertjan
      last edited by Jul 22, 2019, 8:02 AM

      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 ??

      F 1 Reply Last reply Jul 22, 2019, 9:21 AM Reply Quote 0
      • F
        fireodo @Gertjan
        last edited by Jul 22, 2019, 9:21 AM

        @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.

        G 1 Reply Last reply Jul 22, 2019, 9:22 AM Reply Quote 0
        • G
          Gertjan @fireodo
          last edited by Jul 22, 2019, 9:22 AM

          @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 Jul 22, 2019, 12:46 PM

            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
            2 out of 5
            • First post
              2/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received