Article ID: 123242, created on Oct 24, 2014, last review on Oct 24, 2014

  • Applies to:
  • Virtuozzo 6.0


How to limit Packages per second (PPS) rate for container's incoming and outgoing connection?


Iptables rules on the node can be used to limit the PPS rate of inbound and outbound traffic using container's IP address e.g.:

# iptables -I FORWARD 1 -o eth0 -s -m limit --limit 100/sec -j ACCEPT
# iptables -I FORWARD 2 -o eth0 -s -j DROP
# iptables -I FORWARD 3 -i venet0 -d limit --limit 100/sec -j ACCEPT
# iptables -I FORWARD 4 -i venet0 -d -j DROP

NOTE: Save iptables rules in order to make them reboot persistent ("# service iptables save").

Search Words

Packages per second


limit pps


c62e8726973f80975db0531f1ed5c6a2 2897d76d56d2010f4e3a28f864d69223 0dd5b9380c7d4884d77587f3eb0fa8ef

Email subscription for changes to this article
Save as PDF