Advertisement
albspirit86

tproxy mikrotik

Nov 9th, 2014
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. /ip firewall mangle
  2.  
  3. add action=mark-routing chain=prerouting comment="TPROXY ROUTING" disabled=no dst-port=80 in-interface=HOTSPOT new-routing-mark=tproxy_rm passthrough=no \
  4. protocol=tcp
  5. add action=mark-routing chain=prerouting comment="TPROXY ROUTING" disabled=no dst-port=80,443 in-interface=LAN new-routing-mark=tproxy_rm passthrough=no \
  6. protocol=tcp
  7. add action=mark-connection chain=prerouting disabled=no dst-port=80,443 in-interface=TPROXY new-connection-mark=tproxy_cm passthrough=yes protocol=tcp \
  8. src-address=!192.168.5.2
  9. add action=mark-routing chain=prerouting connection-mark=tproxy_cm disabled=yes in-interface=!TPROXY new-routing-mark=tproxy_rm passthrough=no
  10.  
  11. /ip route
  12. add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.5.2 routing-mark=tproxy_rm scope=30 target-scope=10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement