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

Parse HTTP host headers for single IP to different internal IPs

Scheduled Pinned Locked Moved NAT
4 Posts 3 Posters 1.7k 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.
  • S
    stevemitchell
    last edited by Mar 31, 2012, 4:27 PM

    Hi folks,
    I am trying to determine if pfsense supports this particular use case:

    1. Single WAN IP
    2. Two internal servers in a DMZ - one Windows, one Linux
    3. Two unique public DNS names - for this illustration, how about www.example.com, www.company.com

    Can pfsense parse the HTTP URL and send www.example.com to the Windows system, and www.company.com to the Linux system?  I only have one external IP in this particular configuration and can't get another.

    I looked into the Load Balancing stuff (inbound, not outbound WAN links) but it doesn't seem to have any host header parsing, just the ability to share across multiple servers.

    Any suggestions appreciated.

    1 Reply Last reply Reply Quote 0
    • C
      Cry Havok
      last edited by Mar 31, 2012, 8:17 PM

      Yes, you're looking for a reverse proxy, like HA Proxy or even Squid.

      1 Reply Last reply Reply Quote 0
      • M
        marcelloc
        last edited by Mar 31, 2012, 10:06 PM

        Also varnish and apache+mod security.

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • S
          stevemitchell
          last edited by Mar 31, 2012, 10:08 PM

          Hmmm I looked at the HAproxy package a while ago for pfsense but saw no way to configure it as a reverse proxy with a single front end and multiple back ends based on a URI, at least in the pfsense UI.

          Is there a way to change the configuration on the CLI or somewhere else I'm missing to do this?

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received