On Router I have following routig rule:
Code: Select all
/ip firewall mangle add chain=prerouting src-address-list=local dst-address-list=!local action=mark-routing new-routing-mark=route_to_proxy in-interface=!ether9
/ip route add dst-address=0.0.0.0/0 gateway=10.1.1.2 routing-mark=route_to_proxy
/ip firewall address-list add address=10.0.0.0/8 list=local
/ip firewall address-list add address=172.16.0.0/12 list=local
/ip firewall address-list add address=192.168.0.0/16 list=local
Now i need to NAT all local traffic on specific port ether9 (this interface is a WAN interface for my proxy) of router to both side.
Simply i need to put all Incoming and Outgoing Internet traffic through a Proxy.
How i can do this?