In Debian go to
nano /etc/sysctl.conf
Scroll down and past
# Tcp speed up
net.ipv4.tcp_window_scaling = 1
net.core.rmem_max = 167772160
net.ipv4.tcp_rmem = 4096 87380 167772160
net.ipv4.tcp_wmem = 4096 6384 167772160
Save with ctrl o
------------------------------------------------
Then go oud site nano and do in terminal
sysctl -p /etc/sysctl.conf
Then you see the message ..
net.ipv4.ip_forward = 1
net.ipv4.tcp_window_scaling = 1
net.core.rmem_max = 167772160
net.core.wmem_max = 167772160
net.ipv4.tcp_rmem = 4096 87380 167772160
net.ipv4.tcp_wmem = 4096 16384 167772160
It works on the fly so no network restart needed only with reboot with open vz vps
