我在雲主機開啓了445,,46端口 經過tcptraceroute能夠看到,運營商屏蔽了訪問445 samba 端口 chunli@ubuntu ~$ tcptraceroute 47.88.159.37 446 -n -q 1 Selected device eth0, address 172.16.66.234, port 59972 for outgoing packets Tracing the path to 47.88.159.37 on TCP port 446, 30 hops max 1 172.16.1.254 0.353 ms 2 116.228.237.225 2.150 ms 3 124.74.50.125 6.983 ms 4 * 5 * 6 101.95.88.37 2.087 ms 7 59.43.130.169 2.035 ms 8 * 9 59.43.247.58 3.161 ms 10 59.43.249.233 65.865 ms 11 59.43.250.86 67.115 ms 12 218.185.243.62 68.219 ms 13 119.38.215.73 66.518 ms 14 * 15 47.88.159.37 [open] 68.463 ms chunli@ubuntu ~$ chunli@ubuntu ~$ tcptraceroute 47.88.159.37 445 -n -q 1 Selected device eth0, address 172.16.66.234, port 45884 for outgoing packets Tracing the path to 47.88.159.37 on TCP port 445 (microsoft-ds), 30 hops max 1 172.16.1.254 0.351 ms 2 116.228.237.225 1.224 ms 3 * 4 * 5 * 6 * 7 * 8 * 9 * 10 * 11 * 12 * 13 * 14 * 15 * 16 * 17 *
Linux 指定端口掛載samba 親測可用! root@ubuntu ~# apt-get install cifs-utils root@ubuntu ~# mount -t cifs -o username=**用戶名不須要引號**,password=**密碼不須要引號**,port=445 //172.16.12.252/develop /mnt/test/ root@ubuntu ~# mount -t cifs -o username=**用戶名不須要引號**,password=**密碼不須要引號**,port=446 //www.reconnect.top/develop /mnt/test/ Windows 暫未找到清爽的方法。