-------------I still have a problem. There's block of IP addresses and I want that every client who is connecting via hotspot have his own public IP. With rule which I add in this topic that dont works. Does anyone know what is the problem? To all my clients which are connected via hotspot, when they go on http://www.whatismyip.com it show 220.127.116.11 (main ip of mikrotik)
-------------I understand. I dont want that my clients have static IP, I want them to have dinamic. What I want to do is maping of local IP addresses 10.10.1.1-10.10.1.128 to public 18.104.22.168-22.214.171.124. About DHCP server, I dont even use mikrotik DHCP server. I use some other that is running on other machine, since I have two gateways in my network (prepaid and postpaid) and mikrotik DHCP dont have
that option with who I could reserv some IP and add him using of some other gateway and dns.
what I want to do is 128 rules and they will do a maping of local ip to public ip
---------------------------is the ip dynamic or static? that's irelevant. I want to maping
local 10.10.1.1 on public 126.96.36.199
local 10.10.1.2 on public 188.8.131.52
local 10.10.1.3 on public 184.108.40.206 etc...
Rule below should do that, but in my case that dont work:
/ip address add address=220.127.116.11/32 interface=Public
/ip firewall nat add chain=dstnat dst-address=18.104.22.168 action=dst-nat \
/ip firewall nat add chain=srcnat src-address=10.10.1.1 action=src-nat \
-----------------so, what do you think that is cousing me so much problems. is it possible that the reason is that I don't use mikrotik DHCP server?
I did it, but I still have same problem...You can try to make sure that your NAT rules are ABOVE All your other rules, By that i mean at the top of the list, and the wait about 10 SEC and repair your "Customer SIDE Internet Connection so they get the DHCP address again and then try it, all should be good!
-------------I have on same mikrotik pppoe server and pool for pppoe, there's one part of the addresses which are for pppoe users and when those users are connected they get public IP and on net that public IP belong to them, still I only have problems with hotspot
----------------when I disable HotSpot, everything work fine...
------------I have two gateways, one is mikrotik (10.10.0.2) for postpaid users and the other one is antamedia (10.10.0.5) for prepaid users. On dhcp server which I use I can set that some mac addresses are using one and some others are using other gateway, but with mikrotik dhcp server that is not possible.
I try to create a valid pool and add him to HOTSPOT server but without results