Community discussions

MikroTik App
 
warez
just joined
Topic Author
Posts: 17
Joined: Tue Jun 28, 2011 1:44 pm

Two or more route table with equal networks on Mikrotik

Mon Aug 26, 2013 3:09 pm

Hello!
Purpose: make VPN for different companies (green and red on pictures) and get internet for him. (netwoks companies must be isolated)

1) Sheme:
Image
2) Sheme
Image

1) In first case, i configurate different routes on router - and OK. Use Ip Firewall Filter rules for isolate networks.
2) In second case, situation - more interest. Two companies have equal IP networks.

I do two route tables on central router: r_company1 и r_company2
and write route paths:
net 192.168.1.0/24 - route to ovpn-office1 with Routing-Mark=r_company1
net 192.168.2.0/24 - route to ovpn-office2 with Routing-Mark=r_company1
net 0.0.0.0/0 - route to Internet with Routing-Mark=r_company1

net 192.168.1.0/24 - route to ovpn-office3 with Routing-Mark=r_company2
net 192.168.4.0/24 - route to ovpn-office4 with Routing-Mark=r_company2
net 0.0.0.0/0 - route to Internet with Routing-Mark=r_company2

In IP Firewall Mangle write rules:

prerouting in-interface=ovpn-office1 mark Routing-Mark=r_company1
prerouting in-interface=ovpn-office2 mark Routing-Mark=r_company1
prerouting in-interface=ovpn-office3 mark Routing-Mark=r_company2
prerouting in-interface=ovpn-office4 mark Routing-Mark=r_company2
similar write rules for every ovpn tunnel for input and output chains.

Solutions is work! But CPU usage very hi, when traffic is big:-(
Can you help me to do this config more good?
 
User avatar
StubArea51
Trainer
Trainer
Posts: 1739
Joined: Fri Aug 10, 2012 6:46 am
Location: stubarea51.net
Contact:

Re: Two or more route table with equal networks on Mikrotik

Tue Aug 27, 2013 2:25 am

What kind of equipment is it on and how much traffic is flowing through the tunnels?
 
warez
just joined
Topic Author
Posts: 17
Joined: Tue Jun 28, 2011 1:44 pm

Re: Two or more route table with equal networks on Mikrotik

Tue Aug 27, 2013 8:18 am

I use RB951G, RB2011xxx. and planned use x86 PC router or CCR.
Traffic: 10-30Mbit
But question about of soft config, and not hardware equipment.
 
CelticComms
Forum Guru
Forum Guru
Posts: 1765
Joined: Wed May 02, 2012 5:48 am

Re: Two or more route table with equal networks on Mikrotik

Tue Aug 27, 2013 6:02 pm

You can also add the interface(s) for the two companies to VRFs in /IP Routes to get them to use alternate routing tables.
 
warez
just joined
Topic Author
Posts: 17
Joined: Tue Jun 28, 2011 1:44 pm

Re: Two or more route table with equal networks on Mikrotik

Wed Aug 28, 2013 11:15 am

I think about it. But has some problems.
Can you get simple example for VRF with TWO EQUAL IP NETWORKS.

Who is online

Users browsing this forum: No registered users and 25 guests