Hello,
I have been using chatgpt to sort out my problem, but i am not getting anywhere after few days.
What is my aim?
I want all of my Wireguard clients - once connected to the server, get the WAN public IP address.
Problem Statement:
I have successfully set up a WireGuard server on an XE300 router using a SIM card with a static IP (interface: wwan0). Clients can connect and function as expected. However, when I plug in a WAN connection (to eth1), the WireGuard client can not connect.
My Goals:
- Keep WireGuard running on
wwan0even wheneth1is connected. - Split the WAN (
eth1) and Cellular (wwan0) traffic so that WireGuard only listens onwwan0. - Route client traffic through
eth1once connected to WireGuard.
Questions:
1)How do I prevent eth1 from interfering with WireGuard's connection on wwan0?
2)How can I configure WireGuard to only accept incoming connections on wwan0?
3)How do I route WireGuard clients' traffic through eth1 (WAN) ?