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

    PfSense blocks traffic coming from SubnetA to SubnetB

    Scheduled Pinned Locked Moved Firewalling
    25 Posts 4 Posters 1.0k 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.
    • Y
      yquirion @viragomann
      last edited by

      Hi @viragomann,

      I've made an error. Here are the new result from a fresh test

      From SiteA - Interface VLAN2
      a486ca40-fa02-4077-86f0-a8db66da8133-image.png

      From SiteB - Interface SITEB
      55d953ad-ac96-4be0-a9b0-6c1daa95d3ff-image.png

      So we can see that nothing from Interface SITEB in going to the WAN Interface.

      Here are the rules on the WAN interface:
      e777752e-1215-4dd5-b35d-1894ac97b209-image.png

      And the rules on the SITEB Interface:
      35778608-0052-4d39-adb4-36a01105f4ad-image.png

      Here are the interface configuration:
      d5d76d22-9fc4-4d2a-91f8-64512e5338c2-image.png

      All those 3 interfaces are physical interfaces on my PfSense router.

      Outbound rules:
      d6a7a064-3f68-4f20-9eed-5b2e79b129f1-image.png

      I really don't understand why nothing is going to the WAN interface from SITEB interface.

      Thanks again!

      Yanick

      V 1 Reply Last reply Reply Quote 0
      • Y
        yquirion @viragomann
        last edited by

        Hi @viragomann,

        I found something.

        Just after sending the reply, I did change this:

        476713cd-6760-452b-a8af-32f740c8092b-image.png

        Those two options were selected on the WAN interface.

        After that I see I could ping 8.8.8.8, but nothing else... Then if I stop the ping to 8.8.8.8, it won't restarts until I play again with those parameter (re-enable them).

        I reset all states; no luck, I rebooted the pfsense, same thing...

        At this moment I have a running ping from SITEB to 8.8.8.8. It works. I see the corresponding traffic on the igb0 (WAN) interface using tcpdump.

        Now, if I stop that ping, then wait for the states being cleared, then restart it, it is no longer working.

        Maybe I am running into a bug with pfsense, but all of this has no sense at all.

        Thanks
        Yanick

        1 Reply Last reply Reply Quote 0
        • V
          viragomann @yquirion
          last edited by

          @yquirion
          WTF! Just noticed, that you have "static port" checked in the outbound NAT rule.
          It wasn't checked before!

          2d51888f-98e1-49be-85c7-e48e7d96cfe1-image.png

          Why did you change things, you're not advised to change? You needed just to edit the rule and change the interface to WAN.
          This makes it hard to help you with your issues.

          Those two options were selected on the WAN interface.

          At A WAN this setting should be checked. At B not, mentioned in my very first post.
          At A VLAN2 it has to be unchecked. But this might have been the case before, otherwise you were not able to access A from B at all.

          Y 2 Replies Last reply Reply Quote 0
          • Y
            yquirion @viragomann
            last edited by yquirion

            Hi @viragomann,

            That is very odd. I never notice it. Sorry about that. However, I just look at it and since that post, it has been corrected.

            16c74789-4cf5-4a76-872c-ea038bb98432-image.png

            Regarding the 2 options, I don't have those on siteB because siteB is using a Mikrotik router. From the pfsense router on sitea, those options are disabled on all interface (was only enable on the WAN before).

            I'm not home for the weekend so I cannot make any other test on this.. But that os very strange that, while pfsense is applying the change of the Block private networks and loopback addresses, for a second the ping will work until I cancel it and the connection is being cleared of the state table...

            Thanks again, and I'm really sorry having made that mistake. I'm just testing stuff between replies!

            Yanick

            1 Reply Last reply Reply Quote 0
            • Y
              yquirion @viragomann
              last edited by

              Hi @viragomann,

              I found it!

              It was because of a miss configuration into my client OpenVPN connection.

              Here is a post that explain what was my problem:

              https://www.reddit.com/r/PFSENSE/comments/i125ig/default_route_now_set_to_vpn_client_instead_of/

              I was looking into this because of this:

              # route get 1.1.1.1
                 route to: one.one.one.one
              destination: default
                     mask: 128.0.0.0
                  gateway: 10.4.112.1
                      fib: 0
                interface: ovpnc1
                    flags: <UP,GATEWAY,DONE,STATIC>
               recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire
                     0         0         0         0      1500         1         0 
              

              That gateway of 10.4.112.1 was the gateway of my OpenVPN client connection. When I stop the service for that VPN connection, that was the result of the same command:

              /root: route get 8.8.8.8
                 route to: dns.google
              destination: default
                     mask: default
                  gateway: modemcable001.40-53-24.mc.videotron.ca
                      fib: 0
                interface: igb0
                    flags: <UP,GATEWAY,DONE,STATIC>
               recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire
                     0         0         0         0      1500         1         0 
              

              So I made search on why the OpenVPN client was adding that route to the routing table:

              0.0.0.0/1	<<VPN Interface Gateway IP>>
              

              And I found the post tjhat somve my issue.

              I would like to thank you very much as well as @skenigma for your time helping me solving the issue.

              Best Regards,
              Yanick

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