some of my customers use a router in there home. The mikrotik is giving out IP addresses to devices behind there router. How do i stop it so that Hotspots dhcp only gives to there router. and then there router would handle internal devices?
Set up their router to NAT traffic on its interface facing your Hotspot. At that point the Hotspot only sees the IP address of the router, and the router - being a layer 3 hop - will already be using only its own MAC address. At that point the Hotspot will only see the router, and all devices behind it will be hidden away.
It is impossible that you’re giving DHCP to devices behind a router unless that router is configured as a DHCP relay agent and your DHCP server is specifically configured to serve the different network behind that router. If clients behind that device are receiving DHCP addresses on the same subnet then that device isn’t a router, it is a switch. In that case your solution is to introduce routers, and not switches. Maybe you are confusing the universal NAT feature with DHCP? How are you determining that your router is handing out DHCP leases to devices behind client routers?
Also, why are you using a Hotspot for what appears to be permanent customers? Wouldn’t PPPoE be a much better fit?
originally setup as Hotspot cause i was able to “figure out” how to set speeds haha
Can PPPoE do bandwidth throttling as good as hotspot?
Also was easy way for my employees to add a customers Radio MAC to list then select the speed they were paying for.
My only issue is now, I have alot of customers that need different Gateways and Im having to build Mangle for each user that needs a different Gateway then the default one. PPPoE make this any easier?
AND TO THIS QUESTION:
How are you determining that your router is handing out DHCP leases to devices behind client routers?
The Hotspot Active list is showing the customers RADIO MAC 2+ times with different IPs, I check and each IP is for a computer on the otherside of there router.
Yes, PPPoE should work better for you. The wiki has the manual - read up on it and try it out.
That isn’t DHCP, that’s universal NAT. The customer routers aren’t set to NAT on their WAN interfaces if you can see inside IPs. This isn’t something you solve on your Hotspot router, it needs to be solved on their router.
You can set the address pool on the Hotspot to ‘none’ to turn off universal NAT.
If I turn off Addres Pool in the Hotspot. Will the MT router still give out an IP for the customers radio and router?
Setup:
MT Router ----> Ubiquiti wireless <—> Ubiquiti Customer Radio <----> Cus Router <—> cus computer(s)
I need MT to give out IPs to both ubiquiti Customer radio and Cus Router.
(in the list of IP’s givin out, im not seeing the customers computer MAC. Its showing the Ubiquiti radios IP for as many IPs that got taken from customer connected devices)
Again, universal NAT has nothing to do with DHCP handing out leases.
To your earlier question, yes PPPoE (in Mikrotik routers) can do rate limits.
PPPoE may help with the different gateway situation, but thats a complicated discussion. General Hint though, create as many IP pools as gateways, and using sufficient radius server, assign each customer to be allocated from appropriate pool for that customer, and create mangle rules that apply to the pools (rather than the customers).
ajaywi
Did you ever get this fixed? I am seeing the same thing. but I am seeing the same mac trying to pull more then one IP.
using station mode or station-wds mode? you need station-wds.
Check if you hotspot allows to have two or three or more ips per MAC.