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

    communication between vlan

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    30 Posts 3 Posters 919 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Hmm, are you 100% sure that's the same firewall? There is almost no way to have it not open a state for that ping whilst also opening a state for the monitoring pings. You would have to set a rule to pass pings without opening a state. Which is possible but pretty advanced!

      Unless that state view is filtered?

      You should see like:

      [24.08-DEVELOPMENT][admin@6100.stevew.lan]/root: ping 1.1.1.1
      PING 1.1.1.1 (1.1.1.1): 56 data bytes
      64 bytes from 1.1.1.1: icmp_seq=0 ttl=56 time=25.121 ms
      64 bytes from 1.1.1.1: icmp_seq=1 ttl=56 time=5.349 ms
      64 bytes from 1.1.1.1: icmp_seq=2 ttl=56 time=5.644 ms
      64 bytes from 1.1.1.1: icmp_seq=3 ttl=56 time=5.487 ms
      64 bytes from 1.1.1.1: icmp_seq=4 ttl=56 time=6.221 ms
      
      [24.08-DEVELOPMENT][admin@6100.stevew.lan]/root: pfctl -vss | grep -A 1 1.1.1.1:
      ix3 icmp 172.21.16.246:64122 -> 1.1.1.1:8       0:0
         age 00:00:58, expires in 00:00:10, 59:59 pkts, 4956:4956 bytes, rule 119, allow-opts
      
      1 Reply Last reply Reply Quote 0
      • N
        Nimizu
        last edited by

        yes I am indeed on the same firewall.

        I tried to do what you just did and I got this result :

        aea0ae34-4232-438d-ae00-e521956be50e-image.png

        fda2dd2e-1d9c-4ad2-ae49-5889d58a6eee-image.png

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Ok, good. You should see that in the gui also if it's not filtered.

          You should also see states for pings between VLANs with the correct filtering.

          If not try that at the command line too.

          1 Reply Last reply Reply Quote 0
          • N
            Nimizu
            last edited by

            yes indeed on the graphical interface I see this clearly but as I showed you this is what is there on the graphical interface and which corresponds to the result that I sent previously.

            116fd297-b3e9-4187-9fe9-2c6792bb8575-image.png

            I receive dozens of packets every second in this state even though no ping is in progress

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

              @Nimizu said in communication between vlan:

              I receive dozens of packets every second in this state even though no ping is in progress

              Again you are not receiving those, that is the monitoring that pfsense does where it send 1 ping every half second. You must of setup your monitoring to use 8.8.8.8 vs your actual default gateway.. You can clearly see the destination is 8.8.8.8 so its the dpinger service doing its monitoring.

              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.7.2, 24.11

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Start a ping from some client on one of the internal VLANs to 1.1.1.1.

                Then look for the states created in the GUI and at the CLI like you just did.

                1 Reply Last reply Reply Quote 0
                • N
                  Nimizu
                  last edited by

                  @johnpoz
                  Yes i uderstand.

                  @stephenw10

                  I just took the test and got this result :

                  310a4e9c-b4c7-4589-bd16-30f9445fb427-image.png

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

                    @Nimizu so something wrong with the gui not showing the states.. But something odd.. is looks like that output shows ALL for the interface?

                    Which maybe explains why gui not showing them???

                    interface.jpg

                    Notice mine shows igb0 and igb1 my lan and wan interfaces.. Not sure why your output shows all vs some specific interface.

                    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.7.2, 24.11

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by stephenw10

                      Because 24.03 switched (back) to interface bound states as default. In 2.7.2 and 23.09 states are floating on 'all' interfaces. So that looks correct.

                      You should see those states in the GUI if you filter that by 1.1.1.1 also.

                      That traffic is passing through the firewall and should be blockable.

                      1 Reply Last reply Reply Quote 0
                      • N
                        Nimizu
                        last edited by Nimizu

                        let's go. I finally see on the GUI.

                        21562dda-f5d8-48c0-a7e0-d7396d1f2f03-image.png

                        I now tried to ping a client that is in another vlan and I got this result:

                        0e959d34-7b28-4224-a38b-7d5f6d3a5260-image.png

                        So I tried to make the blocking rules and when I do the following rule this blocks the ping :

                        9e32d05e-7152-49cd-953d-e0944125b0f2-image.png

                        thank you very much for your help but I don't understand everything because I just reactivated the rules that I had already made and now it works and before it didn't work.

                        But the importance and that now it works. THANKS

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

                          @Nimizu think we went down a deep rabbit whole there on the states not being in the gui.. You were filtering?

                          Once a state is created the state allows, so if you test something and then try to block it - you have to make sure you either kill that state or wait for it to timeout or close on its own. Before your rule will work.

                          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.7.2, 24.11

                          1 Reply Last reply Reply Quote 0
                          • stephenw10S
                            stephenw10 Netgate Administrator
                            last edited by

                            Mmm, I'm not sure what happened there. It seems like either the traffic was bypassing the firewall entirely and now isn't for some reason. Or we were just not looking correctly.

                            1 Reply Last reply Reply Quote 0
                            • N
                              Nimizu
                              last edited by

                              @johnpoz @stephenw10

                              I didn't put any filter or just icmp and I didn't see anything but the end result is that it works. I'm going to test on other firewalls to see if I encounter the same problem.

                              But it works, thank you.

                              1 Reply Last reply Reply Quote 0
                              • stephenw10S
                                stephenw10 Netgate Administrator
                                last edited by

                                Hmm, something must have changed. If nothing changed in the firewall/switch it must have been in a client somehow.

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