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

    Prevent firewall logs from devices in WAN Net

    Scheduled Pinned Locked Moved Firewalling
    5 Posts 2 Posters 688 Views 2 Watching
    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.
    • W Offline
      WhiteTiger-IT
      last edited by

      On my private router I must necessarily connect a device that is constantly looking for other devices on the network.
      pfSense detects this and reports it in the firewall log.
      There is no configuration of this device that can prevent this search. On the other hand, I know this device and I don't care what it is doing.
      I just want to prevent me from filling my log with hundreds of identical entries, like this with ports always different:

      Feb 18 12:05:59	WAN	192.168.10.15:59095	239.255.255.250:1900	UDP
      Feb 18 12:05:59	WAN	192.168.10.15:54933	239.255.255.250:1900	UDP
      Feb 18 12:05:59	WAN	192.168.10.15:60203	239.255.255.250:1900	UDP
      Feb 18 12:05:59	WAN	192.168.10.15:45411	239.255.255.250:1900	UDP
      

      I have tried to put several "block" rules in the WAN, but the log still continues.
      Eg.

      • Action: Block
      • Interface: WAN
      • IPv4/UDP
      • Source: Host 192.168.10.15
      • Destination: Host 239.255.255.250
      • Ports: Any
      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ Offline
        johnpoz LAYER 8 Global Moderator @WhiteTiger-IT
        last edited by

        @whitetiger-it I would assume that is being blocked by the rfc1918 block rule. You can set that not to log.

        logsettings.jpg

        If its being logged by bogon or rfc1918 then those happen before any of your other rules, so you would have to either turn off those rules on this interface, or set them not to log.

        Then if being logged by the default rule, you could just place a rule on top of your rule list that doesn't log this traffic be it allow or block.

        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 25.07.1 | Lab VMs 2.8, 25.07.1

        W 1 Reply Last reply Reply Quote 1
        • W Offline
          WhiteTiger-IT @johnpoz
          last edited by

          @johnpoz
          Thanks for your answer.
          If I understand your suggestion correctly:

          • I have disabled the creation of the automatic rule in Interface
          • I created the rule to block the device
          • I created a rule that replaces the automatic one, adding the log of this

          RuleForLogs.png

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ Offline
            johnpoz LAYER 8 Global Moderator @WhiteTiger-IT
            last edited by

            @whitetiger-it yeah that works.. Or you could of just turned off logging of that rule ;)

            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 25.07.1 | Lab VMs 2.8, 25.07.1

            W 1 Reply Last reply Reply Quote 0
            • W Offline
              WhiteTiger-IT @johnpoz
              last edited by WhiteTiger-IT

              @johnpoz said in Prevent firewall logs from devices in WAN Net:

              @whitetiger-it yeah that works.. Or you could of just turned off logging of that rule ;)

              I keep logging in so if there is any other "strange thing" on the network it will be highlighted.
              Thank you again

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