I need a script that will identify the 0.0.0.0/0 route that all the default traffic is going out on, read the route and see what interface it is using and then be able to change that to a different interface depending on what it finds
actually scratch my last request, it may be too complicated. i’m thinking of a far simpler idea but its going o require a less variable volatile system.
Is there a way to get a script to read and write a variable to a txt file
WARNING!!!
On RouterOS the maxmimum length of a String variable are 4096 Byte
also the maximum dimension of one file used a variable storage are 4096 Byte
and any Array have maximum size of “the sum of lenght of all single elements on Array” + “number of Array elements” <= 4096 Byte!!!
My ucapped adsl gets throttled if abused too much but that throttle is based on a 10 day rolling window. So I have 2 of these account and roll them every 10 days.
Basically I was going to have both the accounts dialed and have the script change the 0 routes dst every 10 days but then I came up with a better idea. Have one disabled and the other enabled. This way I have two 0 routes and won’t conflict. Then have the script just diable and enable the accounts however it would need to be sure of what account it enable last even if the router were to lose power