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

    URL rewriting

    Scheduled Pinned Locked Moved Routing and Multi WAN
    5 Posts 3 Posters 5.9k 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.
    • B Offline
      BigRonnyV
      last edited by

      Hi,

      I'm totally an nb, and I'm trying out PFSense to see if it can support our environement.
      Installing was as easy as could be, but then the 'phun' started.
      Easy to connect to the internet, but I want to do a url rewriting/redirection from
      outside coming requests to different servers.

      I'm running a ESXi enverinoment with 6 servers which has to be served via PFsense for the right incoming url.

      So 123.mydomain.com has to be redirected to server 5
      1243.mydomain.com has to be redirected to server 3 etc…

      Wandering around for the whole day to figure it out  :-[

      Is there anyone out there who can point/help me out out how to get this done?

      Much regards,

      Ronald

      1 Reply Last reply Reply Quote 0
      • C Offline
        Cloverleaf
        last edited by

        PfSense is not really HTTP "aware", so you can't use it to do rewriting of URLs or redirecting based on request headers.  If the load balancer is revamped in 2.0, then you might be able to do so then, if they go with a layer 7 balancer.  If you have multiple IPs that you can use on the WAN, then you can create Port Redirections from these IPs (that you "give" to pfSense by adding them as Virtual IPs) to ports on the ESX servers, and then just map 123.mydomain.com to the proper frontend IP in DNS.

        1 Reply Last reply Reply Quote 0
        • B Offline
          BigRonnyV
          last edited by

          So is there a kind off plugin wich can do the trick?

          1 Reply Last reply Reply Quote 0
          • C Offline
            Cloverleaf
            last edited by

            Not that I'm aware of.  The theory is that 2.0 will support relayd, which should be able to do what you want:

            http://b.blarg.org/2008/09/06/server-load-balancing-in-pfsense-13/

            1 Reply Last reply Reply Quote 0
            • I Offline
              Itwerx
              last edited by

              Could also set up an extra VM with Apache configured as a relay.  Not the "cleanest" solution but it's not bad and the added latency is minimal.

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