M
M
Maxim Valerievich2015-09-22 19:15:46
macOS
Maxim Valerievich, 2015-09-22 19:15:46

How to limit speed on Mac OS with pf + dn?

Hello. I read a bunch of manuals, man to pf and dn, but nothing happens. I create a pipe, I create a rule in dn, but the speed is not limited. Not on old not on new connections.
Can anyone help?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
poige, 2019-09-09
@poige

And there everything is quite simple, like. Here is one example.

  • Set the delay in ms:
    sudo dnctl pipe 10 config delay 500
  • Check for loopback:
    ping -c3 127.0.0.1
    PING 127.0.0.1 (127.0.0.1): 56 data bytes
    Request timeout for icmp_seq 0
    64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=1001.083 ms
    64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=1000.730 ms
    64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=999.967 ms
    
    --- 127.0.0.1 ping statistics ---
    3 packets transmitted, 3 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 999.967/1000.593/1001.083/0.466 ms

  • Didn't find what you were looking for?

    Ask your question

    Ask a Question

    731 491 924 answers to any question