libreswan works on ipsec, encoding format
wg works on, l th route rules
libreswan server works with wg client

sudo apt install wireguard
greate key
wg genkey | tee privatekey | wg pubkey > publickey
add conf for peer
/etc/wireguard/wg0.conf
einable ip route for libreswan
/etc/sysctl.conf
net.ipv4.ip_forward = 1
after run
sysctl -p
wg run
sudo wg-quick up wg0

check allowedips in wg0 conf
allow any ip
Peer
AllowedIPs = 0.0.0.0/0