Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /ip firewall mangle
- add action=mark-routing chain=prerouting comment="TPROXY ROUTING" disabled=no dst-port=80 in-interface=HOTSPOT new-routing-mark=tproxy_rm passthrough=no \
- protocol=tcp
- 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 \
- protocol=tcp
- add action=mark-connection chain=prerouting disabled=no dst-port=80,443 in-interface=TPROXY new-connection-mark=tproxy_cm passthrough=yes protocol=tcp \
- src-address=!192.168.5.2
- add action=mark-routing chain=prerouting connection-mark=tproxy_cm disabled=yes in-interface=!TPROXY new-routing-mark=tproxy_rm passthrough=no
- /ip route
- 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