This is a quick guide for installing Charles Proxy on a VBox Ubuntu VM to test Network Throttling Use Cases.
Step 1: Create Ubuntu VM
Step 2: Install Charles Proxy on VM.
Note: There is vendor documnetation here: https://www.charlesproxy.com/documentation/installation/apt-repository/
Follow Theses Steps.
wget -qO- https://www.charlesproxy.com/packages/apt/charles-repo.asc | sudo tee /etc/apt/keyrings/charles-repo.asc
or alternatively:
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 1AD28806
or alternatively:
curl -O https://www.charlesproxy.com/packages/apt/charles-repo.asc | sudo tee /etc/apt/keyrings/charles-repo.asc
The package creates a charles command in /usr/bin, and adds Charles in your application menus in your window manager.
Step 3: Configure Your Ubuntu VM to run on Ethernet Bridge Mode.
The VM needs a Unique IP address different than your laptop so that fog can point to the Ubuntu VM. To do this, configure the network adapter of the VM in VBox for bridge mode. This will bridge either your NIC adapter of WiFi adapter, and give the VM a unique IP on the local network.
In this example the VM is bridged on the WiFi adapter.