This plugin rate limits individual TCP connections on a per-remap basis.
The pacing is accomplished by using setsockopt(SO_MAX_PACING_RATE)
and the Fair Queuing (see man 8 tc-fq
) qdisc.
net.core.default_qdisc = fq
in /etc/sysctl.conf` and rebooting.sysctl net.core.default_qdisc
remap.config
to activate:map http://reverse-fqdn/ http://origin/ @plugin=fq_pacing.so @pparam=--rate=100000