0

I'm copying files via the program Bvckup to a windows share.

From a wireshark capture, I see that the operation uses TCP port 445 and SMB2 port 64663.

I want to make a firewall rule, but I am uncertain if the port 64663 is a random port.

Anybody knows which ports/range I should open?

MojoDK
  • 265

1 Answers1

2

Each TCP connection involves two ports – a specific port on the server side, a random (ephemeral) port on the client side. You never write firewall rules to match the latter, only the former.

On the server side, SMB2 uses port 445. (SMBDirect with RDMA may use port 5445.)

On the client side, there is no specific port assigned – like almost any other TCP-based protocol, a random port is allocated unique for each connection (from the OS configured "ephemeral port" range).

grawity
  • 501,077