Community discussions

MikroTik App
 
emikrotik
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 71
Joined: Fri Jun 19, 2015 9:30 am

AWS CHR dst-nat to host name

Wed Nov 08, 2017 3:57 am

Hello,

I am running a CHR instance as the edge device for my VPC.

I am hosting a web server behind CHR, I use a dst-nat rule to NAT the traffic to the server, I would now like to increase the scalability and implement a load balancer. When creating an ELB, you are given a hostname that resolves to a dynamic IP Address ( IP changes once every two - three days ) so if I use AWS ELB I would have to update my NAT rules frequently.

Has anyone had a similar experience and what was your workaround?

I understand you could use a NAT round-robin load balancer but you would not be able to check the health of an instance before NATting traffic there.

Should this be a feature request for CHR to support hostname in the To Address field?


Thank you.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: AWS CHR dst-nat to host name

Tue Dec 05, 2017 10:15 am

Just create a small script in Scheduler that will check if IP address changed and will update it in NAT rule

Who is online

Users browsing this forum: No registered users and 12 guests