# Generates a new keypair, if one exists already is asks you if you want to overwrite the existing one.generate wireguard keypair
#Show the private keyshow wireguard privkey
#Show the public keyshow wireguard pubkey
#Set wireguard virtual network interfacesset interfaces wireguard wg01 address '172.16.100.2/32'#set wireguard accept packets of network.set interfaces wireguard wg01 peer SERVER allow-ips '0.0.0.0/0'#Set connection to serverset interfaces wireguard wg01 peer SERVER endpoint '${server-wan-address}:50100'#Set how offten to send keep alives in secondsset interfaces wireguard wg01 peer SERVEr persistent-keepalive 15#Set public key for serverset interfaces wireguard wg01 peer SERVER pubkey '${server-pubkey}'#Set presharekeyset interfaces wireguard wg01 peer SERVER preshared-key gLdIlCM/AsobjfDgFK/cdgsAcjILTzLY4df5BskRcqY=#set static routing to client.set protocols static interface-route '172.16.100.0/24' next-hop-interface wg01
#Make the settings applied!commit
#save configurationsave
#Test wireguard connection