How to enable SMB drive mapping using non-standard channels/ports?

Marc George 191 Reputation points
2023-01-25T00:44:46.6533333+00:00

I want to map a drive on a system on a remote network from a system on a local network not using standard SMB channels with both networks being behind a router firewall. I would like to have automatic re-connections. I have done single channel port forwarding for RDC to remote systems specifying the port in the connection address, but standard SMB uses UDP ports 135 through 139 and TCP ports 135 through 139. Can I specify the ports used for SMB outbound to establish the connection?

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,751 Reputation points
    2023-01-25T16:41:01.3666667+00:00

    Hello

    Thank you for your question and reaching out. I can understand you are having query\issues related to SMB port.

    SMB is typically not an internet protocol utilised. You ought to configure a VPN between your client and SMB should be tunnelled across the VPN. The AWS fileserver won't need to be accessible to everyone, you'll have an additional degree of security, and you won't have to worry about ISPs blocking port 445. VPNs come in a wide variety of open source and paid choices.

    You could set up NAT on both ends of your connection as a workaround to redirect port 445 to another port for transmission across your ISP's network.

    Use of SMB across an untrusted network connection is never advised. It is totally unsecure and was not intended to be used in this manner.

    --If the reply is helpful, please Upvote and Accept as answer--


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.