iI have two mikrotiks and I need to configure them, whereas in location A could have a VPN client and connect to the internet using VPN to VPN server in Mikrotik location B.
I set up B as L2TP server
/interface l2tp-server server set enabled=yes
/ppp secret
add local-address=x.x.x.x name=admin password=mikrotik profile=default-encryption remote-address=y.y.y.y service=l2tp
whereas x.x.x.x (B) and y.y.y.y (A) are both public IP
I setup A as L2TP client to connect to B
/interface l2tp-client
/add add-default-route=no connect-to=x.x.x.x disabled=no mrru=1600 name=l2tp password=mikrotik user=admin
I did add a route in location/mikrotik B (using routing mark), as follow
/ip firewall mangle
add action=mark-routing chain=prerouting new-routing-mark=l2tp-test src-address=y.y.y.y
/ip route
add disabled=no distance=1 gateway=l2tp routing-mark=l2tp-test
Note: both locations, have route 0.0.0.0 using different gateway (because of using different ISP).
What I face is.
The y.y.y.y which is on location A and suppose to have an internet connection (or routed via x.x.x.x) can’t use / connect to internet. It can ping both IP each other. But can’t ping others than the IP inside the boxes.
Could anyone has a clue? Thanks very much.