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

Nat rule based on url request?

Scheduled Pinned Locked Moved NAT
5 Posts 2 Posters 4.8k 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.
  • R
    Rampage
    last edited by Jan 8, 2010, 11:10 AM

    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
    • G
      GruensFroeschli
      last edited by Jan 8, 2010, 12:05 PM

      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).

      We do what we must, because we can.

      Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

      1 Reply Last reply Reply Quote 0
      • R
        Rampage
        last edited by Jan 8, 2010, 12:42 PM

        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
        • G
          GruensFroeschli
          last edited by Jan 8, 2010, 12:46 PM

          no.

          We do what we must, because we can.

          Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

          1 Reply Last reply Reply Quote 0
          • R
            Rampage
            last edited by Jan 9, 2010, 11:50 AM

            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
            5 out of 5
            • First post
              5/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received