Navigation

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

    Outside to Inside dynamic redirection - reverse proxy?

    NAT
    2
    2
    1032
    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
      rkelleyrtp last edited by

      Greetings all,

      I am trying to get something like reverse proxy setup on my pfSense 2.1 box and need some assistance.  We have a bunch of wordpress servers behind our firewall using a single external IP Address.  The servers behind the firewall have their own DNS names (as in: the internal DNS server can resolve each of the wordpress sites via internal IP address).  I just want pfSense to forward inbound port:80 requests to the appropriate internal server based on the corresponding DNS hostname.  For example:

      URL http://www-test1.com:80 –>  <wan-ip><--> www-test1.com (Internal IP 172.16.150.11)
      URL http://www-test2.com:80 -->  <wan-ip><--> www-test2.com (Internal IP 172.16.150.12)
      URL http://www-test3.com:80 -->  <wan-ip><--> www-test3.com (Internal IP 172.16.150.13)

      I believe this is simply known as transparent reverse proxy, and I have spent days getting nginx setup as the reverse proxy.  However, while the initial web page works, some of the CSS elements are not pushed to the back end server.  Thus, I was hoping there is something very simple on the pfSense firewall to just perform outside-to-inside NAT based upon an internal DNS server.

      I don't need any sort of caching, I just need the external requests to map into the internal DNS hostname.

      Any help?</wan-ip></wan-ip></wan-ip>

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

        Look on the packages listing. Squid3 can do reverse proxy, there is modsecurity package for reverse proxy.  I believe HAProxy can do it as well.  Varnish maybe, 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 23.01 | Lab VMs CE 2.6, 2.7

        1 Reply Last reply Reply Quote 0
        • First post
          Last post