logutils-docs/rsyncd/rsyncd.conf
2023-11-26 21:39:47 +08:00

62 lines
2.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

######################################################################################################
# ******进程相关全局配置******
######################################################################################################
# = 后面的值可根据自己的实际情况更改
# 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服务的ipip端或者单独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/