summaryrefslogtreecommitdiff
path: root/rsyncd.conf.5.md
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2020-06-11 14:03:11 -0700
committerWayne Davison <wayne@opencoder.net>2020-06-11 14:22:25 -0700
commitcff0764b7ff4247c2523d4c054e1c1786d2dec08 (patch)
tree671d20d43b1a7fad5b0352536c5c1a0ab4273628 /rsyncd.conf.5.md
parenta3377921ebe651cb7d2b969853cb9fe0e135ff75 (diff)
downloadrsync-cff0764b7ff4247c2523d4c054e1c1786d2dec08.tar.gz
Add `haproxy header` parameter to rsync daemon
Diffstat (limited to 'rsyncd.conf.5.md')
-rw-r--r--rsyncd.conf.5.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/rsyncd.conf.5.md b/rsyncd.conf.5.md
index e4b673ef..f1e335c1 100644
--- a/rsyncd.conf.5.md
+++ b/rsyncd.conf.5.md
@@ -234,6 +234,24 @@ the values of parameters. See the GLOBAL PARAMETERS section for more details.
allow the daemon to function. By default the daemon runs without any
chrooting.
+0. `haproxy header`
+
+ This parameter indicates that all incoming connections must start with a V1
+ or V2 haproxy header. If the header is not found, the connection is closed.
+
+ Setting this allows a proxy server to forward the source IP information to
+ rsync, allowing you to make use of IP restrictions that don't all match the
+ source IP of the proxy server.
+
+ _CAUTION_: when using this option you _must_ make sure that only the proxy
+ is allowed to connect to the rsync port via some kind of firewall rules
+ (such as iptables). If any non-proxied connections are allowed through,
+ the client will be able to spoof any remote IP address that they desire.
+
+ This setting is global. If you need some modules to require this and not
+ others, then you will need to setup multiple rsync daemon processes on
+ different ports.
+
0. `numeric ids`
Enabling this parameter disables the mapping of users and groups by name