init
This commit is contained in:
1
rsyncd/rsyncd.bat
Normal file
1
rsyncd/rsyncd.bat
Normal file
@@ -0,0 +1 @@
|
||||
C:\D\msys64\msys2_shell.cmd -here -msys -c "rsync --daemon --config=rsyncd.conf --no-detach"
|
61
rsyncd/rsyncd.conf
Normal file
61
rsyncd/rsyncd.conf
Normal file
@@ -0,0 +1,61 @@
|
||||
######################################################################################################
|
||||
# ******进程相关全局配置******
|
||||
######################################################################################################
|
||||
# = 后面的值可根据自己的实际情况更改
|
||||
# pid file 守护进程pid文件
|
||||
# port 守护进程监听端口,可更改,由xinetd允许rsyncd时忽略此参数
|
||||
# address 守护进程监听ip,由xinetd允许rsyncd时忽略此参数
|
||||
pid file = ./rsyncd.pid
|
||||
lock file = ./rsyncd.lock
|
||||
port = 8023
|
||||
address = 192.168.56.101
|
||||
#rsyncd 守护进程运行系统用户全局配置,也可在具体的块中独立配置,
|
||||
#uid = root
|
||||
#gid = root
|
||||
#允许 chroot,提升安全性,客户端连接模块,首先chroot到模块path参数指定的目录下
|
||||
#chroot为yes时必须使用root权限,且不能备份path路径外的链接文件
|
||||
use chroot = no
|
||||
#只读
|
||||
read only = no
|
||||
#只写
|
||||
write only = no
|
||||
#允许访问rsyncd服务的ip,ip端或者单独ip之间使用空格隔开
|
||||
hosts allow = 192.168.56.101/255.255.255.0 127.0.0.1/255.255.255.0
|
||||
#不允许访问rsyncd服务的ip,*是全部(不涵盖在hosts allow中声明的ip,注意和hosts allow的先后顺序)
|
||||
hosts deny = *
|
||||
#客户端最大连接数
|
||||
max connections = 5
|
||||
#欢迎文件路径,可选的
|
||||
#motd file = /etc/rsyncd/rsyncd.motd
|
||||
#日志相关
|
||||
# log file 指定rsync发送消息日志文件,而不是发送给syslog,如果不填这个参数默认发送给syslog
|
||||
# transfer logging 是否记录传输文件日志
|
||||
# log format 日志文件格式,格式参数请google
|
||||
# syslog facility rsync发送消息给syslog时的消息级别,
|
||||
# timeout连接超时时间
|
||||
log file = ./rsyncd.log
|
||||
transfer logging = no
|
||||
log format = %t %a %m %f %b
|
||||
syslog facility = local3
|
||||
timeout = 300
|
||||
#模块验证密码文件 可放在全局配置里
|
||||
strict modes = no
|
||||
secrets file=./rsyncd.secrets
|
||||
|
||||
######################################################################################################
|
||||
# ******模块配置(多个)******
|
||||
######################################################################################################
|
||||
#模块 模块名称必须使用[]环绕,比如要访问data1,则地址应该是data1user@192.168.1.2::data1
|
||||
[wincode]
|
||||
#模块根目录,必须指定
|
||||
path=./
|
||||
#是否允许列出模块里的内容
|
||||
list=yes
|
||||
#忽略错误
|
||||
#ignore errors
|
||||
#模块验证用户名称,可使用空格或者逗号隔开多个用户名
|
||||
auth users = dreagonmon
|
||||
#注释
|
||||
#comment = some description about this moudle
|
||||
#排除目录,多个之间使用空格隔开
|
||||
#exclude = test1/ test2/
|
1
rsyncd/rsyncd.secrets
Normal file
1
rsyncd/rsyncd.secrets
Normal file
@@ -0,0 +1 @@
|
||||
dreagonmon:123456
|
Reference in New Issue
Block a user