Edit the wg0.conf file

Hello,

Anyone know where the wireguard conf file is? I cannot find it at /etc/wireguad/

Thank you all!

On the Linux client the file is stored in /etc/wireguard, the server does not use a configuration file. The WireGuard authentication and connection management in Pritunl does not support any other WireGuard clients.

Thank you for the reply. Quick as always!

I am seeing that when I do ‘wg show’ there is an interface wg3 that I thought was pritunl. I didn’t create a wireguard config myself.

What I am trying to do it something along the lines of:

PostUp = iptables -A FORWARD -i wg3 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i wg3 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE

Thank you!

The server_start and server_stop plugin handlers will include the interface name for the server which can be used to modify iptables.