Can Make mikrotik check if extrnal web proxy is working or ?

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?

Thanks for People who is help others.

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.”

Would you please give me some samples

Sorry, I won’t have time to script that out beyond general suggestions.
Maybe someone else will.

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”

Just this what i want for now.

Any Help!!

Huuuuuup

Please fewi help just tell me

How can i force the router through the proxy?
How can i set the global to true or to false?

and i will Make all scripts


Please help no one else answer

unfortunately, you cannot dst-nat connections of local facilities… so at least you need two routers…

Chupaka
that if i want to do this “make mangle/NAT rules that force the router itself through the proxy for specific transactions”

What about the main problem

“all i want is a Method to check other proxy servers if it is working or not via mikrotik?”

is there any way to do this in your mind?

sorry, I can’t see the way to do it by ROS means… I’d post it if I know…

Thanks for help brother

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.

and what is API?

API is a way your program may interact with router… you need additional server anyway

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

can you give as name of programme

What you mean by give as name

it seems you are Masri i am also

he means, ‘give us’ =)

what program do you use for proxy checking?

Chupaka that what i mean

iam lebanes :smiley: