Navigation

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

    Nat rule based on url request?

    NAT
    2
    5
    4291
    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
      Rampage last edited by

      Hello everyone, i hope this is the correct section, even if i don't know if this can be done, not only with pfsense but at all :)

      here is the scenario.

      1 public static IP address.
      2 domains pointing to that ip address (www.pippo.com www.pluto.com)
      1 pfsense having this ip address configured on the WAN interface.
      2 phisical webservers running apache and IIS connected to a LAN interface
      each webserver has its own private ip address (192.168.1.1 192.168.1.2)

      both servers are listening on port 80, but this is not a big issue to change the listening port for the webserver.

      i would like pfsense to:
      if the incoming request is for www.pippo.com -> nat the connection to 192.168.1.1
      if the incoming request is for www.pluto.com -> nat the connection to 192.168.1.2

      is it possible to do such a thing? if yes, can anyone explain me how?

      thnx a lot :)

      1 Reply Last reply Reply Quote 0
      • GruensFroeschli
        GruensFroeschli last edited by

        No this is not possible.
        Search the forum for "virtual host".
        There are various possibilities how you can do something like that on the server itself (redirect a connection to another server based on the URL).

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

          it can't be done directly with pfsense in anyway? not only nat, i mean combining with other stuff? like squid or anything?

          1 Reply Last reply Reply Quote 0
          • GruensFroeschli
            GruensFroeschli last edited by

            no.

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

              i noticed that Pound (http://www.apsis.ch/pound/index_html) can apparently handle this task for me, do you know if there is a module for pfsense?

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

              Products

              • Platform Overview
              • TNSR
              • pfSense Plus
              • Appliances

              Services

              • Training
              • Professional Services

              Support

              • Subscription Plans
              • Contact Support
              • Product Lifecycle
              • Documentation

              News

              • Media Coverage
              • Press
              • Events

              Resources

              • Blog
              • FAQ
              • Find a Partner
              • Resource Library
              • Security Information

              Company

              • About Us
              • Careers
              • Partners
              • Contact Us
              • Legal
              Our Mission

              We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

              Subscribe to our Newsletter

              Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

              © 2021 Rubicon Communications, LLC | Privacy Policy