You are on page 1of 2

Automatic by pass proxy mikrotik (tested!!

dedisetiaji.wordpress.com

It will be necessary if the proxy in our network to crash or dead, so that the clients will automatically bypass of the proxy and connect directly with the router.

This step is used when in our network, there is Proxy integrated and the topology as follows:

To be able to make such a topology on this blog please read on


http://dedisetiaji.wordpress.com/2011/05/09/proxy-hit-mikrotik-nat-proxy-external-mikrotik/

This step is used by using tools from the NetWatch mikrotik. How can it be done ..! Let's see ^ ^

Description:
Lan IP: 192.168.0.1/24 Proxy IP: 192.168.3.10/24

Ports are redirected to the proxy 3128 (depending on the proxy settings) 1. Be sure to nat proxy as follows:
add action = dst-nat chain = dstnat comment = RedirectToProxy disabled = no dst-port = \ 80 in-interface = "To LAN" protocol = tcp to-addresses = 192.168.3.10 to-ports = \ 3128

2. Go to file - the script (this dicopas in terminal)


0 name = "ProxyDown" owner = "dedication" policy = ftp, reboot, read, write, policy, test, Winbox, password, sniff, sensitive last-started = jun/02/2011 06:27:08 run-count = 5 source =: log info "ProxyDown" / ip firewall nat set [find comment = "RedirectToProxy"] disabled = yes

1 name = "ProxyUp" owner = "dedication" policy = ftp, reboot, read, write, policy, test, Winbox, password, sniff, sensitive last-started = jun/02/2011 06:25:20 run-count = 2 source =: log info "ProxyUp" / ip firewall nat set [find comment = "RedirectToProxy"] disabled = no

Note the comments in the grout between the proxy and script that had been made earlier. Mandatory SAME! 3. Go to tools - NetWatch (Copy paste these in the terminal)
/ Tool NetWatch

add comment = "" disabled = no down-script = ProxyDown interval = host = 192.168.3.10 \ 10s timeout = 1s up-script = ProxyUp

The red should be noted, therefore for any naming or addressing different IP address each computer network.

You might also like