Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /ip firewall mangle
- add action=mark-packet chain=postrouting comment="======================PROXY-HIT======================" disabled=no dscp=12 new-packet-mark=proxy_hit \
- passthrough=no
- add action=mark-routing chain=prerouting comment="======================TP-PROXY======================" disabled=no dst-port=80,8080 in-interface=ether3-HOTSPOT \
- new-routing-mark=tproxy_rm passthrough=no protocol=tcp
- add action=mark-connection chain=prerouting disabled=no dst-port=80,8080 in-interface=ether2-PROXY new-connection-mark=tproxy_cm passthrough=yes protocol=tcp \
- src-address=!192.168.2.3
- add action=mark-routing chain=prerouting connection-mark=tproxy_cm disabled=no in-interface=!ether2-PROXY new-routing-mark=tproxy_rm passthrough=no
- /ip route
- add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.2.3 routing-mark=tproxy_rm scope=30 target-scope=10
- /queue tree
- add name="0.PROXY-HIT" parent=global packet-mark=proxy_hit priority=1 max-limit=80M
- - See more at: http://www.silfalink.wc.lt/2015/02/tp-proxy-mangle-mikrotik.html#sthash.m2Wi2TIK.dpuf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement