Solved

Two Subnets Separate Interfaces Communication Fix?

Posted on 2011-02-27
4
3,847 Views
Last Modified: 2012-08-14
Hello, all... thank you for your help in advance.

I have two networks running on a Mikrotik RB450G.  Here's what I wanted to accomplish:

Two subnets on two different interfaces:

eth1: WAN
eth2: LAN
eth5: LAN2
(ports 3 and 4 will be used later for switching)

eth2: LAN subnet: 10.10.23.0/24
eth5: LAN2 subnet: 172.16.23.0/25
Both of these subnets are in the firewall address list under a single name so they may share the firewall filter and nat rules.

I set up separate pools/dhcp servers for both interfaces.  It all seemed to go well except for the fact that I could ping between the subnets!  I was always under the impression they would not be able to communicate.

For example, a machine connected to eth5, received an IP of 172.16.23.124 and was able to ping every address on the other subnet residing in eth2 (10.10.23.0/24).  In short, I was able to get to any machine on the other interface.

The way I solved it is that I simply added a firewall filter entry that will drop any connection attempt on the input chain that is from interface LAN2 with a dst address of 10.10.23.0/24, and in the forward chain with an input interface of LAN2 and output interface of LAN.

Still with me?  Thanks!  :)

This solved the entire problem.  Neither subnet can communicate with the other, which is what I wanted.  Both interfaces can access the internet and the dns server on the 450G is serving them both well.

My question is... (FINALLY!):  Was this the proper method of accomplishing what I set out to do?  I really thought that if there were two interfaces running two different subnets they should inherently not be able to talk to each other.  Did I simply patch a hole without addressing another bigger issue, or is this the way it is supposed to work?

Thoughts/comments are appreciated.
0
Comment
Question by:SeaburyNorton
4 Comments
 
LVL 24

Assisted Solution

by:rfc1180
rfc1180 earned 80 total points
ID: 34993697
> Was this the proper method of accomplishing what I set out to do?
Simply yes, adding filters to deny between subnets is ultimately what you wanted to accomplish
0
 
LVL 13

Accepted Solution

by:
kdearing earned 90 total points
ID: 34993848
What you did is correct.
Some firewalls allow inter-vlan traffic by default, some don't.
Adding/modifying the security rules is the proper method.
0
 
LVL 2

Assisted Solution

by:BITCooler
BITCooler earned 80 total points
ID: 34993856
Sounds like you did a nice job.

Another way to accomplish this is a more manual approach, but also workable.
You would need an additional equipment.

Internet feed --> to WAN Port on Router (in bridge mode) serving multiple public IPs  -->> Router's Ethernet Port to -->> Port 1 on a basic 4-port switch (100/1000) switch (managed or unmanaged):

Switch Port 2) to -->> to Firewall A untrust Port, Subnet A -->> Switch A for Network A

Switch Port 3) to -->> to Firewall B untrust port, Subnet B -->> Switch B for Network B

Result: Two Networks, Two Subnets, One Internet Feed no cross talk.

Downside, higher equipment cost.  I would keep what you have.
0
 

Author Closing Comment

by:SeaburyNorton
ID: 34993897
A big thank you to all who answered!
0

Featured Post

Save on storage to protect fatherhood memories

You're the dad who has everything. This Father's Day, make sure your family memories are protected. My Passport Ultra has automatic backup and password protection to keep your cherished photos and videos safe. With up to 3TB, you have plenty of room to hold the adventures ahead.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have seen some questions on problems with SSH/telnet access to Cisco routers that may occur despite the fact that from a PC connected to your LAN, Internet connectivity is in place and users can access Internet sites without any issues.  There are…
Problem Description:   Couple of months ago we upgraded the ADSL line at our branch office from Home to Business line. The purpose of transforming the service to have static public IP’s. We were in need for public IP’s to publish our web resour…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now