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

    help with forwarding for home assistant

    Firewalling
    6
    51
    9.5k
    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.
    • V
      viragomann @wgstarks
      last edited by

      @wgstarks said in help with forwarding for home assistant:

      but if I connect from my iPhone via LTE I'm successful.

      So its working as expected?

      @wgstarks said in help with forwarding for home assistant:

      I was trying to connect from the same LAN using the external IP.

      No idea how you have done that.

      wgstarksW 1 Reply Last reply Reply Quote 0
      • wgstarksW
        wgstarks @viragomann
        last edited by

        @viragomann said in help with forwarding for home assistant:

        No idea how you have done that.

        Just a browser window and enter <MyWANIP>:8123
        This works from outside my local network but not internally? Not sure why?
        The port is being forwarded though. Thanks for your help.

        Box: SG-4200

        V 1 Reply Last reply Reply Quote 0
        • V
          viragomann @wgstarks
          last edited by

          @wgstarks said in help with forwarding for home assistant:

          Just a browser window and enter <MyWANIP>:8123

          This only works with NAT reflection.
          You can activate it in a single NAT rule or globally in system settings. However, its recommended to better use hostnames and split DNS.

          wgstarksW 1 Reply Last reply Reply Quote 0
          • wgstarksW
            wgstarks @viragomann
            last edited by

            @viragomann
            Like this?
            SafariScreenSnapz216.jpg

            Box: SG-4200

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

              Why would you want to expose your home assistant to the public internet? Doesn't seem like a very smart thing to do from a security point of view..

              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.7.2, 24.11

              1 Reply Last reply Reply Quote 0
              • T
                tman904
                last edited by

                Maybe use IPSEC or OPENVPN instead of exposing your server directly to the WAN.

                wgstarksW 1 Reply Last reply Reply Quote 0
                • V
                  viragomann @wgstarks
                  last edited by

                  @wgstarks said in help with forwarding for home assistant:

                  Like this?

                  Yes, using pfSense for DNS resolution presumed. So can access the home assistant with the same host name from within your network as well as from outside.
                  However, security concerns are not regarded with this recommendation.

                  1 Reply Last reply Reply Quote 0
                  • wgstarksW
                    wgstarks
                    last edited by

                    Is there really a security concern? I'm asking this as a legitimate question. I only have a basic layman's knowledge regarding network security but I have a very strong password set for HA and would think that it would be adequate. Maybe that's not true?

                    Box: SG-4200

                    1 Reply Last reply Reply Quote 0
                    • wgstarksW
                      wgstarks @tman904
                      last edited by

                      @tman904 said in help with forwarding for home assistant:

                      Maybe use IPSEC or OPENVPN instead of exposing your server directly to the WAN.

                      I have OpenVPN setup on my iPhone but at the time I set it up I couldn't find a way to keep it active. Maybe that has changed now (it's been a few years)?

                      Box: SG-4200

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

                        Why do you think you even need to open the port? There should be zero reason for opening inbound ports to control your home smart things while outside your home.. They phone home (company servers) and you control via that connection.

                        I can turn on/off my lights, change the temp on the hvac, etc. without having any ports open.

                        If your using some home grown thing - that you need to talk to while remote, then yes vpn would be the secure way to do that.. Not opening it up to the whole internet..

                        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.7.2, 24.11

                        wgstarksW 1 Reply Last reply Reply Quote 0
                        • wgstarksW
                          wgstarks @johnpoz
                          last edited by

                          @johnpoz said in help with forwarding for home assistant:

                          Why do you think you even need to open the port? There should be zero reason for opening inbound ports to control your home smart things while outside your home.. They phone home (company servers) and you control via that connection.

                          I can turn on/off my lights, change the temp on the hvac, etc. without having any ports open.

                          My iOS app fails to connect without a connection to my local network.

                          Box: SG-4200

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

                            You are using this?
                            https://www.home-assistant.io/

                            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.7.2, 24.11

                            1 Reply Last reply Reply Quote 0
                            • wgstarksW
                              wgstarks @wgstarks
                              last edited by

                              @wgstarks said in help with forwarding for home assistant:

                              @johnpoz said in help with forwarding for home assistant:

                              Why do you think you even need to open the port? There should be zero reason for opening inbound ports to control your home smart things while outside your home.. They phone home (company servers) and you control via that connection.

                              I can turn on/off my lights, change the temp on the hvac, etc. without having any ports open.

                              My iOS app fails to connect without a connection to my local network.

                              Yes

                              Box: SG-4200

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

                                Yeah you would want vpn then... If they server doesn't make a connection to outside services, like alexa, google, all the other 3rd brand lights and switches, and etc.. That you can use to control your devices. VPN is the way to do it securely.

                                https://www.home-assistant.io/docs/configuration/remote/
                                "Just putting a port up is not secure. "

                                They recommend using ssl - but that still leaves it exposed.. From a security point of view you should setup vpn on your phone to your pfsense box.. Then you can access your remote assistant through the vpn.. This does not expose it to the public internet and anyone hitting that 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.7.2, 24.11

                                wgstarksW 2 Replies Last reply Reply Quote 0
                                • wgstarksW
                                  wgstarks @johnpoz
                                  last edited by

                                  @johnpoz said in help with forwarding for home assistant:

                                  Yeah you would want vpn then... If they server doesn't make a connection to outside services, like alexa, google, all the other 3rd brand lights and switches, and etc.. That you can use to control your devices. VPN is the way to do it securely.

                                  They do have a paid service for this but I would rather connect manually (turn the vpn on/off) and save the money if I can't find anyway to keep the vpn active.

                                  Box: SG-4200

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

                                    Well the vpn could be set to always be active.. But turning on and off is just a single click.. On your phone

                                    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.7.2, 24.11

                                    1 Reply Last reply Reply Quote 0
                                    • wgstarksW
                                      wgstarks @johnpoz
                                      last edited by

                                      @johnpoz said in help with forwarding for home assistant:

                                      They recommend using ssl - but that still leaves it exposed.. From a security point of view you should setup vpn on your phone to your pfsense box.. Then you can access your remote assistant through the vpn.. This does not expose it to the public internet and anyone hitting that port.

                                      Right now I have ssl (lets encrypt). I have OpenVPN installed on my iPhone but it tends to disconnect when changing networks and won't connect at all when I'm connected to my local network. I see that the OpenVPN app now has functionality to try and re-connect but I'm not sure what those continuous re-connection attempts will do to my battery life and network performance.

                                      Box: SG-4200

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

                                        You don't need it while your on your local network... Just turn it on when your away "and" you want to do something with your home assistant. Its a click to turn it on.

                                        Do what it is you want to do and then disconnect it - click.

                                        I would not suggest you open your home assistant to the public net - it is not secure be it your using https or not..

                                        Here is some info about how often this port is scanned..
                                        https://www.dshield.org/port.html?port=8123
                                        https://www.speedguide.net/port.php?port=8123

                                        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.7.2, 24.11

                                        1 Reply Last reply Reply Quote 0
                                        • NogBadTheBadN
                                          NogBadTheBad
                                          last edited by NogBadTheBad

                                          Can you do what you want with homebridge?

                                          https://homebridge.io/

                                          I can control devices when i’m away from home with out any sort of port forwarding, i run it on a Raspberry Pi 3 and it talks to my Apple TV homekit hub.

                                          Andy

                                          1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

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

                                            ^ exactly.. There really should be no reason to port forward for home automation sort stuff.. Not sure exactly how OP is setup and what gear..

                                            If you have to open a port to public internet - its not a secure..

                                            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.7.2, 24.11

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