nat in output chain?

Hello,
is it posible to change the destination address of localy generated traffic?

You will find your answer here:

http://www.mikrotik.com/testdocs/ros/2.9/img/packet_flow31.jpg

I do not understand, yes or no?

heheheh :open_mouth:
http://www.mikrotik.com/testdocs/ros/2.9/ip/nat.php

I read manual, wiki and search forum before asking.

Ok, I change my question, so:

How to change destination address of localy generated traffic?

What traffic router is sending ? (why do you need to change destination address) ?

There is an option to check-gateway=ping in routing table. I want to change the destination of these icmp packets. I want this example http://wiki.mikrotik.com/wiki/Two_gateways_failover_with_load_balancing to work with any destination of icmp packets not just gateway.

check-gateway can only be the gateway IP … it’s a built in function. If you want to design your own, don’t use check-gateway and use net watch function.

Sam

Changeip is correct, ‘tool netwatch’ should be used, if you wish to monitor another address. Netwatch provides you with more opportunities, as different scripts might be execute (not only action related to specific ‘ip route’ entry).

Maybe this is the way to go, but I do not understand how ‘tool netwatch’ works.

host=64.233.183.99 timeout=1s interval=10s

I found that with these settings netwatch pings ip 64.233.183.99 every 10 seconds and if ping succeeds the host is considered ‘up’, but if three successive pings timeout with timeout 1 second the host is considered ‘down’.

Do I am correct?

Information about netwatch options,
http://www.mikrotik.com/testdocs/ros/2.9/tools/netwatch_content.php#2.172.2