Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    URL rewriting

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

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

          1 Reply Last reply
          Reply Quote 0
          • C
            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
              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

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
              Privacy Policy · Cookie Policy