Peer generator - possible to set default values/templating ?

Started by sierramike, Today at 02:47:27 PM

Previous topic - Next topic
Hi everyone,

I'm using OpnSense since some years now and I really like it. I've started using the Wireguard VPN for road warriors (laptops and smartphones), I like the Peer generator feature, but the "endpoint" parameter is empty and the DNS parameter is absent.

Is there a way to modify the template that is used in the generated setup text so that the endpoint would be initialized with my desired value "vpn.mydomain.tld:12345", and the DNS parameter in the [Interface] section would be set to 10.1.2.3 (IP of my DNS server) ?

So that I don't need to modify this manually each time I create a peer.

Thanks a lot