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

    Don't show traffic pass through /var/log/filter.log

    Scheduled Pinned Locked Moved Firewalling
    14 Posts 2 Posters 533 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.
    • M Offline
      monchito
      last edited by monchito

      Hi all,

      With : PfSense 2.4.4-RELEASE-p2, FreeBSD 11.2-RELEASE-p6

      I get no get traffic from determinate sub-net, and not showing traffic in: /var/log/filter.log (pass or block), neither if i capture the packet traffic (PCAP)

      But i see traffic with tcpdump:

      tcpdump -ni em0 src x.x.x.x | grep 8.8.8.8
      tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
      listening on em0, link-type EN10MB (Ethernet), capture size 262144 bytes
      16:12:07.744874 IP x.x.x.x > 8.8.8.8: ICMP echo request, id 55561, seq 0, length 64
      16:12:08.746726 IP x.x.x.x > 8.8.8.8: ICMP echo request, id 55561, seq 1, length 64

      I already checked the routes, are right.

      So, the traffic can't get through this firewall, and i don't no why?!

      Any ideas , how troubleshoot what is going on?

      Thanks !

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

        You mean you have a downstream network? Why are you hiding rfc1918 address?

        the packet capture is the same as tcpdump - so you saying that is not working while tcpdump does makes no sense at all.

        Unless your listening the wrong interface, or on a vlan or however yours setup need to be in promiscuous mode...

        Some more details of your setup would be helpful in helping you.

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

        1 Reply Last reply Reply Quote 0
        • M Offline
          monchito
          last edited by

          Hi johnpoz, thanks for reply

          The source of the traffic is behind an MPLS from a service provider. (i think is that you refer about downstream network)

          I don't understand neither about tcpdump and packet capture, maybe packet capture is slow, i don't know.

          I verify the interface, it's listening the right one.

          What another information will be useful ?

          Thanks for help

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

            Well the packet capture used via the gui, is just using tcpdump.. So doesn't make any sense that you would see traffic in tcpdump doing via cli/command line but not seen in packet capture gui.

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

            1 Reply Last reply Reply Quote 0
            • M Offline
              monchito
              last edited by

              Ok, thanks.

              There is a command to show the packet that are drop, and not passing through the rules?

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

                Huh? packet capture will show you everything being seen on the interface that meets your criteria set in the capture, IP, port, protocol, etc. Has nothing to do with if rules would pass the traffic or not.

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

                1 Reply Last reply Reply Quote 0
                • M Offline
                  monchito
                  last edited by

                  johnpoz,

                  In GUI (Diagnostics -> Packet Capture) if i capture with filter : 10.13.0.20 , 8.8.8.8 . No output:
                  Selección_105.jpg image url)

                  But in Cli : tcpdump -ni em0 host 10.13.0.20 get output
                  Selección_106.jpg

                  But independently of this, and this what i don't understand : **the packet 10.13.0.20 -> 8.8.8.8 : icmp no should match with the "deny" default rule ??? (at least) or "pass" if it match with another rule **

                  Thanks

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

                    What are you settings on the gui capture?

                    What is this interface em0? Do you have vlans setup on this interface?

                    Does the gui capture anything?

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

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      monchito
                      last edited by monchito

                      What are you settings on the gui capture?
                      Selección_107.jpg

                      What is this interface em0? Do you have vlans setup on this interface?

                      em0 (internal), no vlans

                      Does the gui capture anything?

                      yes, capture something similar, for example :

                      fae8ca4c-4a60-4e3e-9ab8-ba1087ccd21a-imagen.png

                      Thanks

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        monchito
                        last edited by

                        @johnpoz,i realize that in gui put the wrong interface:

                        9cdcb5f4-c76d-4c1d-b72d-c1fe84d7c781-imagen.png

                        Now i see on GUI, but still no show "deny" or "pass" traffic on /var/log/filter.log

                        Thanks

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

                          Ok so the traffic is getting there.. And what do you set in logging. By default pass stuff is not logged. If you want passed traffic to be logged you would have enable that.

                          Did you turn off the default deny logging?
                          logoff.png

                          I have it off for example - because I only want to log specific stuff.

                          What are you rules on this interface? Do you have any rules on your floating tab?

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

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            monchito
                            last edited by

                            Yes, firewall blocks logs are enabled

                            6603a976-166f-41c5-b8e1-05f36e2a4652-imagen.png

                            We have a lots of rules (floating and not floating), but for this and for diagnostic propose we have a floating rule:

                            8a0fe47c-03c9-4d26-871a-c5238083efad-imagen.png

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

                              Well that rule is not getting any hits. see the 0/0 - do you have quick enabled on it.

                              Is the traffic passing or not passing? Are you natting that, etc..

                              Nobody can really help you point out what you might have configured wrong when you show little tiny snippets of your setup without seeing the whole picture, etc.

                              Do you have quick set on that rule in floating? Do you have the correct interface selected? What other rules do you have above that in floating, what rules do you have on the actual interface, etc.

                              Is this 10.13.0/24 network downstream network? Or is that network directly attached to pfsense? If its downstream did you setup pfsense to nat it? Does pfsense know how to get to it via some other gateway? It could be just sending it out your wan without natting it, or not knowing how to send the traffic back even if there is an answer to it, etc.

                              I take it the actual problem is this 10.13.0.20 is trying to ping 8.8.8.8 and you get no answer? If its a downstream network and your not natting it, then no 10.13.0.20 wouldn't ever get to 8.8.8.8, even if you allowed it.. There are many pieces to this puzzle that are missing - for use to help you figure out what the actual problem is.

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

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                monchito
                                last edited by

                                On these policy:

                                2c192778-e862-4407-aabb-16ee7ee3770e-imagen.png

                                On "0/0 B" :

                                037d0f15-f784-49b6-a181-0f33deeef610-imagen.png
                                That's weird, i never use it

                                Yes, the interface on the policy is correct

                                Is this 10.13.0/24 network downstream network? Yes , there are hops to an MPLS, no directly attached, no NAT used by us (asking to ISP ), and pfsense cant reach to it.

                                df14c6e2-3ad0-4f40-af72-626a18810182-imagen.png

                                From 10.13.0.20 -> to 8.8.8.8

                                eb0363d9-43c0-4776-9177-56bb21943b71-imagen.png

                                I take it the actual problem is this 10.13.0.20 is trying to ping 8.8.8.8 and you get no answer?
                                10.13.0.20 no reach 8.8.8.8 because its cut in pfsense

                                Sorry me english and if i'm not clear in something

                                Thanks

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