windows 端口转发
设置windows的端口转发
以管理员运行cmd
netsh interface portproxy show all
netsh interface portproxy add v4tov4 listenport=445 listenaddress=127.0.0.1 connectaddress=samba服务器地址 connectport=samba端口
改完后得重启
删除端口转发
netsh interface portproxy delete v4tov4 listenaddress=127.0.0.1 listenport=445
通过访问 127.0.0.1:445 转发到目标samba端口
vi /etc/samba/smb.conf
[global]
smb ports = 4455 1390