# Two networks with different IP ranges in MikroTik

**URL:** <https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779>\
**Category:** General\
**Created:** [July 21, 2026, 7:06am UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779 "2026-07-21T07:06:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamidsaboori63](https://forum.mikrotik.com/letter_avatar/hamidsaboori63/32/6_449c533f586939b6e5f246632a46421f.png) [@hamidsaboori63](https://forum.mikrotik.com/u/hamidsaboori63)\
**Post date:** [July 21, 2026, 7:06am UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779/1 "2026-07-21T07:06:51Z")

</div>

Hello,

I have a MikroTik Router model RB951Ui-2HnD running version 7.23.2, and I have applied these settings to it:  
On port Ether1, I have setup the internet via a PPPoE client.  
On port Ether2, I have setup a network in the 192.168.1.x range with internet access.  
On port Ether3, I have setup a network in the 192.168.10.x range that does not have internet access.

However, I need the two networks clients with the 192.168.1.x and 192.168.10.x ranges to communicate with each other.

The other ports are not being used.

The problem is that clients in these two network ranges cannot see each other.  
I checked everything, but the only solution I found was to create three srcnat rules:

1. One for Ether2 traffic to the internet (from 192.168.1.0/24 to the public IP address).
2. One for Ether2 traffic to Ether3 (from 192.168.1.0/24 to the 192.168.10.1 address).
3. One for Ether3 traffic to Ether2 (from 192.168.10.0/24 to the 192.168.1.1 address).

This is the only way they can communicate with each other.

Are these three srcnat rules really necessary, or have I configured something incorrectly?

I am grateful for your help in advance.

---

<div class="post-metadata">

**Author:** ![BartoszP](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/bartoszp/32/1386_2.png) [@BartoszP](https://forum.mikrotik.com/u/BartoszP)\
**Post date:** [July 21, 2026, 7:19am UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779/2 "2026-07-21T07:19:17Z")

</div>

Hi,

please provide configuration:

> [@Forum rules](https://forum.mikrotik.com/t/forum-rules/173010/5):
>
> Hello and welcome to the Mikrotik forum smiley For all new users that uses RouterOS for the first time and have some questions regarding their config here is short tutorial on how to access RouterOS configuration using "WinBox" and how to export their configuration and posting it properly in their topic. So after you unpack your new device and connect it to the power supply you need to connect it to the PC. Be careful when connecting because to access your new router you need to use one of…

---

<div class="post-metadata">

**Author:** ![johnson73](https://forum.mikrotik.com/letter_avatar/johnson73/32/6_449c533f586939b6e5f246632a46421f.png) [@johnson73](https://forum.mikrotik.com/u/johnson73)\
**Post date:** [July 21, 2026, 8:38am UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779/3 "2026-07-21T08:38:48Z")

</div>

Mikrotik router has 2 sections - Input and Forward. Input section is for incoming traffic, and Forward - traffic that passes through the router. If you need to manage access strip networks, then this is usually done in the forward section. How to configure the firewall so that traffic works correctly - [rules and security](https://forum.mikrotik.com/t/about-the-security-category/262155/2)

Allow forwarding between the LANs. If you have firewall rules that drop forwarding, add rules like:

/ip firewall filter

add chain=forward src-address=192.168.1.0/24 dst-address=192.168.10.0/24 action=accept

add chain=forward src-address=192.168.10.0/24 dst-address=192.168.1.0/24 action=accept

---

<div class="post-metadata">

**Author:** ![DuctView](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/ductview/32/64158_2.png) [@DuctView](https://forum.mikrotik.com/u/DuctView)\
**Post date:** [July 21, 2026, 8:43am UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779/4 "2026-07-21T08:43:04Z")

</div>

I have started with a similar requirement

> [@hamidsaboori63](#):
>
> On port Ether1, I have setup the internet via a PPPoE client.  
> On port Ether2, I have setup a network in the 192.168.1.x range with internet access.  
> On port Ether3, I have setup a network in the 192.168.10.x range that does not have internet access.

I have started with a similar requirement, pre my first Mikrotik router and carried over the setup to my first Mikrotik router. What I did was to give addresses in both ranges to machines which should see each other and the internet and addresses in the restricted range to those machines which should not see the internet.

No need to do anything special with the router, just be able set up multiple IP addresses on some machines.I did dhcp for internet access and fixed IP for everything else.

These days, I do similar with vLANs

---

<div class="post-metadata">

**Author:** ![hamidsaboori63](https://forum.mikrotik.com/letter_avatar/hamidsaboori63/32/6_449c533f586939b6e5f246632a46421f.png) [@hamidsaboori63](https://forum.mikrotik.com/u/hamidsaboori63)\
**Post date:** [July 21, 2026, 9:19am UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779/5 "2026-07-21T09:19:13Z")

</div>

Hello, Thanks for your reply.

I had already tested both scenarios:

I placed the rules at the top of the firewall filter list, disabled the srcnat rules, and checked the logs.

I observed that the source client's requests were reaching the destination client using the source client's original IP address (e.g., 192.168.1.201 \> 192.168.10.100); even though I set them to "accept," the connection still failed.

However, when I enable srcnat and disable the filter rules, the client requests are first translated to the gateway's IP and then proceed to the destination client using that gateway IP (e.g., 192.168.1.201 \> 192.168.10.1 \> 192.168.10.100). In this case, the connection is established without any issues.

---

<div class="post-metadata">

**Author:** ![hamidsaboori63](https://forum.mikrotik.com/letter_avatar/hamidsaboori63/32/6_449c533f586939b6e5f246632a46421f.png) [@hamidsaboori63](https://forum.mikrotik.com/u/hamidsaboori63)\
**Post date:** [July 21, 2026, 9:23am UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779/6 "2026-07-21T09:23:33Z")

</div>

![mceu_24736294921784181304339](https://data-discourse.cdn.mikrotik.com/original/3X/0/6/0652070d52f3819f13101c70990262086250a8bc.webp)

 ![mceu_70267899411784181292311](https://data-discourse.cdn.mikrotik.com/original/3X/d/e/de47b11d99efbcf52e265bba99c9bc6b7a555a58.webp)

 ![mceu_73629698441784181316313](https://data-discourse.cdn.mikrotik.com/original/3X/0/8/08cf5746887b6bf5dafccd7d57779ca561a0efb7.webp)

 ![mceu_52110243831784181310910](https://data-discourse.cdn.mikrotik.com/original/3X/9/6/96ca1d006bff15d8dc4e4734864bc03046978e6b.webp)

 ![mceu_69684699451784181320569](https://data-discourse.cdn.mikrotik.com/original/3X/b/f/bf215fb64de5cafbb788d4dac17df0c6511709dc.jpeg)

These are the settings I have on the router.

Bridge1 consists of ether2 and wireless.

however, the wireless interface is disabled, so it effectively functions just like ether2.

---

<div class="post-metadata">

**Author:** ![BartoszP](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/bartoszp/32/1386_2.png) [@BartoszP](https://forum.mikrotik.com/u/BartoszP)\
**Post date:** [July 21, 2026, 12:57pm UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779/7 "2026-07-21T12:57:23Z")

</div>

Text export of the configuration would be better.

---

<div class="post-metadata">

**Author:** ![lurker888](https://forum.mikrotik.com/letter_avatar/lurker888/32/6_449c533f586939b6e5f246632a46421f.png) [@lurker888](https://forum.mikrotik.com/u/lurker888)\
**Post date:** [July 21, 2026, 4:35pm UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779/8 "2026-07-21T16:35:24Z")

</div>

You are confusing two things.

Routing simply means passing along the packets, and this means that the src address is passed along as-is. This is not some sort of weirdness, but exactly how it should work.

In some scenarios it may be necessary to change (translate) the src address to one in the same subnet as the destination. This is what srcnat does.

So... what you have to clarify or find out is what "the connection succeeds" means: what are the devices and what requirements they have as to where they accept connections from.

---

<div class="post-metadata">

**Author:** ![hamidsaboori63](https://forum.mikrotik.com/letter_avatar/hamidsaboori63/32/6_449c533f586939b6e5f246632a46421f.png) [@hamidsaboori63](https://forum.mikrotik.com/u/hamidsaboori63)\
**Post date:** [July 21, 2026, 5:16pm UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779/9 "2026-07-21T17:16:23Z")

</div>

Yes, exactly.

I understand what you mean.

I am familiar with these concepts.

Specifically, we are dealing with two Windows 10 computers across two subnets that are intended to communicate solely with each other (for instance, using ICMP for a ping). Without srcnat, the operation fails with a timeout error.

however, when srcnat is applied, and translating the src address to the destination gateway's address, the operation succeeds, and a reply is received.

---

<div class="post-metadata">

**Author:** ![lurker888](https://forum.mikrotik.com/letter_avatar/lurker888/32/6_449c533f586939b6e5f246632a46421f.png) [@lurker888](https://forum.mikrotik.com/u/lurker888)\
**Post date:** [July 21, 2026, 5:19pm UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779/10 "2026-07-21T17:19:12Z")

</div>

Windows has a default firewall that only allows pings from the same subnet.

Either turn off the firewall, modify the rule or simply don't use ping for testing. UDP will work fine as-is without srcnat.

---

<div class="post-metadata">

**Author:** ![npeca75](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/npeca75/32/1945_2.png) [@npeca75](https://forum.mikrotik.com/u/npeca75)\
**Post date:** [July 21, 2026, 5:23pm UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779/11 "2026-07-21T17:23:52Z")

</div>

> [@hamidsaboori63](#):
>
> using ICMP for a ping

in my windows days, i saw once that windows firewall blocking ICMP response for foreign source addresses ...  
ex if win is 192.168.0.2/24 it wont respond for ping from 10.2.2.4/24, only for pings comming from own /24 network regardless of valid default gateway

from this point of view, masquerading (srcnat) which you observed is understandable

---

<div class="post-metadata">

**Author:** ![hamidsaboori63](https://forum.mikrotik.com/letter_avatar/hamidsaboori63/32/6_449c533f586939b6e5f246632a46421f.png) [@hamidsaboori63](https://forum.mikrotik.com/u/hamidsaboori63)\
**Post date:** [July 21, 2026, 5:26pm UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779/12 "2026-07-21T17:26:51Z")

</div>

Thank you for your attention to this post.

I don't have access to the router and computers right now.

I will test this at work tomorrow (local time) and let you and the others know the result.

---

<div class="post-metadata">

**Author:** ![CGGXANNX](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/cggxannx/32/55490_2.png) [@CGGXANNX](https://forum.mikrotik.com/u/CGGXANNX)\
**Post date:** [July 21, 2026, 5:35pm UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779/13 "2026-07-21T17:35:57Z")

</div>

Here are [some screenshots](https://forum.mikrotik.com/t/wireguard-routing-to-lan-network/262885/4) of the Windows Defender Firewall inbound rules that by default only let ICMP echo requests from the same subnet through. You need to edit the rules, changing the remote address to _Any IP Address_ if you want your ping tests to succeed.

But this only affects ping. The services / apps that you really need to use (for example RDP) might or might not have that restriction enabled.

---

<div class="post-metadata">

**Author:** ![hamidsaboori63](https://forum.mikrotik.com/letter_avatar/hamidsaboori63/32/6_449c533f586939b6e5f246632a46421f.png) [@hamidsaboori63](https://forum.mikrotik.com/u/hamidsaboori63)\
**Post date:** [July 22, 2026, 12:04pm UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779/14 "2026-07-22T12:04:24Z")

</div>

Yes, the problem was exactly what you pointed out. Disabling the Windows firewall resolved the issue.

however, since creating firewall rules across all the Windows machines would have been too time consuming, I opted to meet the organization's requirements using `srcnat` rules instead.

Thank you for your input and guidance, as well as that of the others.

---

<div class="post-metadata">

**Author:** ![lurker888](https://forum.mikrotik.com/letter_avatar/lurker888/32/6_449c533f586939b6e5f246632a46421f.png) [@lurker888](https://forum.mikrotik.com/u/lurker888)\
**Post date:** [July 22, 2026, 12:45pm UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779/15 "2026-07-22T12:45:55Z")

</div>

The important thing is to understand the root cause. Sometimes, for practical reasons, it's not the purest solution that ends up being the best overall.

---

<div class="post-metadata">

**Author:** ![hamidsaboori63](https://forum.mikrotik.com/letter_avatar/hamidsaboori63/32/6_449c533f586939b6e5f246632a46421f.png) [@hamidsaboori63](https://forum.mikrotik.com/u/hamidsaboori63)\
**Post date:** [July 22, 2026, 4:08pm UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779/16 "2026-07-22T16:08:53Z")

</div>

Yes, exactly.

There is just one point that was a bit unclear to me.

In the 192.168.1.0/24 network, I have a system where the windows firewall allows Remote Desktop access only from a specific IP on another network (e.g., 192.168.10.101).

Even though srcnat translates requests from the 192.168.10.0/24 range to 192.168.1.1, Windows still sees the 192.168.10.101 IP and grants access.

How is it possible for the source IP to be translated yet still be recognized by Windows as the original source IP?

---

<div class="post-metadata">

**Author:** ![hamidsaboori63](https://forum.mikrotik.com/letter_avatar/hamidsaboori63/32/6_449c533f586939b6e5f246632a46421f.png) [@hamidsaboori63](https://forum.mikrotik.com/u/hamidsaboori63)\
**Post date:** [July 22, 2026, 4:11pm UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779/17 "2026-07-22T16:11:53Z")

</div>

Also, I would appreciate it if anyone could share any solutions or experiences regarding the issue linked below.

Thank you in advance for your cooperation.

> [@Issue with using the skin](https://forum.mikrotik.com/t/issue-with-using-the-skin/271777):
>
> Hello, I have an RB951Ui-2HnD router, and I have updated its RouterOS and RouterBOARD to the latest stable version, 7.23.2. I am using webFig and the "Design Skin" menu, I apply my desired restrictions and save the skin under a custom name. The save confirmation appears, and a file with that name is created in the "skins" folder within the "Files" menu. However, when I return to the "Design Skin" menu, only the "default" option is available for selection or editing. Similarly, in the "Syste…

---

<div class="post-metadata">

**Author:** ![lurker888](https://forum.mikrotik.com/letter_avatar/lurker888/32/6_449c533f586939b6e5f246632a46421f.png) [@lurker888](https://forum.mikrotik.com/u/lurker888)\
**Post date:** [July 22, 2026, 4:34pm UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779/18 "2026-07-22T16:34:14Z")

</div>

The principled answer is that there is really no way to do that. Once the src addr is altered, the information is lost from the perspective of the recepient.

The obvious solution is to NAT only when you have to. Either selectively where you need it, or excluding specifically where you don't want it.

Very often I find it useful to replace the action (in your case srcnat) with a jump to a custom chain that looks like this:

- if exclusion1, return
- if exclusion2, return
- nat everything else

---

<div class="post-metadata">

**Author:** ![hamidsaboori63](https://forum.mikrotik.com/letter_avatar/hamidsaboori63/32/6_449c533f586939b6e5f246632a46421f.png) [@hamidsaboori63](https://forum.mikrotik.com/u/hamidsaboori63)\
**Post date:** [July 23, 2026, 7:42am UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779/19 "2026-07-23T07:42:46Z")

</div>

So, how do you think we can establish a one way connection between two networks?

Suppose we want to enable Remote Desktop access from LAN1, but block all requests originating from LAN1 and destined for LAN2.

If we simply mark the network traffic moving from LAN1 to LAN2 using Mangle rules and then drop it in the Filter section, we won't achieve our goal.

It makes no difference whether we set the Mangle rule to the \*forward\* or \*prerouting\* chain.

in either case, the return traffic from LAN1 to LAN2 would also be dropped, effectively causing the Remote Desktop connection to fail.

---

<div class="post-metadata">

**Author:** ![CGGXANNX](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/cggxannx/32/55490_2.png) [@CGGXANNX](https://forum.mikrotik.com/u/CGGXANNX)\
**Post date:** [July 23, 2026, 8:09am UTC](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779/20 "2026-07-23T08:09:37Z")

</div>

No need to use mangle for that. Assuming RDP clients are in LAN1 and RDP server are in LAN2, just normal plain `chain=forward` filter rules in this order:

- Accept `in-interface=LAN1` + `out-interface=LAN2` + `protocol=tcp` + `dst-port=3389`
- Accept `in-interface=LAN1` + `out-interface=LAN2` + `protocol=udp` + `dst-port=3389`
- Drop `in-interface=LAN1` + `out-interface=LAN2`
- Drop `in-interface=LAN2` + `out-interface=LAN1`

Return traffic should work normally if you have the usual "accept established, related" rule in the forward chain placed above those rule.

Reverse the interfaces if the server is in LAN1 and clients are in LAN2.

[Next page](https://forum.mikrotik.com/t/two-networks-with-different-ip-ranges-in-mikrotik/271779.md?page=2)
