OpenWrt wireguard client with 2 wan interfaces

Hi,
I just installed OpenWRT (22.03.3, r20028-43d71ad93e) on my Onion omega 2+ (extended memory with sd card for 1gb).
I installed wireguard packages on omega and create wg interface:

config interface 'WG0'
	option proto 'wireguard'
	option private_key 'oH8IYLoUtl82Xre46ppSZ+6ERJUl//V667gEPOV871E='
	list addresses '10.10.10.10'
	option nohostroute '0'

config wireguard_WG0
	option description 'WGConnection'
	list allowed_ips '0.0.0.0/0'
	option endpoint_host 'ip'
	option endpoint_port '443'
	option persistent_keepalive '25'
	option force_link '1'

config route 'wg_route'
	option interface 'wwan'

Also, omega connected to my home wifi and it's wwan interface.
My question is how i can setup openwrt to forward all omega traffic to wireguard server?

See the route/rule configs at: Is there any way to implement cloudflare warp free vpn in OpenWrt router? - #44 by lleachii

  • Your interface name would be wg0
1 Like

Unless you have redacted it, the peer config is missing the public key of the remote peer (‘server’). Your wireguard connection will never work without that.

Remove that route at the bottom of your config excerpt, unless you plan to create manual routes (in which case, that is incomplete). If you’re not doing manual routes, you’ll want to enable the route_allowed_ips option.

2 Likes