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

    Redrects to internal ip ip based on a domain name

    Scheduled Pinned Locked Moved pfSense Packages
    21 Posts 7 Posters 14.6k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      Sorry what your asking, just doesn't work that way.

      Get more than 1 external IP that way you can have your different urls point to different different boxes inside.

      But your example is wrong - there would be no reason for it to be

      1.example.com:33891
      2.example.com:33892

      it would be
      example.com:33891
      example.com:33892

      You are only pointing to one public IP, no reason for different fqdn to point to the same thing.

      I don't care if your users are retarded monkeys on crack!!  If they can not remember example.com:123 vs example.com:456 then get different monkeys.  Or put example.com:123 on a piece of paper.

      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 24.11 | Lab VMs 2.8, 24.11

      1 Reply Last reply Reply Quote 0
      • L
        louis-m
        last edited by

        options are:

        1. open a https port to windows server
        2. use an ssl vpn like adito on an internal server
        3. there are html5 vnc & rdc proxies about but they need to go on an internal server

        but pfsense at this time cannot do this apart from squid etc for http/s and nat or vpn to your rdp's or vnc's

        1 Reply Last reply Reply Quote 0
        • K
          KineticPro
          last edited by

          ok sadly this is what i was expecting and what i told them when i was given this list of instructions on what can and can not be done on this project. at lest now i can send this into them to show the problem currently has no solution. 
          I thank you all for your time here and will present them with there choices on what they want and see what the company want to do.

          once again thank you

          ps if anyone wants to make a package that will read any incoming Domain regardless of ports <even if="" it="" checks="" the="" url="" via="" another="" port="">i would be interested in beta testing it but i do understand it does NOT exist at this time.</even>

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

            " show the problem currently has no solution."

            Not actually true - there is a solution, use ports on the end of the url:123 etc..  Or another solution would be to get more public IPs so you could assign different fqdn and therefore different IPs that you need to get to behind your nat router.

            Your issue is your trying to use 1 public ip with multiple boxes behind it all listening on the same port.

            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 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • E
              extide
              last edited by

              @KineticPro:

              ps if anyone wants to make a package that will read any incoming Domain regardless of ports <even if="" it="" checks="" the="" url="" via="" another="" port="">i would be interested in beta testing it but i do understand it does NOT exist at this time.</even>

              This isnt possible for anything besides HTTP because most services (like RDP) will just resolve the name and connect to the IP and forget about the name. HTTP does the same thing but what makes it different is INSIDE the request it sends the FQDN it was trying to connect to in the first place inside the headers. That is how a web server or reverse proxy can figure out what to send to where. In pure RDP, that header with the FQDN in it simply does not exist.

              1 Reply Last reply Reply Quote 0
              • L
                louis-m
                last edited by

                slightly off topic (as it's not pfsense) but rather a reverse proxy (like i mentioned above), take a look at guacamole.
                it's a clientless html5 vnc & rdp proxy and runs a treat even behind squid.
                http://guac-dev.org/

                1 Reply Last reply Reply Quote 0
                • M
                  Metu69salemi
                  last edited by

                  Sounds great but really fast look viewed, that there is only linux support, am i wrong?

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

                    Yeah you have to run it on a linux OS, but what you access with rdp or vnc could be any OS that supports those.. Windows would be RDP.  Rut it on a VM if don't have any linux boxes around.

                    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 24.11 | Lab VMs 2.8, 24.11

                    1 Reply Last reply Reply Quote 0
                    • L
                      louis-m
                      last edited by

                      there is also thinvnc & thinrdp for windows which are free but an only be used on each client whereas the server (cost) can do the proxy.

                      1 Reply Last reply Reply Quote 0
                      • M
                        Metu69salemi
                        last edited by

                        I have Linux and Windows based machines at home, but i'm somewhat curious how to set this up.
                        Is it, that all connections to 5900 and 3389-3390 is portforwarded to linux machine and after that quacamole direct's it right point based on domain?

                        1 Reply Last reply Reply Quote 0
                        • L
                          louis-m
                          last edited by

                          guac is a proxy (much like squid)
                          you simply point your browser at guac and you are confronted with a logon page. depending on how you have configured the mappings, depends on what you are confronted with.
                          to point your browser at gauc from external, you will need to create a A record or use your public ip and open up either 80 or 443 and point it to the guac server.
                          alternatively, you can use squid and map to guac.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.