WireGuard - Unable to route 2 peers

Hi all! I've a problem setting up WireGuard with 2 peers - namely, only 1 of the peers have access to the LAN and to the Internet.

More details:

  • Added first peer, my laptop, ticked the option "route peer" - success! Laptop has access to the LAN and the Internet through the WG inerface (checked with browserleaks, DNS is the one set on the router)

  • Added second peer, my travel router (AR750s, named slate in config), ticked the option "route peer" - Success!

  • HOWEVER! After adding the second peer, if I connect my laptop, it has NO network access (no LAN, no Internet). I tried: deleting my laptop from the config, and re-adding it. It works! But now the travel router as NO network access (no LAN, no Internet)... What gives? Thanks in advance for your help :slight_smile:

My WG network config:

config interface 'wg0'
	option proto 'wireguard'
	option listen_port '1234'
	option private_key 'server private key'
	list addresses '10.20.40.1/24'

config wireguard_wg0
	option description 'slate'
	option public_key 'travel router public key'
	list allowed_ips '10.20.40.3/24'
	option route_allowed_ips '1'
	option persistent_keepalive '25'

config wireguard_wg0
	option description 'laptop'
	option public_key 'laptop public key'
	list allowed_ips '10.20.40.4/24'
	option route_allowed_ips '1'
	option persistent_keepalive '25'
1 Like

Replace /24 with /32.

2 Likes

Yes! vgaetera again to my rescue :slight_smile: Big thanks!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.