اگر که قرار است که کلا همدیگرو نبینند ، می تونی از protected port استفاده کنی.
راستش من تا حالا تست نکردم خودم اما روی سوئیچ 2960 می شود که یک access-list ورودی برای interface ها نوشت . و قابلیت تعریف ACL هم وجود دارد و فقط هم بر روی input قابل اجرا هست. اما من خودم تست نکردم.
File and Printer Sharing (NB Name In) 137 UDP Used for NetBIOS Name Resolution
File and Printer Sharing (NB Datagram In) 138 UDP Used for enabling NetBIOS Datagram transmission and reception.
File and Printer Sharing (NB Session In) 139 TCP Used for enabling NetBIOS session Service.
File and Printer Sharing (SMB In) 445 TCP Used for enabling Server Message Block transmission and reception
via Named Pipes.
---------------
---------------
System service name: DfsApplication protocol Protocol Ports
NetBIOS Datagram Service UDP 138
NetBIOS Session Service TCP 139
LDAP Server TCP 389
LDAP Server UDP 389
SMB TCP 445
RPC TCP 135
Randomly allocated high TCP ports TCP random port number between 1024 - 65535*