Hi,
To make it simple.
A SAMBA server (LAN IP 192.168.1.254) is in very simple office LAN. For safety reason, the router facing internet is not configured to do port forwarding to the SAMBA server, instead, visits on router's port 9991 are forwarded to an SSH server in the LAN. I tried the following command on a Windows host from outside the LAN in a hope to establish a SSH tunnel to the SAMBA server, then do the "map network drive..." on the Win host and input \\127.0.0.1:13579 to map to the samba server.
No surprise they failed.
In my case, how do I access the SAMBA server in question?
PS, following command works when I wanna do remote desktop to an internal workstation(LAN IP 192.168.1.96).
To make it simple.
A SAMBA server (LAN IP 192.168.1.254) is in very simple office LAN. For safety reason, the router facing internet is not configured to do port forwarding to the SAMBA server, instead, visits on router's port 9991 are forwarded to an SSH server in the LAN. I tried the following command on a Windows host from outside the LAN in a hope to establish a SSH tunnel to the SAMBA server, then do the "map network drive..." on the Win host and input \\127.0.0.1:13579 to map to the samba server.
ssh myuser@url -p 9991 -L 13579:192.168.1.254:445 -N
ssh myuser@url -p 9991 -L 13579:192.168.1.254:445 -L 24680:192.168.1.254:139 -N
No surprise they failed.
In my case, how do I access the SAMBA server in question?
PS, following command works when I wanna do remote desktop to an internal workstation(LAN IP 192.168.1.96).
ssh myuser@url -p 9991 -L 12345:192.168.1.96:3389 -N