MikroTik + Squid

hello dear,
kindly suggest me the way that i would use squid proxy with mikrotik in a way that if my squid server shutdown due to electricity failure or any other reason my traffic would by pass automatically directly to WAN and on returning back (getting on ) the squid server it start caching again but won’t interrupt internet. ?

you can achieve it by using simple netwatch script.

Something exactly you are look for . . .

http://aacable.wordpress.com/2013/01/10/mikrotik-netwatch-script-to-detect-target-server-link-act-accordingly/

Its a netwatch script which will keep track of target server, and if if fails to probe it, it will disable the nat rule which redirects traffic going to squid.