Community discussions

MikroTik App
 
edmundas
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 55
Joined: Fri Nov 14, 2008 9:29 am

1 to 1 natting in hotspot from private to public address

Fri Apr 08, 2011 8:37 pm

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
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: 1 to 1 natting in hotspot from private to public address

Fri Apr 08, 2011 8:54 pm

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.
 
edmundas
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 55
Joined: Fri Nov 14, 2008 9:29 am

Re: 1 to 1 natting in hotspot from private to public address

Fri Apr 08, 2011 9:10 pm

so tht means i'll have 2 pools one for dhcp leases and other for hotspot
regards
ed
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: 1 to 1 natting in hotspot from private to public address

Fri Apr 08, 2011 9:35 pm

Yes.
 
edmundas
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 55
Joined: Fri Nov 14, 2008 9:29 am

Re: 1 to 1 natting in hotspot from private to public address

Sat Apr 09, 2011 9:28 am

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
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: 1 to 1 natting in hotspot from private to public address

Sat Apr 09, 2011 1:19 pm

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.
 
edmundas
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 55
Joined: Fri Nov 14, 2008 9:29 am

Re: 1 to 1 natting in hotspot from private to public address

Sun Apr 10, 2011 10:43 am

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
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: 1 to 1 natting in hotspot from private to public address

Sun Apr 10, 2011 6:48 pm

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?

Who is online

Users browsing this forum: No registered users and 24 guests