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

    Redirect certain url/domain over certain WAN

    Scheduled Pinned Locked Moved Routing and Multi WAN
    6 Posts 4 Posters 4.5k 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.
    • R
      rexis
      last edited by

      We can now redirect to different gateway based on source and destination, is it possible for me to redirect to gateway based on url/domain?

      For example:

      WAN1 - fast internet connection
      WAN2 - slow internet connection

      High bandwidth usage (eg, youtube.com, dropbox.com) go out through WAN1
      Low bandwidth usage (eg, gmail.com, hotmail.com) go out using WAN2

      How is it possible? I have spent sometime on the L7 filter but no findings yet.

      Thanks

      nix noob

      1 Reply Last reply Reply Quote 0
      • H
        heper
        last edited by

        aliases

        1 Reply Last reply Reply Quote 0
        • M
          miodzicho
          last edited by

          @heper:

          aliases

          A little more details please ? I'm also interested in solution but I want to redirect some addresses (urls) to another gateway through VPN tunnel. No idea so far how to achieve this.

          2.4.4-RELEASE (amd64)
          built on Thu Sep 20 09:03:12 EDT 2018
          FreeBSD 11.2-RELEASE-p3
          QOTOM Q355G4 - i5 8G RAM 128G SSD

          1 Reply Last reply Reply Quote 0
          • D
            dhatz
            last edited by

            If you want to use it for popular sites (youtube etc), any solution will probably need to involve squid …

            Aliases probably won't do it, even if pfsense someday implements a feature such as the one I suggested a year ago  "Maintain IP range tables for popular Internet sites" http://redmine.pfsense.org/issues/1901

            1 Reply Last reply Reply Quote 0
            • R
              rexis
              last edited by

              Billion thanks for the feedback.

              @dhatz:

              If you want to use it for popular sites (youtube etc), any solution will probably need to involve squid …

              Aliases probably won't do it, even if pfsense someday implements a feature such as the one I suggested a year ago  "Maintain IP range tables for popular Internet sites" http://redmine.pfsense.org/issues/1901

              I don't mind involving squid, how would that work? Is it at the WebGUI or is it some squid customized configuration?

              Why would the "Maintain IP range tables" failed? Say if I run "dig www.youtube.com" everyday and update the Allias ip-list daily, would that work? I can only imagine that the filter would left out any new but not updated ip, and, a bit tedious to go thru 10+ firewalls daily.

              nix noob

              1 Reply Last reply Reply Quote 0
              • R
                rexis
                last edited by

                I've decided to try out Aliases, IP is obtained by dig and updated daily. I did refer to squid's access.log for all(most) the url associated to youtube.com for eg.

                Am using Aliases Hosts because I would like to keep the record updated locally(like config.xml) as I find it troublesome to set up a webserver just to host the URL table text file. Ip addresses are inserted into config.xml directly.

                It would be convenience if I am able to refer to a local text file(so no need to insert thousands of ip addresses into that little config.xml)

                Thanks for the attention. :)

                nix noob

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