/ip firewall nat chain=srcnat out-interface=wlan1 action=masquerade
I see that my wlan1 connect to UBNT (my dhcp server) from its interface but I don't have internet behind routerboard, where should I look for to solve that ?1. Setup wlan1 (or whatever your wireless card is named) to connect up to the UBNT in station mode.
2. Add a DHCP client to the wlan1 interface (via ip -> dhcp-client)
3. Add an IP address to ether1 (or whatever you lan interface is named)
4. Add a DHCP server to your ether1 interface (via ip -> dhcp-server -> setup)
5. Make sure you have a src-nat rule for traffic heading out the wlan1 interface:
Eg:Code: Select all/ip firewall nat chain=srcnat out-interface=wlan1 action=masquerade
/ip firewall nat add chain=srcnat out-interface=wlan1 action=masquerade
Thank you very much, I was about to give up Mikrotik and your answers about the logic of the Mikrotik in my mind slowly started to create hint. Thank you master.Sorry, I did it from memory and forgot the add command.
That rule would be what you need to get access behind the routerboard, it allows the router to perform translation of the addresses on traffic coming in the ethernet interfaces heading out the other network that the wireless is connected to (because the upstream router doesn't know about the lan network you have or how to route packets back to it).Code: Select all/ip firewall nat add chain=srcnat out-interface=wlan1 action=masquerade
Thank you, I want to tell how to solve my problem for the people newbee like me.either add new dhcp server on wlan 2 with natting
or make bridge , add both lan (ether1) and wlan 2 as port
and make the dhcp server on the bridge
after resting the configuration
/ip firewall nat add chain=srcnat out-interface=wlan2 action=masquerade