Showing posts with label network. Show all posts
Showing posts with label network. Show all posts

Tuesday, September 27, 2011

Simulating slow network connection in OSX

Setup
sudo ipfw pipe 1 config bw 16Kbit/s delay 350ms

sudo ipfw add 1 pipe 1 src-port 80
sudo ipfw add 2 pipe 1 dst-port 80


Remove
sudo ipfw delete 1
sudo ipfw delete 2

sudo ipfw pipe 1 delete

Tuesday, November 30, 2010

Simulating cellular network bandwith

To turn it on

sudo su
ipfw add pipe 1 src-port http
ipfw pipe 1 config delay 200 bw 700kbit/s


To reset

ipfw flush