This site is no longer updates. Please visit breadnet.co.uk
Iperf on XCP-NG
Why?
Iperf is used to check speeds over a network
I want to know what speeds are going over my xcp-ng server
The how
SSH to your server
Install the dependincies that it requires:
(new line is a new command, dont be a numpty and run them all as one command!)
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum update
yum install iperf
Modify the iptables file to allow the connection to the server over port 5001 (default port for TCP ONLY iperf tests)
Add the line:
-A RH-Firewall-1-INPUT -m conntrack --ctstate NEW -m tcp -p tcp --dport 5001 -j ACCEPT
under # Linux HA hearbeat (CA-9394)
Save it (ctrl+x, y, enter)
restart the firewall service (iptables)
systemctl restart iptables
If it worked, you'll see nothing (like in the image)
iperf -s
iperf -c (ip of server)
If this didn't work for you, then I've either missed steps or you cant follow simple instructions. Either way, you can get in contact with the contact form on the home page and I can try help you :)
Images from my own computer