Router Xiaomi XA3200 running under OpenWrt 22.03.5
Router is connected directly to my ISP where I obtained a public adresses from WAN side. From LAN side I have some Raspberry, Webcam, NAS, ... configured using IP fix address.
I finally successfully configured WAN side remote access for:
SSH remote access for OpenWRT
SSH and FTP remote access to my Raspberry
But I did not success to perform remote acces to my webcam, NAS, etc..
To be fair I tried many configuration on my firewall and finally remote access append for my Raspberry without changing something special....
Regarding my configuration, I only have LAN and WAN interfaces. I came back on standard configuration for my firewall zones (as shown below):
Using https://canyouseeme.org/:
I can see the ports open for OpenWrt and the (2) ports for Rasp ... but not for my Foscam and not my NAS. As you can see it is exactly the same configuration onPortForward... and all are enable.
If you can support me; I really passed hours of trying all the possible option combinations of rules, firewall zones, etc.. without success. But here using CanYouSeeMe it seems not normal to have ports closed and port open for the same configuration...
If you have some solution it could be useful.
Many deices will not accept external connections (from outside the network where they are connected), perhaps this is your case. Try to create a SNAT rule, to masquerade those connections as if coming from the router.
Just to be sure to understand. You mean the better will be to install a VPN Server on OpenWRT then to run a remote client connection ? If I do that I will have like an IP address from the LAN side in order to connect to any of my devices like if I was in local?
I really tried all the possible combinations....
My concern is, even if the different devices have differents behavior, from the WAN side, ports shall be open and I should be able see it as open using CanYouSeeMe.org. Isn't it ?
Good idea.
I will try it, to be fair I even do not think about that; thanks for this proposal. I planned to configured the router as I did by the past for my ISP router as NAT was the only solution available.
I just see a tuto for wiregard which seems easy enough to install.
Something else more simple and secure. You can use a key-based login for SSH and disable passwords. Your client would then need a SSH app that allows you to setup [TCP] tunnels to the destination LAN IPs.
I installed Wireguard on my router, generated new keys, created the wg0 new interface, open fw UDP port, attached the new wg0 to my lan interface, created a new peer.
Then I tried to connect through the wireguard VPN android client using my cellphone.
But nothing really append... I do not see really log. If you have a way to debug using log, at least to see if a connection is coming to my WAN side.
I already installed by the past tcpdump-mini.
But log are availbale on the Luci System Log only ?
Are there some verbose mode for firewall or WAN interface or Wireguard ? In order to at least check if request is coming from the VPN client ?
regarding wg show
it returns my public and private keeys and the listening port. Nothing else.
I will try from another client from a remote PC, just to check if it can be an issue from my cellphone.