Skip to content

Instantly share code, notes, and snippets.

@kat47
Last active March 14, 2021 09:22
Show Gist options
  • Save kat47/8c5dc26642aef7471dfae2d6b1ec4a91 to your computer and use it in GitHub Desktop.
Save kat47/8c5dc26642aef7471dfae2d6b1ec4a91 to your computer and use it in GitHub Desktop.
Some Networking oriented Linux Commands

Iperf3

Install

sudo apt-get install iperf3

sudo yum install iperf3 -y

Usage - TCP

Server

sudo iperf3 -s -p 5001

Client

sudo iperf3 -c <Public IP of EC2 instance/on-premises host> --parallel 2 -i 1 -t 2

Usage - UDP

Server

sudo iperf3 -s -u -p 5001

Client

sudo iperf3 -c <Public IP of EC2 instance/on-premises host> -u -b 5g


Hping3

Install

sudo amazon-linux-extras install epel -y && sudo yum install hping3 -y

sudo yum --enablerepo=epel install hping3 -y

sudo apt-get install hping3

Usage

sudo hping3 -S -c 50 -V <Public IP of EC2 instance/on-premises host> -p 22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment