pptp client over pppoe connection

hello

i have a mikrotik router with pppoe-client connection and i have a ppptp-client account i want to make it connect through pppoe connection and all traffic should pass through the vpn conneciton .. i connect the pppoe client first and when i connect the vpn client it connects but no traffic passes because i found in ip route the default route of pppoe client is inactive , how can i pass all traffic through vpn ?

regards

do not use “add default route” in pppoe-client
add a static route to your vpn server

ip route
add dst-address=vpn-server-ip gateway=pppoe-gateway

in pptp-client configuration use “add default route”

wow , great idea

thanks you it works fine