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

Rule "Block private networks", Logging?

Scheduled Pinned Locked Moved Firewalling
4 Posts 2 Posters 1.8k 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.
  • -
    -flo- 0
    last edited by Apr 27, 2014, 9:18 AM

    I have an Interface WAN_IPTV on the WAN side which has "block private networks" activated. In the firewall rules I can see a corresponding rule.

    My modem (Allnet All0333CJ) seems to send service discovery requests to my pfSense: I see blocked packets in the firewall log like this:

    Apr 27 11:08:53	 WAN_IPTV	      172.16.1.254:2048	      239.255.255.250:1900
    

    172.16.1.254 is the address of the modem. My understanding is that because this an address from an RFC1918 network this gets blocked by the above rule.

    So far so good.

    However I get 22 log entries every 4 minutes which I would like to avoid. The above mentioned rule does not have logging enabled.

    So where do these log entries come from and how can I avoid these?

    -flo-

    1 Reply Last reply Reply Quote 0
    • V
      viragomann
      last edited by Apr 27, 2014, 7:14 PM

      I guess it's blocked by default rule (no user rule applicable) and you have activated logging packet blocked by default rule:
      Status: System logs: Settings: "Log packets blocked by the default rule"
      Look at this.

      It makes sense to activate "Filter descriptions" to be shown as column in firewall logs on Log settings tab, so you can see the applied rule.

      As I want to see packet blocked by default rule for present I have set up a floating rule to block this multicasts without logging and name it "bothersome multicasts".  ;D

      1 Reply Last reply Reply Quote 0
      • -
        -flo- 0
        last edited by Apr 28, 2014, 4:40 AM

        Thank you viragoman! That works. I was not aware of the description column. I was always missing something like this.

        -flo-

        1 Reply Last reply Reply Quote 0
        • -
          -flo- 0
          last edited by Apr 30, 2014, 1:08 PM

          Just for the archives: After a while these entries appeared in the firewall log again. Apparently the modem does not create this traffic as regularly as it appeared at first.

          So creating a floating firewall rule actually did not solve the problem. Why not?

          The reason is quite interesting: I have 2 VLANs on the WAN side: WAN (VLAN7) and WAN_IPTV (VLAN8). The traffic from the modem did not come with VLAN tags however. This means that the traffic did not actually come in on one of the defined interfaces. pfSense blocked the traffic not because of the new rule but because of the default block rule. In the log it appeared as if the traffic came in on that interface.

          Whether or not this is a bug in pfSense is probably a matter of point of view. It surely is misleading.

          The solution was simple: I created an interface MODEM on the WAN nic just to be able to create a floating firewall rule for it. That did the job.

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received