Good day.
Im a bit confused.
I have setup pppoe client on my rb2011 and added the following rules on my mikrotik.
/ip firewall mangle
add action=mark-routing chain=prerouting new-routing-mark=ADSL1 passthrough=\
no src-address=192.168.4.0/24
add action=mark-routing chain=prerouting new-routing-mark=ADSL1 passthrough=\
no src-address=192.168.0.0/24
/ip firewall nat
add action=masquerade chain=srcnat out-interface=pppoe-out1 routing-mark=\
ADSL1
/ip route
add distance=1 gateway=pppoe-out1 routing-mark=ADSL1
I have enabled “use peer dns” on interface pppoe-out1
192.168.0.0/24 is directly connected on ether1
192.168.4.0/24 connected on remote AP two hops away, reachable with OSPF
Here is my problem.
192.168.0.0/24 can access internet if computer dns/gateway is set to use router ip address
192.168.4.0/24 unable to access internet when computer dns/gateway is the same as router ip address, but internet work when I change dns on computer to remote dns( 8.8.8.8 )
Any suggestions?
Thank you