lan 1 masquarade out interface wan
lan2 masquarade out interface wan
route print
DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 isp address 1
1 ADC 10.10.10.0/24 10.10.10.1 lan2 0
2 ADC 192.168.0.0/24 192.168.0.1 lan1 0
3 ADC isp isp wan 0
internet is working fine on both subnet
my question is how do i allow in local network that only ip adress 192.168.0.200 from lan1 can access on lan 2 and that the complete lan 2 can access only on that ip in lan1 ?
first of all thank you my friend for this rules, ok i will do that
by the way
can you explain to me friend what that mark means “!”
i see it before and google it but never find out what is serve for, posible you can help me ?
“!” means not. Therefore “!192.168.0.200” mean “not 192.168.0.200”
Your English is not very clear. If I understand you properly, you are trying to restrict access to lan2 from lan1 to only host 192.168.0.200. And also allow all hosts on lan2 to access only host 192.168.0.200 on lan1. Am I correct?
Yes you are corect. I only want from lan1 to alow ip addres 192.168.0.200 to access on lan2 network and from lan2 network all users can access on lan1 only ip 192.168.0.200 (the 192.168.0.200 is server and he must server request for some application on both networks lan1 and lan2), sory for bad english, here is requested information…
Since you can ping both lans from the mikrotik router then I suspect there might be a firewall on host 192.168.0.200 blocking traffic originating from outside its subnet. To test this assumption, source nat all packets from lan2 to lan1 and see if you can connect to 192.168.0.200 from lan2.
If you can connect to 192.168.0.200 from lan2 after implementing the rule above, then there is a firewall on 192.168.0.200 blocking traffic from outside its subnet.
You need to modify the firewall on host 192.168.0.200 to allow packets from 10.10.10.0/29.
Or
Use the scr-nat rule I gave you about to deceive host 192.168.0.200 into accepting packets from 10.10.10.0/29 believing that it is coming from 192.168.0.1, The down side of this is that host 192.168.0.200 see all packets coming from 10.10.10.0/29 as coming from 192.168.0.1.
hm… but how to modify the firewall on host 192.168.0.200 there is no firewall on him… the only firewall is mikrotik
Use the scr-nat rule I gave you about to deceive host 192.168.0.200 into accepting packets from 10.10.10.0/29 believing that it is coming from 192.168.0.1, The down side of this is that host 192.168.0.200 see all packets coming from 10.10.10.0/29 as coming from 192.168.0.1.
ok, how to put him in firewall rule to alow only to access host 192.168.0.200, i mean is this will gonna work ?
The internet is working on both lan1 (eth2) and lan2 (eth3). But, with this setting i cannot access from lan1 to lan2 and from lan2 to lan1.
@skillful my friend those commands top dont work, i am so confused mate. And i did disabled everthing from antivirus to default firewall… so frustrated…
Is there some simple command for connecting lan1 and lan2 together, and then, filter firewall rule that users from lan2 can only access ip address 192.168.0.200 in lan1