View: Limit bandwith for a specific protocol on MacOS

  1. 10 years ago by reorx
    1. # MacOS is able to limit bandwith form specific protocol or source-ip on the fly. Creating an bandwidth limtation rule won't break your download
    2.  
    3. #Build a pipe with a limited bandwidth (example 1Mbits/s)
    4. sudo ipfw pipe 1 config bw 1Mbit/s
    5.  
    6. #Assign a rule to redirect the protocol on that pipe (for example http from www.example.com)
    7. sudo ipfw add 1 pipe 1 proto tcp src-port 80 src-ip www.example.com
    8.  
    9. #You can show your pipe like that
    10. sudo ipfw pipe show
    11.  
    12. #Delete the created pipe with that both comands
    13. # delete the redirection rule :
    14. sudo ipfw del 1
    15. # delete the pipe :
    16. sudo ipfw pipe 1 delete
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1105"></script>

0 comment about "Limit bandwith for a specific protocol on MacOS"