This morning I tried to set up port forwarding on a machine I have on another network, in order to allow SSH access.
The relevant config page requires these fields (translating from italian here's the original screenshot) to be filled:
Name: _________
Protocol: __________
Remote host IP address: ___.___.___.___ ~ ___.___.___.___
Host LAN: ___________
WAN port: ____ ~ ____
LAN host port: ____
Now, as far as I understand,
Nameis unimportant and I can put anything I want in it,Protocolshould beTCPHost LANshould be the IP that the device I want to connect to (a workstation connected to the router via Ethernet) was assignedWAN portis the port I want to expose to the outside, e.g.9022,LAN host portis22, for SSHRemote host IP addressis what puzzles me a bit, I initially thought I could do192.168.1.1 ~ 192.168.1.255, which should include the router.
Based on https://canyouseeme.org/, the above settings are wrong, as the site can't see me on 9022.
I also saw this thread on an italian forum that suggests that ___.___.___.___ ~ ___.___.___.___ should be filled with the address of the router, which for me means 192.168.1.1 ~ 192.168.1.1. The OP did not reply back asking more, so I presume the settings worked for them.