I'm trying to get WireGuard to work with using PPPOE as the connection on the WAN and get WireGuard to work. But I'm really stuck how to set it up on the router/LEDE. I have tried for days to get it to work but no luck.
The issue I'm having is the handshake is not happening. I have double checked the public key and its correct. I dont know where I'm going wrong. I'm stumped lol
Also, if you are using a standard server as the far-endpoint, you will likely need to enable IPv4 Forwarding (routing) and add a Masquerade rule.
#TO SETUP ROUTING AND FORWARDING ON SERVER
sudo sysctl -w net.ipv4.ip_forward=1
sudo iptables -t nat -A POSTROUTING -s < IP assigned to LEDE> -j MASQUERADE
You need to configure proper routes and/or firewall zone and firewall forward allow rules on the LEDE as well.
Thanks for all your help. I got it working in the end. I used "net.ipv4.conf.all.proxy_arp = 1" in the kernel that got it working couldn't work out the iptables.