DHCP CLIENT NAT PROBLEMS

I have a problem. Here is my Setup

DSL MODEM GIVE OUT DHCP from ISP to PUBLIC INTERFACE On my MT Router // I use the Masquerade Everything rule for internet to my Privete address 10.0.0.x// Also i use a dst nat src nat rules to have my public ip routed to my Server. it works great but when my Public Ip changes I get knocked off the net because the Rules are sending the info to an UNKown address. so is there a way to say dst nat send to What ever my DHCP address is that i get from my ISP? Also this Address Changes around 2 times a week or more. Thanks For any Help

Joe

Remove the public IP address from the src-nat and dst-nat rules; instead, specify the public interface. This should work fine.

I am not able to do this under the action, I can only enter or leave black the IP ADDRESS??

What version of Mikrotik are you running?

Config:
Chain = srcnat
Out. Interface = Public (dhcp client interface)
Action = masquerade

Oh yeah, that’s right. Basically, just leave the IP address field blank, and then go back to the General tab where you can select the in/out interface.

For your src-nat rule, you’d want to select your public interface for the “Out. Interface” field (and leave the “In. Interface” field greyed out if you already have a “Src. Address” specified). In this way, it will scr-nat to the first IP address on your public interface – in this case, it’ll use the IP address your ISP hands out to your router. :slight_smile:

Edit: In my last post I said to remove the IP address from the dst-nat rule too – don’t do that though, it should be fine the way it is. Just change your src-nat rule like we said and you should be golden.