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

    Routing issue or ?

    Scheduled Pinned Locked Moved Routing and Multi WAN
    19 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @ls112
      last edited by

      Maybe you missed my edit.. Could you draw up this network.. Happy to help but really need to understand what your using as gateway for client, that sit on what IP range, etc. And what is actual gateway to get to internet, etc.

      Pointing a client to 10.0.3.x as its gatway, which then uses 10.0.5.x as its gateway is going to be asymmetrical for sure when they all sit on the same /20..

      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

      L 1 Reply Last reply Reply Quote 0
      • L
        ls112 @johnpoz
        last edited by

        @johnpoz said in Routing issue or ?:

        Maybe you missed my edit.. Could you draw up this network.. Happy to help but really need to understand what your using as gateway for client, that sit on what IP range, etc. And what is actual gateway to get to internet, etc.

        Pointing a client to 10.0.3.x as its gatway, which then uses 10.0.5.x as its gateway is going to be asymmetrical for sure when they all sit on the same /20..

        Interfaces:
        WAN igb0 is a static IP 74.x.x.8 from ISP that uses the ISP GW 74.x.x.6
        LAN igb1 is set to 10.0.5.101 /20, gateway set to None

        DHCP server for LAN set to:
        Subnet: 10.0.0.0
        Mask: 255.255.240.0
        Range set from 10.0.12.1 to 10.0.15.254
        Gateway: 10.0.3.50 (load box)
        We have a few static IPs mapped from 10.0.3.1 to 10.0.5.252
        DNS left blank so should be using 50.18.216.174 and 50.18.216.175 that are set under System > General setup

        The Loadbox uses 10.0.5.101 as its gateway and default DNS server. Each CacheBox uses the Loadbox as it's gateway and 10.0.5.101 as DNS. Cachebox 1 at 192.168.2.2 uses 192.168.2.1 as gateway. Cachebox 2 at 192.168.3.2 uses 192.168.3.1 as gateway.

        Hope this isn't too confusing!

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

          @ls112 said in Routing issue or ?:

          DNS left blank so should be using 50.18.216.174 and 50.18.216.175 that are set under System > General setup

          Not how it works.. by default if you leave dns blank in dhcpd, then it would point to pfsense IP for dns.. Unless you are not running forwarder or resolver on pfsense.

          But you clearly have asymmetrical issue here..

          asym.png

          This is never going to be a good thing..

          A drawing would make it clear why its asymmetrical..

          Where exactly are these 192.168 networks? These cache boxes are connected how to your network.. Where exactly are they - they are networks behind 3.50? 3.50 routes.. or is just some multihomed thing? If its routing and not natting - that is fine and can be setup. But anything in your /20 network should be using 5.101 as its gateway..

          When you have a downstream router, that is not natting - it needs to be connected to the upstream router via a transit network.. Or your going to have asymmetrical traffic flow, unless you do host routing on on each device that sits in the transit network.

          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

          L 2 Replies Last reply Reply Quote 0
          • L
            ls112 @johnpoz
            last edited by

            @johnpoz

            Sorry, a lot of this is starting to get over my head!

            Okay, I do have the DNS forwarder turned on.

            The cacheboxes are connected to the Loadbox on those networks. The cacheboxes are connected directly to eth2 and eth3 on the Loadbox. LoadBox eth0 just goes to a switch that is fed by the LAN port on pfSense.

            Network settings from the Loadbox --

            lb.png

            balance.png

            balance2.png

            1 Reply Last reply Reply Quote 0
            • L
              ls112 @johnpoz
              last edited by

              @johnpoz Screen Shot 2021-01-26 at 9.41.36 AM.png

              L 1 Reply Last reply Reply Quote 0
              • L
                ls112 @ls112
                last edited by

                Hopefully my crude map has enough info about our network setup. I'm not entirely sure I follow why having pfSense at 10.0.5.101 and the Loadbox at 10.0.3.50 is an issue. Does pfSense do routing a little differently than Ubiquiti EdgeRouters do? We have the same IPs when we're running the EdgeRouter - Edge at 10.0.5.101 and Loadbox at 10.0.3.50 - and everything works.

                It would sure help if I understood more about how the Loadbox/Cachebox setup actually worked. At our other location where the network only has a single Cachebox the Cachebox acts as a gateway for clients to cache web traffic, e.g.:
                Server Running
                Deployment Mode Gateway Interception (e.g. PBR)

                But with this network with the 2 Cacheboxes running behind the Loadbox it looks like the Cacheboxes are basically just a proxy server for clients:
                Proxy 192.168.2.2:800
                Server Running
                Deployment Mode Advanced

                Proxy 192.168.3.2:800
                Server Running
                Deployment Mode Advanced

                Would I need to open port 800 somewhere in pfSense?

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

                  Does this loadbox nat? Its a proxy?? 10.0.3.50 is your GW, so if say 10.0.12.56 wanted to go to say 8.8.8.8?

                  If not then yeah that is asymetrical..

                  answer.png

                  If the loadbox is a downstream router - then it should be connected to your pfsense via a transit network (no hosts on it).. Or you run into the problem I just showed where you send a SYN via red arrows, and your SYN,ACK comes back via green.

                  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

                  L 1 Reply Last reply Reply Quote 0
                  • L
                    ls112 @johnpoz
                    last edited by

                    @johnpoz Thanks. I think I understand what you're getting at now. I've reached out to appliansys support to help me understand what's actually going on with the Loadbox and Caches. I'd be just guessing right now but it doesn't seem like the Loadbox does much but pass traffic on to one or the other Cachebox. I don't see many network options on it, no NAT options.

                    Looks like the Cacheboxes do some SNATting --
                    NAT IP Address:192.168.2.2, Source Networks 10.0.0.0/20
                    NAT IP Address:192.168.3.2, Source Networks 10.0.0.0/20

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

                      So what happens when user on say this 10.0.3.25 box wants to load say www.google.com?

                      It pulls data off your cache boxes?

                      Is you loadbox only used for access local stuff (your applications) What is the whole function of this loadbox and cachebox?

                      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

                      L 1 Reply Last reply Reply Quote 0
                      • L
                        ls112 @johnpoz
                        last edited by

                        @johnpoz Yes, if it's cached the client would get the data for www.google.com from one of the Cacheboxes. We currently just cache HTTP content on the Cacheboxes. The LoadBox is just a load balancer for both of the Cacheboxes. We typically just use a single Cachebox on our networks but a situation come up where we ended up with a secondary spare Cachebox. Rather than sitting around not being used we purchased the LoadBox so we could use the two Cacheboxes together.

                        Would it be better to run the LoadBox/Cacheboxes off of another port on the pFSense? Like so -
                        pf.png

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

                          @ls112 said in Routing issue or ?:

                          We currently just cache HTTP content on the Cacheboxes.

                          Does this even make any sense today? I mean what amount of the net is in the clear?

                          So all of your clients point to your loadbox as a explicit proxy, which would be better than using it as the gateway..

                          I would be curious to what is your actual cache hit rate is.. How many clients - clients all do their own caching, etc.

                          Here is some old data (2019) that points https to being 90 to 95 of all web traffic.. So what exactly are you caching?

                          https://meterpreter.org/https-encryption-traffic/

                          I would think its higher now to be honest.. I can not see how such setup makes any sense - just from the electric cost of running the boxes ;) even.

                          Here is more info
                          https://transparencyreport.google.com/https/overview?hl=en&time_os_region=chrome-usage:1;series:time;groupby:os&lu=load_os_region&load_os_region=chrome-usage:1;series:page-load;groupby:os

                          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

                          L 1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User
                            last edited by

                            First be sure you have outbound NAT Rules for the 192.168.2.0/24 and 192.168.3.0/24 networks in place as well as the Firewall Rules in the LAN Tab, which permits the traffic towards the internet. I think your loadbox is acting as a router without any NAT.

                            Second create a Firewall Rule in Your LAN Tab, pretty much at the top

                            Source: LAN NET
                            Destionation: 192.168.2.2/32 and 192.168.3.2/32
                            tcp destination port 800

                            Advanced Options
                            State type: None

                            1 Reply Last reply Reply Quote 0
                            • L
                              ls112 @johnpoz
                              last edited by

                              @johnpoz I would agree. The Cacheboxes are capable of doing HTTPS caching we just haven't gotten around to enabling that yet. Summer project :)

                              It still helps some right now:
                              Screen Shot 2021-01-27 at 12.14.20 PM.png

                              L 1 Reply Last reply Reply Quote 0
                              • L
                                ls112 @ls112
                                last edited by

                                Screen Shot 2021-02-12 at 12.06.47 PM.png

                                Adding floating rules to allow HTTP, HTTPS, ICMP, and NTP inbound for LAN fixed the issues. No more errors on the Cacheboxes and websites load like they should.

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