from linux to mikrotik

Hello,

In linux box I had such rules:

ip rule add from 192.168.0.0/24 dev eth1 nat 195.14.163.248
ip rule add from 192.168.0.0/24 to 195.14.163.240/28 pref 2004 table main

In mikrotik first rule works fine, I’ve created src-nat.
My question how to add second rule in mikrotik. Everything that is going to 195.14.163.240/28 network from 192.168.0.0/24 must be without nat with original addresses?
It must be done in firewall or in route?

Thanks in advance

I’m not familiar with “ip rule” in Linux, but if it’s just exception from NAT rule, then you can add either:

a) dst-address=!195.14.163.240/28 to your srcnat rule (“!” means “not”)
b) accept rule with dst-address=195.14.163.240/28 before your srcnat rule (it will stop processing in given chain and won’t let it go to scrnat rule)

Thanks a lot, simple exclusion ! works.