Page 1 of 1

masquerading srce-nat still showing internal IP

Posted: Thu Jun 25, 2015 12:03 pm
by WirelessRudy
How can it be my AP in the associated CPE list at times still shows an internal IP of an attached MT CPE?
The CPE is functioning as router and has scr-nat rule to masq. all internal IP to its wlan IP.

In some occasions I see this, and usually an update or just a reboot solves the issue. But it should not happen, isn't it?
/ip firewall nat
add action=masquerade chain=srcnat comment="Masq all other lan ip to dynamic wlan ip" src-address=192.168.50.0/24 \
    to-addresses=0.0.0.0

Re: masquerading srce-nat still showing internal IP

Posted: Sat Jun 27, 2015 12:10 am
by lordkappa
Use
out-interface=
instead of
to-addresses=
Masquerade used without an out-interface specified is liable to wreak all kinds of havok. :? That's likely causing your issue.

Re: masquerading srce-nat still showing internal IP

Posted: Sat Jun 27, 2015 10:36 pm
by WirelessRudy
Use
out-interface=
instead of
to-addresses=
Masquerade used without an out-interface specified is liable to wreak all kinds of havok. :? That's likely causing your issue.
well, always used the masq. for the internal network. Ever seen that in an example on the wiki/forum years ago. Since then (10+ years) doing this. But I can give your suggestion a try. Basically it does the same but more general and specific so why not....