Creating proxy for VPN (Wireguard updated script)

Thanks for the reply, and it worked thank you! Though I did not use L2TP because ProtonVPN doesn’t support it. I’m using IKEv2 and the only thing I changed from your script is:

  1. I didn’t enter this
/interface l2tp-client add connect-to=[vpn server] disabled=no ipsec-secret=[shared secret] name=my_vpn password=[password] use-ipsec=yes user=[username]
  1. For routing, gateway should be the IP of ProtonVPN’s automatic dst-address in the route list already available, so it was in my case 10.1.0.0 and gateway should be 10.1.0.1
/ip route add gateway=10.1.0.1 routing-mark=through_vpn

Thanks again! I didnt know it was doable via web-proxy, been trying to figure out with socks v5.