Community discussions

MikroTik App
 
jengpom
just joined
Topic Author
Posts: 1
Joined: Mon Mar 04, 2024 1:02 pm

2ISP with balancing - how to redirect speedtest.com to use only ISP1

Mon Mar 04, 2024 1:11 pm

hi gurus,

I have 2 ISP and load balancing is already done with mangle in V7 mikrotik.
I wanted to all users on the network when they want to access a particular website or run a speedtest like speedtest.net and fast.com to always go to or passthrough ISP1 only. hope someone can help thanks in advance.
 
TheCat12
Member Candidate
Member Candidate
Posts: 178
Joined: Fri Dec 31, 2021 9:13 pm

Re: 2ISP with balancing - how to redirect speedtest.com to use only ISP1

Tue Mar 05, 2024 10:28 pm

Most easy would be through an address list which resolves the DNS-es of the desired sites to IPs, mangle and routing table:
/ip firewall address-list
add list=client_sites address=speedtest.net

/ip firewall mangle
add action=mark-routing chain=prerouting dst-address-list=client_sites new-routing-mark=client_traffic

/ip route 
add dst-address=0.0.0.0/0 gateway=ISP1_gateway routing-mark=client_traffic

Who is online

Users browsing this forum: Bing [Bot] and 32 guests