Hello,
I have 2 ISP links.
Link A
Link B
There is a website (website x) which works well with only Link B.
All our customers are connected over Link A and Link B is only a fail over.
How do I redirect website X to open via Link B?
Thank you.
Sent from my COR-AL00 using Tapatalk
Use mangles facility to mark the traffic going to that site and then route it through the ISP you want…
Hello Zach,
Thanks.. I need help with the script fpr tgis please.
I can mark the traffic to the website but how do I route it to the Link B. Do I add another rule? Add the interface (in or out)
Please help.
Thanks
Sent from my COR-AL00 using Tapatalk
Can i see your Mangles configuration ?
I have added just the first rule to mark all the traffic pf the website x coming in.
/ip firewall mangle
add chain=prerouting src-address=websitex action=mark-routing new-routing-mark=test
Need help how to mark this traffic to Link B
Thank you
Sent from my COR-AL00 using Tapatalk
Well i will suggest you an easier way…
Forget about mangles…
Under ip route rules create a rule with src ip your PC and dst adress your Site…
In the Table field set a name like “xyz”
Finally in ip routes create a default route wity the GW you wish and with routing mark name “xyz”…
Now every time the specific src address tries to reach the dst address of the site, the “xyz” table will be looked that will route the traffic through the GW specified…
In case you want to continue with mangles, src address should be your computers IP, dst address the website…
Then for the routing mark you created you should make a new route entry as above…
So now I have a different issue.
Unable to keep both WAN links on same time.
Sent from my COR-AL00 using Tapatalk
What do you mean ? I dont really understand…
Right now no traffic is flowing from Link B
Sent from my COR-AL00 using Tapatalk
Provide more details please…
No traffic through link B even if dst is the website ? Or not ?
What of the suggestet methods did you use ? Mangles or Policy routing Rules ?
Export the config of the method you used… + ip routes
Looks like its a IP route issue.
As per the PCC method I hace added the IP routes.
/ ip route
add dst-address=0.0.0.0/0 gateway=10.111.0.1 routing-mark=to_ISP1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.112.0.1 routing-mark=to_ISP2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.111.0.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.112.0.1 distance=2 check-gateway=ping
Now if I disable: add dst-address=0.0.0.0/0 gateway=10.111.0.1 distance=1 check-gateway=ping
Then the traffic flows from Link B
Sent from my COR-AL00 using Tapatalk
Excuse me but i see no routing marks in your ip routes… it is obvious you did not follow my suggestion.
So how do you expect it to work ?
Also, where is the mangles or route rules config ?
I have added them all. Followed exactly as per this manual:
https://wiki.mikrotik.com/wiki/Manual:PCC
Sent from my COR-AL00 using Tapatalk
Yes but in addition to that you want a specific traffic to a website to be routed through a specific gateway, always…
That is not covered by this article…
You have to add what i suggested in my earlier post…
Hello Zach,
Leave aside what I am trying to achieve.
First thing there is no traffic flowing from Link B using the PCC rules.
Sent from my COR-AL00 using Tapatalk
Just for testing, the per-connection-classifier value configure it to both addresses and ports…
When you do tell me if there is traffic in both links, you can test it with speedtest for example…
Then return the value of classifier to its previous value…
Didn’t work.
Its the IP routes creating issues.
If the Link A static routes is disabled and Link B static route is active only then traffic flows via Link B
Sent from my COR-AL00 using Tapatalk
Your ip routes are fine, obviously there is something wrong inside your mangles rules..