NAT 1:1 forwarding a public IP to a private one does not work

Базовая функциональность RouterOS
zainalara
Сообщения: 1
Зарегистрирован: Сегодня, 07:07

NAT 1:1 forwarding a public IP to a private one does not work

Сообщение zainalara »

NAT 1:1 forwarding a public IP to a private one does not workHi guys, please help me figure this out.

I have a pool of white IPs. Everything works fine except for 1:1 NAT. I need to assign a public IP to the gray IP. Masquerading allows the gray IPs to access the Internet as expected.


A little about the Mikrotik configuration:
White addresses 66.64.28.2/26 to 66.64.28.62/26 are specified on the external interface. ARP settings are Enabled.
The interface to the internal network is 10.77.77.1/24.
The gateway to the provider is 66.64.28.1.
I was able to bind one of the white IPs to my computer - the white 66.64.28.26 to the gray 10.77.77.26.
When I create two more rules, srcnat and dnat, the Internet doesn't work for the next IP. The dnat rule shows zero packets, even though the first two work like clockwork, as if I'm not behind a NAT.
For example, I want to add 66.64.28.29 to 10.77.77.29, and nothing. I tried simply substituting .29 into the working rules without adding new rules, and instead of .26, I simply changed .29, and still nothing...

57 of the 61 addresses are partially working, 55, etc. I've tried all 61, and half of them don't work. I can't figure out why this is happening .
Аватара пользователя
Chupaka
Сообщения: 4181
Зарегистрирован: 29 фев 2016, 15:26
Откуда: Минск

Re: NAT 1:1 forwarding a public IP to a private one does not work

Сообщение Chupaka »

Please show your NAT rules

> 57 of the 61 addresses are partially working

Partially? What does that mean? Only SRC or only DST part?..