Iperf on xcpng

Iperf on XCP-NG


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!)

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)

Run iperf in server mode (server)

iperf -s

Run iperf in clinet mode (client)

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