Advertisement
ujiajah1

mikrotik set tproxy access

Jan 18th, 2016
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set interface name
  2. ether proxy
  3.  
  4. set ipaddress
  5. input ipproxy/subnet
  6.  
  7. add ipproxy in address_list= /ip firewall address list= ipproxy name= proxy
  8.  
  9. /ip routes
  10. add gateway = ip proxy
  11. distance = 1
  12. scope = 30
  13. target scope = 10
  14. routing_mark = via_squid
  15. ==========================================================
  16.  
  17. /ip firewall mangle
  18. add chain = prerouting
  19. dst.address = !ip proxy/subnet
  20. protocol = tcp
  21. any port = 80,182,443
  22. in interface = !proxy
  23. add action = mark-routing
  24. new routing mark =  via squid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement