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

    Trouble actually hitting the correct applet from external connection

    Scheduled Pinned Locked Moved Cache/Proxy
    52 Posts 2 Posters 7.9k 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 @menethoran
      last edited by johnpoz

      @menethoran What I would do - and happy to help is git rid of all those rules.. Start with a clean slate..

      So you need rules to your plex (I have the same) and you need rules to allow access to your ombi.. Do you have any other services you need to allow from wan? If not those are the only 2 rules you should have. Plex rule would be auto added when you create your nat.

      Use of HAproxy is different.. It normally would be listening on your wan interface, on the port you want it to proxy.. So 80 and 443.. So create rules that allow that.. Then those are the only 2 rules you would have on your wan.

      All of those rules on iot don't make any sense either.. Just leave the any any rule at the end, and we can setup whatever rules you want.. Again happy to help. Just say what you want to do wand we can go over how you would do that. But all those rules on your iot to wan net make no sense at all.

      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

      M 1 Reply Last reply Reply Quote 0
      • M
        menethoran @johnpoz
        last edited by

        @johnpoz ive got more services than ombi and plex. but im not too much worried about those right now, if i can stumble through those, i can probably figure out the rest on my own.

        As for the firewall rules/NAT, i created the firewall rules before creating the NAT (took forever to figure out that i needed the NAT 1:1 to get plex working correctly outside of the network...

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

          @menethoran said in Trouble actually hitting the correct applet from external connection:

          i needed the NAT 1:1 to get plex working correctly outside of the network...

          You do not need any such thing.. A simple normal port forward to 32400 is all that is needed.

          When you create a port forward, by default it would auto create the firewall rule for you - unless you told it not too. You just need to make sure the placement of the rule is correct on the wan if you have any rules on the wan that would block it, etc.

          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

          M 1 Reply Last reply Reply Quote 0
          • M
            menethoran @johnpoz
            last edited by

            @johnpoz i tried the simple port forward. I think its because i have plex as an applet (KVM) on TrueNAS Scale (Im used to TrueNAS core, but moved away from that when i moved with the PfSense over Unifi (VERY glad i did) but still need to learn a lot.)

            And, i may not have needed the NAT rule, but whatever it did (i assume the firewall creation rule the way it made it) worked to gain access outside the network for Plex (before that, it would work for about 3 minutes then disable the outside connection (it was never long enough for me to actually test).

            Anyway, i "commented out" (not sure the PfSense term for disabling a firewall rule) anything not needed (anything with a 0 next to traffic)

            M 1 Reply Last reply Reply Quote 0
            • M
              menethoran @menethoran
              last edited by menethoran

              Still no joy (feel free to check on your end as you know the domain to go to (cloud.domain.com is also setup and doesnt work, just leads to the login page for TrueNAS )

              @menethoran Screenshot 2022-01-11 131108.jpg

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

                @menethoran where is your frontend setup? for haproxy, and did you remove pfsense from listening on 80 and 443?

                You have to setup the front end to match up to your backend that sends to port..

                I hit your fqdn now on 80 I just hit truenas.

                btw your rules should be wan address for destination.

                If I hit your ombi fqdn on https: It tries to send me to 192.168.2.2:9001 So your ha proxy is clearly not setup correctly. But that looks more like a redirection vs proxy... Lets see your port forward setup..

                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

                M 2 Replies Last reply Reply Quote 0
                • M
                  menethoran @johnpoz
                  last edited by

                  @johnpoz i think thats because i have all https requests going to nextcloud (on 9001)...

                  Screenshot 2022-01-11 135453.jpg

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

                    @menethoran and again useless rules. How would the source port be 443? that would never be the case.

                    And how would the dest be 192.168.2.2 and natted to 192.168.2.2 to 3579, remove that rule as well.

                    Lets see your frontend of haproxy setup.

                    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
                    • M
                      menethoran @johnpoz
                      last edited by

                      @johnpoz when you ask "did you remove pfsense from listening on port 80 and 443" do you mean, did i change the port used to access the pfsense gui? if so, yes. (is that problematic?)

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

                        @menethoran well if pfsense listening on 80, and your trying to use haproxy on 80, then yeah kind of a problem ;)

                        Make sure you remove the 80 redirect that pfsense gui uses.

                        redirect.jpg

                        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

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          menethoran @johnpoz
                          last edited by

                          @johnpoz so... ok, bigger problem (im assuming temporary).

                          I locked myself out of PfSense. I change my webgui port to 10080 without realizing that its "a dangerous port" (was just an easy quick port to set up that stopped it from using 80)...

                          what do i do?

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

                            @menethoran what do you mean dangous port?

                            You can just change it back to 80 on the console..

                            Why not just set pfsense to https only?

                            port.jpg

                            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

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              menethoran @johnpoz
                              last edited by

                              @johnpoz Screenshot 2022-01-11 141756.jpg

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

                                @menethoran chrome?

                                https://thegeekpage.com/err-unsafe-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

                                M 2 Replies Last reply Reply Quote 0
                                • M
                                  menethoran @johnpoz
                                  last edited by

                                  @johnpoz fixed... Effing Chrome.

                                  well, now knowing THAT, im gonna keep it that way :)

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    menethoran @johnpoz
                                    last edited by

                                    @johnpoz OK, i got Ombi working, nextcloud is still not liking it (to get ombi to work, i had to disable the 1:1 NAT rule i thought i needed (but apparently do not) for plex to work

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

                                      @menethoran are you trying to run nexcloud through haproxy? Is that a different fqdn, netclould.yourdomain.tld ?

                                      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

                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        menethoran @johnpoz
                                        last edited by

                                        @johnpoz i am trying to get it to run through HAProxy, yes.

                                        Same domain but cloud.domain.com rather than ombi.domain.com

                                        currently getting a 503 error.

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

                                          @menethoran 503 points to your backend check failing, turn that off. I ran into sim problem with either ombi or overseerr, had to set check to none.

                                          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

                                          M 1 Reply Last reply Reply Quote 0
                                          • M
                                            menethoran @johnpoz
                                            last edited by

                                            @johnpoz as in the health check? (that was already turned off).

                                            BUT, i avoided the 503 error by changing my PfSense SSL port to 8443.

                                            But, now im getting a 400 error, even when connecting with https its telling me im connecting via http

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