Page 1 of 1
1 to 1 natting in hotspot from private to public address
Posted: Fri Apr 08, 2011 8:37 pm
by edmundas
Hi,
How to setup for 1 to 1 natting in hotspot where clients will be getting private addresses from dhcp server and hotspot doing 1 to 1 natting to public ip address.
regards
ed
Re: 1 to 1 natting in hotspot from private to public address
Posted: Fri Apr 08, 2011 8:54 pm
by fewi
Make an IP pool consisting of the public IP addresses and assign it to the Hotspot server instance.
Be aware that this is going to turn on Universal NAT, which will poison NAT everything behind the Hotspot interface. Clients will be unlikely to be able to talk to one another directly.
Re: 1 to 1 natting in hotspot from private to public address
Posted: Fri Apr 08, 2011 9:10 pm
by edmundas
so tht means i'll have 2 pools one for dhcp leases and other for hotspot
regards
ed
Re: 1 to 1 natting in hotspot from private to public address
Posted: Fri Apr 08, 2011 9:35 pm
by fewi
Yes.
Re: 1 to 1 natting in hotspot from private to public address
Posted: Sat Apr 09, 2011 9:28 am
by edmundas
its not working. Ppl are unable to get login page. I cant ping to them too. Here is scenario
Pool 1 : 172.16.0.1/24
Pool 2 : 28.122.8.0/24
Pool 1 is given to dhcp
Pool 2 is given to hotspot server
I can see host in hotspot where 172.16.0.x is converted to 28.122.8.x. In arp table all entries are for 28.122.8.x ips. But users are unable to get login page.
reg
ed
Re: 1 to 1 natting in hotspot from private to public address
Posted: Sat Apr 09, 2011 1:19 pm
by SurferTim
I use the same ip pool for both DHCP and the hotspot. In my test router, both are dhcp_pool1. You must NAT them to the subnet assigned to the hotspot interface. If you have 172.16.0.1/24 assigned to the hotspot interface, that is the addresses you should be issuing.
I guess you can assign the public ip subnet to the hotspot interface and have your ISP route the public ips to your router. More complex tho. This requires one public subnet on your WAN interface and another public subnet assigned to the hotspot interface and routed to the WAN ip by your ISP. Otherwise, it won't work. No internet connection.
Re: 1 to 1 natting in hotspot from private to public address
Posted: Sun Apr 10, 2011 10:43 am
by edmundas
i'd already done tht and explained in the post
1 pool for dhcp which is private ip
2nd pool for hotspot which is public ip
all public ips are routed but users dont get login page
regards
ed
Re: 1 to 1 natting in hotspot from private to public address
Posted: Sun Apr 10, 2011 6:48 pm
by fewi
Before troubleshooting this any further, why are you trying to do this, anyway? Wouldn't it be much easier to just give out the public IPs via DHCP than to give everyone a private IP and then NAT everyone as a second step?