Community discussions

MikroTik App
 
User avatar
meverest
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Wed Jun 30, 2004 3:27 pm
Location: Geelong, Australia
Contact:

how to NAT on a DHCP defined interface

Mon Jul 11, 2005 7:41 am

Hello,

I would like to build a standard configuration of MT Router as generic hotspot system for deployment to multiple locations.

I wish to make the lan interface DHCP assigned so that i can just ship the device to the destination, then they just plug it into their network and it goes...

but in order to make the wireless segment work, I need to NAT the wireless network to the lan interface address - which i do not know until it is assigned.

How would i add this rule so that it will work with whatever ip address is assigned on the lan interface?

Thanks and regards, Mike Everest.
 
User avatar
Roman
Frequent Visitor
Frequent Visitor
Posts: 81
Joined: Wed Oct 06, 2004 11:24 am

Mon Jul 11, 2005 12:09 pm

you can do that using masquarading:
/ip firewall src-nat add action=masquerade out-interface=<outinterface>
 
User avatar
meverest
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Wed Jun 30, 2004 3:27 pm
Location: Geelong, Australia
Contact:

Tue Jul 12, 2005 2:03 am

Magnificent!

I thought I had tried that before, but couldn't get it to work. Now I do it again, and this time no problemo! :)

Thanks plenty,

regards, Mike.

Who is online

Users browsing this forum: HakanE, JohnTRIVOLTA, msatter, Onigma and 121 guests