Community discussions

MikroTik App
 
genericusername
just joined
Topic Author
Posts: 3
Joined: Tue Oct 17, 2017 10:30 pm

Weird public IP to private IP problem

Tue Oct 17, 2017 10:43 pm

On my first ISP I have several public IPs with srcnat and dstnat in place to map them to customers on the internal network.

1.1.1.1 dstnat to 192.168.1.11 (Cust A)
1.1.1.2 dstnat to 192.168.1.12 (Cust B)
1.1.1.3 dstnat to 192.168.1.13 (Cust C)
...and so on.

But now I am routing them through a new ISP with a new set of IPs, and I am getting some difficult issues, which is making me wonder if I am routing properly. Customer A has an IP Phone that is no longer able to connect to their phone server, and after much troubleshooting, I have determined it is because they arent the first IP on the set of addresses I have assigned to the WAN interface of my router. Heres an example:

5.5.5.1 dstnat to 192.168.1.12 (Cust B)
5.5.5.2 dstnat to 192.168.1.11 (Cust A)
5.5.5.3 dstnat to 192.168.1.13 (Cust C)
...and so on.

I noticed that if I move Cust A to the first IP on the list, it starts working, but anywhere else, it doesnt. I hope I'm just missing something simple, thanks for your time.
 
Ape
Member Candidate
Member Candidate
Posts: 177
Joined: Sun Oct 06, 2013 3:32 pm
Location: Freiburg, Germany
Contact:

Re: Weird public IP to private IP problem

Wed Oct 18, 2017 6:01 pm

Hi,

just defining DST-NAT rules isn't the whole thing, because it only handles incoming traffic.
You need to define corresponding SRC-NAT rules aswell.

Regards,
Ape
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 2880
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: Weird public IP to private IP problem

Wed Oct 18, 2017 8:00 pm

Read this: viewtopic.php?f=2&t=126724&p=623599#p623599 post and quoted thread in it.
 
genericusername
just joined
Topic Author
Posts: 3
Joined: Tue Oct 17, 2017 10:30 pm

Re: Weird public IP to private IP problem

Thu Oct 19, 2017 12:08 am

Thanks for your replies, although I am doing both a SRCNAT and DSTNAT rule for each external IP I am pushing through to an Internal IP. It seems to only work properly for the first IP listed in the list of IPs assigned to the WAN interface of the Mikrotik.

Who is online

Users browsing this forum: baragoon, k6ccc, Lupin, maldridge, ramin110 and 110 guests