Community discussions

MikroTik App
 
petertarodi
just joined
Topic Author
Posts: 1
Joined: Sun Jan 13, 2019 12:15 pm

nat different vlan-s with same ip subnet

Sun Jan 13, 2019 12:38 pm

Hi

I would like to ask for help.

We have three "Black" boxes in our factory to supervise production machines.
The configuration of the boxes is the same and fixed, only the WAN port settings can be changed. The ports of the boxes:
WAN -> dhcp client -> connected to the company's internal management network
Service-> 192.168.157.100 with dhcp server, High-Access Port, On-Site Local Connection
Internal-> 192.168.152.1 with dhcp server-> physically separated network with its own switch

Engineers would like to access the service port from the company's internal network:
client <route> site1 mgmt network 172.16.115.11 <NAT> VLAN125 Box1 service port 192.168.157.100
client <route> site1 mgmt network 172.16.115.21 <NAT> VLAN126 Box2 service port 192.168.157.100
client <route> Site2 mgmt network 172.16.215.11 <NAT> VLAN225 Box3 service port 192.168.157.100
I was able to publish a box with "global" NAT at the second site:
add action = dst-nat chain = dstnat dst-address = 172.16.215.11 to-addresses = \ t
192 168 157 100
add action = src-nat chain = srcnat dst-address = 192.168.157.100 to-addresses = \ t
192 168 157 119

The service port gateway is fixed, it is not possible to set up the Mikrotik router but with srcnat the access works.

How do I get the two boxes with the same IP from two VLANs to NAT into the internal management network at the first site?
I tried to play inbound inbound interfaces but failed to make a working configuration.


thanks
Peter

The second plan uses a separate router for each box :)

Who is online

Users browsing this forum: jaclaz, Uqbar and 45 guests