Thank you @Johnex this is the documentation useful when you decide to install a L2TP/IPSec server inside your router.
My concern is about the data flowing between the GL.iNet router and the home VPN server.
I wanted to configure my ARM300M as a client, then connect my local devices to it and finally jump inside the internet.
I agree with Alfie. IPsec is an old protocol, slightly faster than OpenVPN but not much, orders of magnitude slower than Wireguard. You are better off replacing your setup with a server that runs Wireguard, and have Wireguard on your AR300m.
Yes, indeed. In the mean time I’ve discovered you can “simply” configure a raspberry with pihole and pivpn.
PiVPN lets you configure OpenVPN or Wireguard as options. I’m stuck in the Wireguard configuration at the moment. I expect I can also connect my ARM300M once fully configured.
The wrong side is you need an application in every device you try to connect, but that’s well embeded inside the mobile operating system (both of them recognize a system vpn) but traffic is tuneled inside the app.
The good part is both kinds of VPN are safer encrypted. Wireguard is expected to be lighter, also.