Automatic UPnP port forwarding is still exposing TNAS to the public internet, since 2021
Posted: 21 Sep 2024, 14:13
This issue has been previously reported (and claimed to be fixed) multiple times now.
Documented previously by other people here:
2021 - https://www.storagereview.com/news/terr ... -over-upnp
2023 - viewtopic.php?t=4750
I just bought a F2-212, and I have been working to get it set up.
I've installed the most recent version of ARM TOS 5, 5.1.73-00078, and the System control panel says that "Current system is the latest version".
BIOS/InitBoot version is 313.
STEPS TO DUPLICATE:
(1) Set a valid manual ip-address for the TNAS in the Network control panel (interface tab, editing LAN-1 port, IPv4, "Use the manual configuration noted below...").
(2) Restart the TNAS.
RESULT:
When the F2-212 TNAS restarts, the TNAS automatically uses UPnP to request that my router forward 8 ports directly to that internal ip-address of the TNAS, exposing those ports of the TNAS to the entire internet through my router's public ip-address instead of being "available only on the local network" the way it says in the General tab of the Network panel.
ftp - PUBLIC_ROUTER_IP:6221 to INTERNAL_TNAS_IP:21
http_pri - PUBLIC_ROUTER_IP:8800 to INTERNAL_TNAS_IP:8800
http_ssl - PUBLIC_ROUTER_IP:5443 to INTERNAL_TNAS_IP:5443
ftp_data - PUBLIC_ROUTER_IP:2000 to INTERNAL_TNAS_IP:20
sshd - PUBLIC_ROUTER_IP:22 to INTERNAL_TNAS_IP:22
http - PUBLIC_ROUTER_IP:8181 to INTERNAL_TNAS_IP:8181
telnetd - PUBLIC_ROUTER_IP:23 to INTERNAL_TNAS_IP:23
pt - PUBLIC_ROUTER_IP:9091 to INTERNAL_TNAS_IP:9091
OTHER DETAILS:
If I change the ports for HTTP and HTTPS in the TNAS settings, those custom ports will also be forwarded from the router's public ip-address to the local TNAS ip-address, in addition to the default 8181 and 5443 ports.
This happens even when "Enable Security Isolation Mode" is checked in the Security control panel (HTTPS requests from the public internet do try to connect to the local TNAS and then time out).
If "Enable Security Isolation Mode" is not checked, accessing port 8181 or 5443 (or whatever the custom HTTPS ports are in settings) on my router's public ip-address will connect to the TNAS and bring up the TOS UI.
FTP, Telnet, and SSH services are disabled on the TNAS.
It doesn't make any difference whether the "Set as default Gateway" checkbox is checked or unchecked when editing the LAN-1 port settings.
The "Enable UPnP discovery service" checkbox in the Discovery control panel is unchecked, and most likely unrelated to this.
Documented previously by other people here:
2021 - https://www.storagereview.com/news/terr ... -over-upnp
2023 - viewtopic.php?t=4750
I just bought a F2-212, and I have been working to get it set up.
I've installed the most recent version of ARM TOS 5, 5.1.73-00078, and the System control panel says that "Current system is the latest version".
BIOS/InitBoot version is 313.
STEPS TO DUPLICATE:
(1) Set a valid manual ip-address for the TNAS in the Network control panel (interface tab, editing LAN-1 port, IPv4, "Use the manual configuration noted below...").
(2) Restart the TNAS.
RESULT:
When the F2-212 TNAS restarts, the TNAS automatically uses UPnP to request that my router forward 8 ports directly to that internal ip-address of the TNAS, exposing those ports of the TNAS to the entire internet through my router's public ip-address instead of being "available only on the local network" the way it says in the General tab of the Network panel.
ftp - PUBLIC_ROUTER_IP:6221 to INTERNAL_TNAS_IP:21
http_pri - PUBLIC_ROUTER_IP:8800 to INTERNAL_TNAS_IP:8800
http_ssl - PUBLIC_ROUTER_IP:5443 to INTERNAL_TNAS_IP:5443
ftp_data - PUBLIC_ROUTER_IP:2000 to INTERNAL_TNAS_IP:20
sshd - PUBLIC_ROUTER_IP:22 to INTERNAL_TNAS_IP:22
http - PUBLIC_ROUTER_IP:8181 to INTERNAL_TNAS_IP:8181
telnetd - PUBLIC_ROUTER_IP:23 to INTERNAL_TNAS_IP:23
pt - PUBLIC_ROUTER_IP:9091 to INTERNAL_TNAS_IP:9091
OTHER DETAILS:
If I change the ports for HTTP and HTTPS in the TNAS settings, those custom ports will also be forwarded from the router's public ip-address to the local TNAS ip-address, in addition to the default 8181 and 5443 ports.
This happens even when "Enable Security Isolation Mode" is checked in the Security control panel (HTTPS requests from the public internet do try to connect to the local TNAS and then time out).
If "Enable Security Isolation Mode" is not checked, accessing port 8181 or 5443 (or whatever the custom HTTPS ports are in settings) on my router's public ip-address will connect to the TNAS and bring up the TOS UI.
FTP, Telnet, and SSH services are disabled on the TNAS.
It doesn't make any difference whether the "Set as default Gateway" checkbox is checked or unchecked when editing the LAN-1 port settings.
The "Enable UPnP discovery service" checkbox in the Discovery control panel is unchecked, and most likely unrelated to this.