rsyncd conf - hosts allow

                 

rsyncd.conf - hosts allow

# rsyncd.conf - hosts allow
# hosts allow
# This parameter allows you to specify a list ofpatterns that are matched against a connecting clients hostname and IPaddress. If none of the patterns match then the connection is rejected.
# 该参数允许指定一个用于匹配连接客户端的主机名和IP地址的模式列表。当没有模式匹配时将拒绝连接。
# Each pattern can be in one of five forms:
# 每个模式可以是五种形式之一:
#   a dotted decimal IPv4 address of the forma.b.c.d, or an IPv6 address of the form a:b:c::d:e:f. In this case theincoming machine's IP address must match exactly.
#   一个形式为 a.b.c.d 的点号分隔十进制IPv4地址,或者一个形式为 a:b:c::d:e:f 的IPv6地址,此时输入设备的IP地址必须精确匹配。
#   an address/mask in the form ipaddr/n whereipaddr is the IP address and n is the number of one bits in thenetmask. All IP addresses which match the masked IP address will beallowed in.
#   一个形式为 ipaddr/n 的 地址/掩码,其中ipaddr是IP地址,n是网络掩码的bit数。所有匹配带掩码IP地址的IP地址将获得允许。
#   an address/mask in the form ipaddr/maskaddrwhere ipaddr is the IP address and maskaddr is the netmask in dotteddecimal notation for IPv4, or similar for IPv6, e.g.ffff:ffff:ffff:ffff:: instead of /64. All IP addresses which match themasked IP address will be allowed in.
#   一个形式为 ipaddr/maskaddr 的地址/掩码,其中ipaddr是IP地址,maskaddr是点号分隔十进制标注的IPv4的网络掩码,或类似的IPv6,例如ffff:ffff:ffff:ffff:: 代替/64。所有匹配带掩码IP地址的IP地址将获得允许。
#   a hostname. The hostname as determined by areverse lookup will be matched (case insensitive) against the pattern.Only an exact match is allowed in.
#   一个主机名称。按模式匹配(大小写不敏感)通过反向解析检测得到的主机名。仅允许精确匹配。
#   a hostname pattern using wildcards. These arematched using the same rules as normal unix filename matching. If thepattern matches then the client is allowed in.
#一个使用通配符的主机名模式。使用和通常unix文件名匹配相应的规则匹配。客户端在模式匹配时被允许进入。
# Note IPv6 link-local addresses can have a scope in the address specification:
# 注意在地址规范中IPv6链路本地地址能有一个范围:
#   fe80::1%link1
#   fe80::%link1/64
#   fe80::%link1/ffff:ffff:ffff:ffff::
# You can also combine "hosts allow" with aseparate "hosts deny" parameter. If both parameters are specified thenthe "hosts allow" parameter is checked first and a match results in theclient being able to connect. The "hosts deny" parameter is thenchecked and a match means that the host is rejected. If the host doesnot match either the "hosts allow" or the "hosts deny" patterns then itis allowed to connect.
# 也可以合并“hosts allow”和一个独立的“hostsdeny”参数。如果指定两个参数将首先检查“hosts allow”参数后匹配结果表示客户端能够连接。然后检查“hostsdeny”参数匹配表示拒绝主机。既不匹配“hosts allow”也不匹配“hosts deny”模式的主机将被允许连接。
# The default is no "hosts allow" parameter, which means all hosts can connect.
# 默认没有“hosts allow”参数,表示所有主机都能连接。

[rsync - 官方网站]

http://rsync.samba.org/

[rsync - 关键词]

rsync
rsyncd

[rsyncd.conf - 官方文档]

http://samba.org/ftp/rsync/rsyncd.conf.html

[rsync - 相关问题]

全局部分中常用全局参数配置说明

全局部分中常用模块参数配置说明

模块常用配置说明

认证相关参数配置说明

客户端常用参数

客户端其他参数

for Windows (cygwin)

远程shell模式和rsync守护进程模式

22.6. File Synchronization. Building Internet Firewalls, 2nd Edition

Hack 92 Mirroring Web Sites with wget and rsync. Spidering Hacks

Linux Security Cookbook - Recipe 1.16 Integrity Checking with rsync

Linux Security Cookbook - Recipe 1.6 Remote Integrity Checking

Linux Security Cookbook - Recipe 6.3 Copying Files Remotely

正确设置gid参数

--backup-dir 使用示例

hosts allow

           

再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

猜你喜欢

转载自blog.csdn.net/gdfjhc/article/details/87385771
今日推荐