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

    Firewall log

    Scheduled Pinned Locked Moved Firewalling
    19 Posts 6 Posters 2.9k 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
      Mithrondil
      last edited by

      I started "Packet Capture" 2 days ago and now I get a pfsense notice about "cannot allocate memory"

      Apparently, my pfsense harddrive has been filled up with logs, and after looking around a bit see that I have lots of logs in  /var/log/

      How do i clear all logs?

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        why and the world you think you can run a sniff for 2 days??  You clearly got something NOT getting an IP - so could of prob ran it for 2 minutes and found it..  Or it default to capture 100 packets - why did you change it to unlimited??

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • M
          Mithrondil
          last edited by

          Im pretty new to pfsense firewall and Im learning by trial and error.

          How do i clear my drive from all logs, please?

          ![pfsense fire wall error.jpg](/public/imported_attachments/1/pfsense fire wall error.jpg)
          ![pfsense fire wall error.jpg_thumb](/public/imported_attachments/1/pfsense fire wall error.jpg_thumb)

          1 Reply Last reply Reply Quote 0
          • M
            Mithrondil
            last edited by

            I guess I have to format the drive and reinstall pfsense.

            1 Reply Last reply Reply Quote 0
            • DerelictD
              Derelict LAYER 8 Netgate
              last edited by

              Why?  Just ignore the old entries.  They are circular and will eventually roll over.  pfSense logs cannot fill the disk.

              If you want to zero the existing capture file, just start a capture then quickly stop it.  It'll clobber what's there.

              Or find a way to run this command: rm -f /root/packetcapture.cap

              Either in the shell or Diagnostics->Command Prompt.

              You might need to reboot depending on what has blown up due to the full disk/memory.

              Chattanooga, Tennessee, USA
              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
              Do Not Chat For Help! NO_WAN_EGRESS(TM)

              1 Reply Last reply Reply Quote 0
              • M
                Mithrondil
                last edited by

                I just realized that the error message I was getting wasnt actually due to lack of space on the harddrive, instead it was due to selecting 2 conflicting choices from the settings in the "pfblocker" package.

                I made the mistake to include russia in the top spammer tab while also selected russian federation in the europe tab, wich somehow caused a conflict.

                After deselecting russian federation in the europe tab the error messages stopped comming.

                Thank you anyway for your help.

                1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by

                  so did you track down your box asking for dhcp?

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                  1 Reply Last reply Reply Quote 0
                  • M
                    Mithrondil
                    last edited by

                    @johnpoz:

                    so did you track down your box asking for dhcp?

                    In a manner of speaking yes, I re-enabled the DHCP server and the security camera started working again.
                    This surprices me since before I turned DHCP server off I added the camera´s MAC adress to the DHCP Static Mappings and enabled Static ARP, and gave it a static IP.
                    With my limited understanding of pfsense I assumed that this would allow the camera to communicate with the pfsense firewall even without DHCP.

                    I also turned DHCP off in the camera settings and set it to use a static IP, so I dont understand why the camera is asking the DHCP server for an IP.

                    My conclusion is that either theres a bug in pfsense, or my securitycamera must have more then one mac address.
                    If the camera is both wireless and wired, does the each connection type have its own MAC acdress or do they share?

                    1 Reply Last reply Reply Quote 0
                    • DerelictD
                      Derelict LAYER 8 Netgate
                      last edited by

                      The static DHCP mapping in pfSense does absolutely nothing if the DHCP server is disabled.  It's disabled, as in off.

                      If you found a bug in anything it's in your camera having a static IP set and still requesting one from DHCP.

                      Yes, devices with wired and wireless interfaces will almost always have a different MAC address for each interface.

                      Chattanooga, Tennessee, USA
                      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                      Do Not Chat For Help! NO_WAN_EGRESS(TM)

                      1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator
                        last edited by

                        mac address are unique - if there is more than 1 interface then there is more than one mac.  If you device has wired and wireless interfaces then yes each interface would have its own mac.  Other thing since you were seeing requests for dhcp is your device did not actual get set as static - and was asking for dhcp.. which you had turned off.

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.8, 24.11

                        1 Reply Last reply Reply Quote 0
                        • DerelictD
                          Derelict LAYER 8 Netgate
                          last edited by

                          I could swear I have seen wireless access points with the same MAC on ethernet as on the Wi-Fi, but that's a bridge and not really two interfaces…  Certainly never a client device like a laptop or camera.

                          Chattanooga, Tennessee, USA
                          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                          Do Not Chat For Help! NO_WAN_EGRESS(TM)

                          1 Reply Last reply Reply Quote 0
                          • johnpozJ
                            johnpoz LAYER 8 Global Moderator
                            last edited by

                            I have never seen an access point with same mac – you can not have the same MAC on 2 different interfaces, it breaks everything about what a mac is ;)

                            A br0 for example or an interface you create by bridging sure it would have one of the macs of one of the interfaces in the bridge.

                            An intelligent man is sometimes forced to be drunk to spend time with his fools
                            If you get confused: Listen to the Music Play
                            Please don't Chat/PM me for help, unless mod related
                            SG-4860 24.11 | Lab VMs 2.8, 24.11

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