Hello
I am working on Mikrotik v 3.30
I want to use Parent proxy but Connection is down to users if Parent proxy goes down, so i am asking if there is a way to make Mikrotik check this parent proxy every while and if it is down it he uses a direct connection.
all i want is a Method to check other proxy servers if it is working or not via mikrotik?
Yes. If you just want to watch for generic connectivity use NetWatch (see manual) to fire a script when the external proxy stops pinging, and another one when it starts pinging again. If you want to monitor on an application level make mangle/NAT rules that force the router itself through the proxy for specific transactions and schedule a script that in turn calls another script that sets a global to false, downloads the file, then sets the global to true. If the download fails (strong case that the proxy is down, but you MUST make sure the final download source is very, very reliable) that second script will error out and the global will never be set to true, so the first script can detect proxy failure and then take the appropriate actions.
Thanks for replay
for Netwatch i really try it but there is some proxys replar in ping but it is not replay in web proxy
and for
“If you want to monitor on an application level make mangle/NAT rules that force the router itself through the proxy for specific transactions and schedule a script that in turn calls another script that sets a global to false, downloads the file, then sets the global to true. If the download fails (strong case that the proxy is down, but you MUST make sure the final download source is very, very reliable) that second script will error out and the global will never be set to true, so the first script can detect proxy failure and then take the appropriate actions.”
Thanks for you
I got what you mean but just i want you to mention the commands to do the following actions and i will learn them and continue:
How can i force the router through the proxy?
How can i set the global to true or to false?
What you mean by monitor application level?
For example:
How can i downloads the file?
you can download the file using command “tool/fetch”
Yeah, I was wrong. Destination NAT is before output, so you can’t destination NAT router originated traffic. Instead of two routers you could also use a server behind the router that detects proxy failure and uses the API to make configuration changes but I agree that you can’t do it natively in one router.
ok is there a way to make another program check the proxy and change the mikrotik settings via windows but (Auto i mean) i have a program to check the proxy but how i can change the settings