Site to Site Wireguard VPN no internet

Hi All,

I setup 2 routers on different locations and I was able to browse shared folders within the network on the other endpoint but the problem is, when Wireguard is active I cannot browse the internet and all of my apps like steam are getting disconnected.

Can anyone help me make Wireguard active and make the two routers connected 24/7 so I can browse the internet and browse shared folder on the other endpoint?

Here is my current setup below, I was able to access the shared folder on the other end and vise versa, its just that there is no internet connection.

Router 1

/etc/config/network:

config interface 'wg0'
option proto 'wireguard'
option private_key ' Router 1 privatekey'
option listen_port '23498'
list addresses '10.140.0.1/24'

config wireguard_wg0
option public_key 'Router 2 publickey'
option route_allowed_ips '1'
option persistent_keepalive '25'
option description 'Router 2'
list allowed_ips '10.140.0.2/32'
list allowed_ips '192.168.3.0/24'
list allowed_ips '0.0.0.0/0'

Router 2

/etc/config/network:

config interface 'wg1'
option proto 'wireguard'
option private_key ' Router 2 privatekey'
option listen_port '23498'
list addresses '10.140.0.2/24'

config wireguard_wg1
option public_key 'Router 1 publickey'
option route_allowed_ips '1'
option persistent_keepalive '25'
option description 'Router 1'
list allowed_ips '10.140.0.1/32'
list allowed_ips '192.168.1.0/24'
list allowed_ips '0.0.0.0/0'

I think you just need to remove the 0.0.0.0/0 IP from allowed IPs on each one.
That's telling it to route everything to that peer.

3 Likes

Hi lantis1008,

Thanks for your help, that did the trick. You are a life saver!

Thanks again!