Simple problem with masquerade :)

Os version is 3.3.
Network look like:
(private) 192.168.0.254 ↔ wlan1 192.168.0.1 (MiktoTik) 212.212.212.2 ether1 ↔ 212.212.212.1 (internet)
I tried simple masquerade:
add chain=srcnat action=masquerade out-interface=ether1 (can’t ping 212.212.212.1)
Tried
add chain=srcnat2 out-interface=ether1 src-address=192.168.0.0/24 action=src-nat to-addresses=212.212.212.2 to-ports=0-65535 (not working)
If I add route on my gw 212.212.212.1 I can ping it from 192.168.0.254. Anyone maybe know what could be problem why masquerade isn’t working.
Basicly tried all combination I could find in help file :slight_smile: I need simple
echo “1” > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -s 192.168.0.0/24 -j MASQUERADE on mikrotik :stuck_out_tongue:

add chain=srcnat action=masquerade out-interface=ether1

should work fine, looks like misconfigured routing or some routes are missing

While I was writing message it started working. Tnx :slight_smile: