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

Url based port forward

Scheduled Pinned Locked Moved Firewalling
10 Posts 7 Posters 8.5k 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.
  • M
    Mr.Fw
    last edited by Mar 5, 2010, 1:41 PM

    Hi Everyone,

    I have 2 web servers that connected to same network.
    I need that when someone from the outside browse to a.domain.com will be forwarded to web server 1
    and when someone browse to b.domain.com will be forwarded to web server 2

    both of them using 2 different internal IPs
    and the port for both servers should be 80.

    is it possible to do that with pfsense?

    Thanks! :)

    Mr.Fw

    1 Reply Last reply Reply Quote 0
    • G
      GruensFroeschli
      last edited by Mar 6, 2010, 12:13 PM Mar 5, 2010, 1:57 PM

      No this is not possible with pfSense. (however i'm not sure if one of the available packages can add this functionality).

      But depending on which webserver you're using you might also be able to set up virtual domains and redirect internally from server to server.

      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
      • M
        Mr.Fw
        last edited by Mar 5, 2010, 2:16 PM

        the problem is that i use 2 different web servers.

        is it not possible to to that somehow with pfsense?
        maybe use some kind of a reverse proxy?

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Mar 5, 2010, 4:28 PM

          I think the HAProxy package can do this, but it still has some rough edges.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • D
            DWAyotte
            last edited by Mar 5, 2010, 10:00 PM

            you should go check out nginx.
            it is about the most simple reverse proxy in existance and it works beautifully.

            all you have to do is forward port 80 to nginx, create route rules based on the domain name to internal servers and done. it can offload any ssl processing as well, it can also reverse proxy folders, so you could have domin.com go to your webserver and domain.com/download go to your fileserver farm, etc etc.
            easiest thing to do is run in in VM like ESXi, takes little to no resources and is fast.

            1 Reply Last reply Reply Quote 0
            • ?
              Guest
              last edited by Mar 6, 2010, 4:21 AM

              This should be solvable without anything fancy.  Each website is on its own unique IP?  Set up DNS and 1:1 NAT.  Problem solved.

              1 Reply Last reply Reply Quote 0
              • M
                Mr.Fw
                last edited by Mar 6, 2010, 4:52 PM

                @submicron:

                This should be solvable without anything fancy.  Each website is on its own unique IP?  Set up DNS and 1:1 NAT.  Problem solved.

                each website has its own unique internal ip,
                but externally they're sharing one WAN ip.

                Thanks  ;)

                1 Reply Last reply Reply Quote 0
                • S
                  sullrich
                  last edited by Mar 6, 2010, 10:57 PM

                  modsecurity package can do this.

                  1 Reply Last reply Reply Quote 0
                  • M
                    Mr.Fw
                    last edited by Mar 22, 2010, 7:22 PM

                    Hi everyone,

                    its been a while..

                    anyway, i've installed the "modsecurity" package and this is what i get:

                    **Forbidden

                    You don't have permission to access /index.php on this server.**

                    nothing else was changed except for the package installation.

                    even after reboot - still the same.

                    please help me,
                    my dmz is offline  ???

                    1 Reply Last reply Reply Quote 0
                    • S
                      Steve Mustafa
                      last edited by Jun 18, 2010, 4:24 PM

                      I've been having pretty much the same damned issue.

                      Its a shame seeing that something like this is not integrated tightly with PFsense as a firewall, that would make PFsense insanely awesome.

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