A little back story. So I use Comcast as my internet provider and recently upgraded my router from a DOSSIS 3.0 Comcast issued modem combined with an Asus RT-AC68U router to a DOCSIS 3.1 Netgear X4S C7800. Prior to the switch, I had no problems with port forwarding and accessing my devices (which at the time were mainly ip cameras, SABnzbd devices, etc) using my dynamic IP address which I’ve had for years through NOIP.com. After getting the new new modem/router, I used it but never reintegrated the devices since I was going to be moving. After I moved just a few months ago and I am just now trying to get everything back up and running; or at least trying to.
Fast forward to a couple of weeks ago. I decided to use the spare ASUS as a wired AP so I’ve run a LAN cable from the Netgear to the ASUS and set up a different SSID on it. So far, so good; all seemed to be working good. NOTE: All that follows is set up through the Netgear; The mention of the ASUS is just for reference.
So I order my kit for the HA system and while waiting for it to come in, I try setting up one of my ip cameras. I set up a static IP in my router config and assigned the port forwarding. It was then that I noticed that I had no remote access and get this, I had to use my dynamic DNS:port to access the camera on my local network. I found though, that if I turned on uPNP on the camera and deleted the static address and port forward, all was good again. I could access the camera via ip:port locally and via noip:port externally. Good 'nuff.
So now I’m moving on to the HA install, Again, I found that if I set a static IP for the Hassio/Rpi3B AND forwarded the port, I not only could not access it externally, I had to use noip:port to access locally. I lost access locally via the ip:port (and/or the http://hassio.local:port). For the life of me, I couldn’t figure out why but assumed (at the time) that it had something to do with setting up a static IP through the router config but I thought that since uPNP worked for the camera, Id try that for the Rpi3. I attempted to use the uPNP command in the configuration.yaml but no love. Nothing I tried worked; though admittedly, I’m not really clear on how to use the command properly.
Hmm, so maybe the problem was using a static IP through the router config. So I went through the trouble of setting up a static ip by modifying the resinOS resin-sample file as follows
[ipv4]
address1=192.168.X.ABC/24,192.168.X.Y
dns=192.168.X.Y
dns-search=
method=manual
This worked and I got my static IP without having to set it through the router config. But I STILL was having the problem. From what I can determine, its the port forwarding that causing the problem. When I take out the forwarding, I can use IP:port locally for any device I need locally but once I forward any needed port, I loose local access with IP:port and have to use noip:port locally and NO access externally. The Dynamic DNS is set up and working in my router config, so I’m truly at a loss.
Below is my config under http in the configuration.yaml but I’ve tried all kinds variations (leaving the port off the “base_url”, adding/removing “http://” prefix, tried adding letsencrypt SSL, etc). but nothing works. Note that I CAN access my router config remotely using my noip:port, I just can’t access any devices setup ON the router remotely using it. UGH!
# Secrets are defined in the file secrets.yaml
# api_password: !secret http_password
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# base_url: example.duckdns.org:8123
api_password: Secret_Password"
server_port: 8123
base_url: XXXXXXXXXX.ddns.net:8123
# ssl_certificate: /ssl/fullchain.pem
# ssl_key: /ssl/privkey.pem
ip_ban_enabled: True
login_attempts_threshold: 10
Any ideas here? Probably something stupid I’m missing in the router settings or something super obvious because, you know, that’s the way my life works, but any ideas would be helpful