Hello
There are two hosts in this question, let’s name them klijent#1 and klijent#2. There are also 3 Mikrotik routers, name them R3, R2, and R1.
klijent#1 is connected to R3. R3 is connected to R2. R3 has default route to R2 so everything goes to R2.
R2 is then connected to R1.
The question is - how to make R2 to have a route towards 0.0.0.0 and that a gateway is 192.168.102.102, but ONLY if the packets are comming from 192.168.100.100.
If the packets are comming from every other address, then the other route must be used - 0.0.0.0 - and a different gateway - 192.168.1.254.
Picture:
http://www.imagesforme.com/show.php/234325_mojamrezacijela.PNG
Simplified: klijent#1 is a host which needs to connect to the Internet through klijent#2 which is a router connected to the internet. Klijent#1 must retains his abilities to connect to any address on the LAN, but any address on the LAN must NOT be able to use R2 as a default gateway and connect to the internet.
How to correctly configure the R2 ?
Thanks !!!