I have this configuration 1 433ah ros4.5 with Hotspot enable and dhcp enable (172.20.1.1/24) on a eth1 interface - 1 other AP in bridge mode connected to eth interface.
1 client mikrotik cpe ros4.5 connect to AP - dhcp-client enable on wlan1(cpe) interface with ip from main dhcp-server 172…
internal ip 192.168.0.1/24 on eth of cpe and nat masquerade (out iface wlan1) in the cpe firewall
the problem is in the hosts of Hostspot sometimes I see private ip of cpe like 192.168.0.100(laptop pc) in hosts. With mac address of cpe I see the right client ip 172..and 192.168.1.100.
I try to explain my setup, but I ask to a friend with direct mikrotik hotspot/AP and the same problem.
RB433AH(with HotSpot config)----ETH-BRIDGE----AP(COMPEX)=-=-=-=-WIFI=-=-=-=-CLIENT-CPE---------PRIVATE-LAT-ETH
ENABLE DHCP 172.20.1.1/24 172.20.1.2 172.20.1.100 MASQ 192.168.1.1/24
ON ETH WLAN ETH
RB433AH(with HotSpot config)----ETH-BRIDGE----AP(COMPEX)=-=-=-=-WIFI=-=-=-=-CLIENT-CPE---------PRIVATE-LAT-ETH
ENABLE DHCP 172.20.1.1/24 172.20.1.2 172.20.1.100 MASQ 192.168.1.1/24
ON ETH WLAN ETH
You are showing that you are masquerading the 192.168.1.1/24 IP. That isn’t a valid entry for a firewall rule (it would be 192.168.1.0/24 for network address). Please post the output of “/ip firewall nat print”.
where ethernet1 address 192.168.1.1/24 with dhcp from 192.168.1.100 to 192.168.1.200
and wlan1 in dhcp-client 172.20.3.130/24 with gateway 172.20.3.1 the 433ah with hotspot
(bridged interfaces between hotspot and CPE are not relevant)
If you have that setup AND you are seeing the 192.168.1.0/24 addresses on the hotspot AND you have the rule you posted on the CPE, then there is a problem with the CPE mikrotik. I’d suggest sending a supout to support@mikrotik.com, as it sounds a little like there are packets that SHOULD match the srcnat rule that are being missed.
Yes my setup is like you write. Ok, but I think is some configuration problem because I see this problem for different CPE.
I see the private ip under HOSTS of AP HOTSPOT and now I do this:
The second statement (with address=0.0.0.0/0) should NOT be needed, other than it will block any IP space that is not part of the first statement from getting out on the hotspot. Really, neither one is necessary.