Saturday 24 December 2016

Mikrotik: Use multiple public IP in single WAN interface

In some cases, there are more than one public IPs given by ISP for users. For example, business packages that are very pricey.

How to configure for each device/interface to get the specific public IP?

Of course, in stock routers given by ISP, they teach us to use Unnumbered IP, which for some reasons are not as easy as using NAT in Mikrotik.

Network Address Translation (NAT).

First, you need to determine that the address are already added inside the IP > Address in Mikrotik. If not, you should do so.

/ip address add address=<public ip here> interface=<wan/pppoe client interface here>

After making sure it is available, go ahead to IP > Firewall > NAT. Add the src-nat and dst-nat translation to your specific network address/interface.

/ip firewall nat
add chain=dst-nat action=dst-nat dst-address=<public ip here> to-address=<local server address>

add chain=src-nat action=src-nat src-address=<local server address> to-address=<public ip here> out-interface=<wan/pppoe client interface here>

If public IP on the server returning wrong/same public IP please check if you already have a masquerade rule that applies to all interface and address. If you do so, add a new rule at the end of ruleset and disable the masquerade rule. This will allow you to select the public IP that is default in the network.

/ip firewall natadd chain=src-nat action=src-nat to-address=<public ip here> out-interface=<wan/pppoe client interface here>

15 comments:

  1. I haven’t any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us. https://192-168-i-i.com

    ReplyDelete
  2. Our credit repair services work to fix past credit mistakes and verify credit report accuracy. Talk to a credit repair expert today!  bezoek website

    ReplyDelete
  3. wow, great, I was wondering how to cure acne naturally. and found your site by google, learned a lot, now i’m a bit clear. I’ve bookmark your site and also add rss. keep us updated. Visit website

    ReplyDelete
  4. It is imperative that we read blog post very carefully. I am already done it and find that this post is really amazing. privacyonline.com.br

    ReplyDelete
  5. I read that Post and got it fine and educational. what is my ip location

    ReplyDelete
  6. i read the blog and the content of the blog is very good too and for more information check here.whatismyip

    ReplyDelete