I
I
Igor2014-02-10 15:29:05
Network administration
Igor, 2014-02-10 15:29:05

MikroTik: how to redirect client traffic to another host?

d224cd2dab4f465fb5d412807e29639b.png
Addresses of MikroTik itself:
192.168.3.1 - on ether3
192.168.130.99 - on ether5
ether1 distributes the Internet
There is a network 192.168.130.0/24 connected to ether5. There is a client on this network with the address 192.168.130.10 . It is necessary to redirect client traffic 192.168.130.10 to another router that will distribute the Internet to it - to 192.168.3.11 192.168.3.11 itself
is already configured as a router: if you specify it as the default gateway for computers from 192.168.3.0/24 - everything works as clock

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
toha-tiger, 2014-02-10
@shanker

Try adding the following rules

route add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.3.11 routing-mark=tst scope=30 target-scope=10
ip firewall mangle add action=mark-routing chain=prerouting disabled=no new-routing-mark=tst passthrough=yes src-address=192.168.130.10
ip firewall nat add action=src-nat chain=srcnat disabled=no out-interface=ether3 src-address=192.168.130.10 to-addresses=192.168.3.1

I can't test it right now, but it might work

I
Igor, 2014-02-10
@shanker

Added a picture to the post. That's better?

S
Sergey SA, 2014-02-10
@resetsa

if 192.168.3.11 knows about the 130/24 network, then you can do without the last NAT rule

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question