SMB Config
$ cat /usr/local/etc/smb4.confb
[global]
workgroup = WORKGROUP
server string = Samba Server Version %v
netbios name = Samba
log file = /var/log/samba/samba_log.%m
max log size = 50
security = user
passdb backend = tdbsam
smb ports = 6727
include = /etc/samba/user/%U.smb.conf
https://www.freebsd.org/cgi/man.cgi?query=smbpasswd&format=html
修改端口
在 [global] 段添加以下代码并在路由上做好端口影射:
smb ports = 2222
这样,就可以规避 445/139 端口。 但 Windows 要将 2222 修改为默认端口好像很麻烦!
macOS 连接 SMB
smb://用户名:密码@公网IP:6727
# Or
smb://公网IP:6727
Reference
FEATURED TAGS
algorithm
algorithmproblem
architecturalpattern
architecture
aws
c#
cachesystem
codis
compile
concurrentcontrol
database
dataformat
datastructure
debug
design
designpattern
distributedsystem
django
docker
domain
engineering
freebsd
git
golang
grafana
hackintosh
hadoop
hardware
hexo
http
hugo
ios
iot
java
javaee
javascript
kafka
kubernetes
linux
linuxcommand
linuxio
lock
macos
markdown
microservices
mysql
nas
network
networkprogramming
nginx
node.js
npm
oop
openwrt
operatingsystem
padavan
performance
programming
prometheus
protobuf
python
redis
router
security
shell
software testing
spring
sql
systemdesign
truenas
ubuntu
vmware
vpn
windows
wmware
wordpress
xml
zookeeper