Guest User

Untitled

a guest
Apr 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. DEVICE=ppp0
  2.  
  3. INPUT_SPEED=20mbit
  4. OUTPUT_SPEED=10mbit
  5. LINKTYPE="local pppoe-llc"
  6.  
  7. interface $DEVICE world-in input rate $INPUT_SPEED
  8. class voip commit 120kbit # https://www.twilio.com/docs/api/client/regions
  9. match src 54.171.127.192/26 # Twilio: ie1
  10. match src 52.215.127.0/24 # Twilio: ie1
  11. match src 35.156.191.128/25 # Twilio: de1
  12. match src 185.187.132.64/26 # Twilio: ie1-tnx
  13. match udp port 5060 # SIP
  14. match udp dports 10000:10100 # RTP
  15. match sports 3478,5349 # STUN
  16. class interactive commit 20%
  17. match udp port 53 # DNS
  18. match tcp port 22 # SSH
  19. match icmp # ping
  20. match tcp sports 5222,5228 # gtalk
  21. class synacks
  22. match tcp syn
  23. match tcp ack
  24. class web commit 5%
  25. match tcp sports 80,443
  26. class mail
  27. match tcp sports 25,465,587
  28. class default
  29.  
  30. interface $DEVICE world-out output rate $OUTPUT_SPEED
  31. class voip commit 120kbit
  32. match dst 54.171.127.192/26 # Twilio: ie1
  33. match dst 52.215.127.0/24 # Twilio: ie1
  34. match dst 35.156.191.128/25 # Twilio: de1
  35. match dst 185.187.132.64/26 # Twilio: ie1-tnx
  36. match udp port 5060 # SIP
  37. match udp sports 10000:10100 # RTP
  38. match dports 3478,5349 # STUN
  39. class interactive commit 20%
  40. match udp port 53 # DNS
  41. match tcp port 22 # SSH
  42. match icmp # ping
  43. match tcp dports 5222,5228 # gtalk
  44. class synacks commit 2%
  45. match tcp syn
  46. match tcp ack
  47. class web commit 5%
  48. match tcp dports 80,443
  49. class mail
  50. match tcp dports 25,465,587
  51. class default
Add Comment
Please, Sign In to add comment