I want the hotspot users to change from 192.168.X.X to the public IP after login. Generally on NAS without VLANs we would simply assign the first IP from the public pool like 2.2.2.1 in this to the LAN facing interface and Natting would work like charm.
But since VLANs are there I cannot assign the IP on the LAN interface (confirmed by checking). So whenever user logs in, he is shown as active under hotspot but no page is opening in his computer.
Where am I wrong?
Thanks, I will try it and update. Actually I didn’t want to mean exactly NAT. I have enough public IPs available. So basically I will create a empty bridge interface acting as a loopback interface and assign the first IPs of the available public IP pools there on it. Right?
You aren’t using DHCP for the HotSpot, how are clients suppossed to get the gateway address?
AFAIK you need to create a DHCP server with the public IP pools, setting the proper gateway (45.121.110.129 and 45.121.109.1) for each DHCP network so that hotspot clients get a gateway address.
I am afraid yours is kind of messy and non practical setup (from management standpoint) I wouldn’t use hotspot but PPPoE, lots of advantages: saving public IPs, neater setup, control over remote clients…
I think right now the problem is router doesn’t know how to reach public ips from its side, can you ping from the router to the static addresses?
Is there any specific reason to use hotspot in your scenario?
Yes planning to migrate to PPoPE. Using hotspot for company branding and giving some info to users like maintenance etc.
Also hotspot for auto login via MAC.
You can also “intercept” users HTTP traffic and redirect it to a web server to provide info, maintenance warnings, etc while using PPPoE, by using ip > firewall > nat.
No they cannot ping 8.8.8.8 after login…
Yes they appear on active hosts after login.
There is some communication issues with the public IPs after client login.
This is not a production setup, so minimal filter rules.