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

    Having trouble routing between interfaces

    Scheduled Pinned Locked Moved NAT
    8 Posts 2 Posters 1.6k 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.
    • O
      orientalsniper
      last edited by

      Hello all, this is my current setup:

      Wan1 ->                            pfSense
      Wan2 ->                            pfSense
      Lan (10.0.0.1/24)->            pfSense
      Loopback (10.1.0.1/30) ->  pfSense

      Computers after both Lan and Loopback are not able to communicate with each other (no ping).

      I have a firewall rule in Lan with a gateway setup for policy based routing and according to this: https://forum.pfsense.org/index.php?topic=73437.msg401069#msg401069 that's the reason they can't communicate with eath other. I need this firewall rule, how can I perform a manual route between these 2 subnets?

      1 Reply Last reply Reply Quote 0
      • O
        orientalsniper
        last edited by

        Update: Computer in Lan can ping 10.1.0.1 (though it seems to be pinging over the internet and not locally 30-50ms)  and 10.0.0.1 but computer in Loopback can only ping 10.1.0.1 but not 10.0.0.1.

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

          Well you sure are not going to be using the gateway when talking to your other segment.  So put a rule above it that allows whatever traffic you want to that other segment.

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

          1 Reply Last reply Reply Quote 0
          • O
            orientalsniper
            last edited by

            Sorry, I'm not following. Wouldn't adding another rule on top of the "policy based routing" voids it (policy based routing)?

            10.0.0.50-10.0.0.90 range has WAN2 gateway assigned with policy based routing.
            Red arrows means no traffic. Yellow arrows are working traffic.
            10.0.0.98-10.0.0.116 pings 10.1.0.2 over the Internet.

            External traffic goes as:

            Services in Windows: 195.x.x.98 (same as pfSense public IP)
            10.0.0.98-10.0.0.116: Static IP's assigned with virtual IP of WAN1
            10.0.0.50-10.0.0.90: Single dynamic IP from WAN2

            Here's attached diagram (login to view)

            Untitled.png
            Untitled.png_thumb

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

              No it wouldn't void because it would only be to your local segment.

              So you have source your lan to your loopback segment no gateway set whatever you want to allow any any, port 80m, whatever pass

              Then you have your rule that says use gateway group, or whatever wan you want to send specific traffic.

              Unless I am dest to the loopback segment, rule doesn't fire and I hit next rule until one fires or I get to default deny.

              You have to setup a rule that allows traffic to your other segments before you setup a rule to go out some specific wan or group gateway, etc.

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

              1 Reply Last reply Reply Quote 0
              • O
                orientalsniper
                last edited by

                So, let me see if I got this straight, all I have to is I create a firewall rule for whatever traffic/port (ex. SAMBA file sharing, IMCP) assigned to gateway of WAN1 before the rule of policy based routing (WAN2). I thought I had to do a rule for outbound NAT for WAN1/WAN2/LAN/Loopback.

                Damn, that was dumb then haha, let me set it up and report back.

                1 Reply Last reply Reply Quote 0
                • O
                  orientalsniper
                  last edited by

                  It works :) but why is traffic going over the Internet?  :o

                  Average of 30-53ms of ping to both 10.1.0.1 and 10.1.0.2 (Loopback subnet).

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

                    Why are you putting wan1??  Do you use wan one to get to your other segment?  Then why are you putting a gateway?  Leave the gateway blank so pfsense can use its own routing table to get there.  Look in you routing table.. Pfsense has an interface in that network - so it knows how to get there.

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

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