A
A
alexpy52020-07-30 18:01:32
VPN
alexpy5, 2020-07-30 18:01:32

Can't access router address 192.168.8.1 with VPN (wireguard) enabled?

Request to those who know to help with this question:

Configured VPN wireguard. The Internet is working.
But there is a problem with resources in the local network, in particular, I can’t access the web interface of the router 192.168.8.1

My config file for wireguard
------------------------ -------------
[Interface]
PrivateKey =
Address = 10.0.0.2
DNS = 155.193.104.40

[Peer]
PublicKey =
AllowedIPs = 0.0.0.0/0
Endpoint = 155.193.104.40:35698
PersistentKeepalive = 25
-------------------------------


As I understand it, this setting sends absolutely all traffic through vpn, even when I want
to access local resources.

Please tell me what can be done

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alex1478, 2020-07-30
@alex1478

Two options:
1. Manually add a separate route for 192.168.8.0/24 through 192.168.8.1. Wireguard does not yet have the ability to exclude networks or execute commands after the interface is brought up.
2.

AllowedIPs = 0.0.0.0/5, 8.0.0.0/7, 11.0.0.0/8, 12.0.0.0/6, 16.0.0.0/4, 32.0.0.0/3, 64.0.0.0/2, 128.0.0.0/3, 160.0.0.0/5, 168.0.0.0/6, 172.0.0.0/12, 172.32.0.0/11, 172.64.0.0/10, 172.128.0.0/9, 173.0.0.0/8, 174.0.0.0/7, 176.0.0.0/4, 192.0.0.0/9, 192.128.0.0/11, 192.160.0.0/13, 192.169.0.0/16, 192.170.0.0/15, 192.172.0.0/14, 192.176.0.0/12, 192.192.0.0/10, 193.0.0.0/8, 194.0.0.0/7, 196.0.0.0/6, 200.0.0.0/5, 208.0.0.0/4, 8.8.8.8/32

A
Andrey Barbolin, 2020-07-30
@dronmaxman

Show those routes on PC after raising VPN
ip ro

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question