Hello Everyone,
I Have a Routerboard which is configured as eth1 WAN1(111.119.XXX.XXX)
and eth2 WAN2 ( 183.87.XXX.XXX) and eth3 LAN Network.(192.168.200.0/24)
/Ip Firewall NAT and Masquerade. So my LAN Goes through WAN2
My WAN1 is the link through which i want to route all the youtube packets coming in from LAN network.
So that all the youtube request pass through WAN1 without any bandwidth Restriction.
Please Help me with this routing issue..tried watching many online videos but couldnt get it.
Thanks & Regards
SAMAR
You would have to use routing marks I think, and you’d have to know the IPs of the Youtube servers.
First make an address list of youtube IPs in IP > Firewall, Address Lists. Create an entry for each IP and specify AL_YOUTUBE for the name.
Then in IP > Firewall, Mangle add a rule
Chain=forward (or maybe prerouting), Dst. Address List: AL_YOUTUBE, Action: Mark Routing, New Routing Mark: ROUTE_WAN1
Then in IP > Route, add another route
Dst. Address=0.0.0.0/0, Gateway=Wan1, Routing Mark: ROUTE_WAN1
Now youtube packets are going out wan1, however their src address is your private IP. So you need to masquerade them to have the WAN1 public IP.
IP > Firewall, NAT
Add a NAT Rule
Chain: srcnat, Out.Interface:Wan1, Action: Masquerade