X
X
xooler2014-08-30 03:45:19
Mikrotik
xooler, 2014-08-30 03:45:19

Mikrotik port forwarding from WAN to 2 ip addresses in LAN?

We have 951G which is connected to the Internet through the 1st port, which is usually called WAN
On the 1st WAN port, a static ip from the provider.
Raised DHCP + NAT
Further network format 192.168.60.x
We have a certain device with LAN and Wi-Fi interfaces to which connection is required on port 6811
The device was connected to the local network and issued ip on both types of interfaces. Further IP nailed to the MAC address:
The device does not work on two interfaces at once.
192.168.60.97 - when connected via LAN
192.168.60.98 when connected via Wi-Fi
Added a rule for receiving packets on port 6811 for WAN and Bridge in the Firewall.
Next, the rule for NAT - Chain to dstnat - tcp - dstn port 6811 - input interface WAN - Action to dst-nat - dtsn 192.168.60.97 - dstn port 6811
We knock from the Internet via WAN - everything works fine.
Then I add the same rule for the second type of connection to another IP and nothing works.
When the first rule is disabled, the second one starts working and vice versa. There was no such problem on the stupid d-link and dd-wrt. How to solve the problem?
ps
Maybe I don't see something obvious... Please don't kick too much :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Chornopolsky, 2014-08-30
@Voiddancer

Well, as it were, 1 forwarding to 1 address. It is logical that the packet will not go further if a rule suitable for it has already been found. Merge interfaces on the device or assign the same IP. Or write a script that will juggle the rules when a certain ip is available / unavailable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question