T
T
Timur2013-10-17 22:21:55
openvpn
Timur, 2013-10-17 22:21:55

Internet drops out when connecting to OpenVPN (Win 7)

Guys, tell me please, in network technologies I am not boom-boom.
I only use OpenVPN to set up a LAN over the internet between my Win 7 machine and a remote Debian server. VPN does not provide access to the Internet, and when I connect, the Internet disappears (everything goes through OpenVPN)
I googled. Honestly, but all I found was either questions or answers like “see routes”, but I don’t understand anything about them. Tell me please

OpenVPN client config
client
dev tun
proto udp
remote MyServerIP
port 1194
resolv-retry infinite
ca ca.crt
cert client.crt
key client.key
tls-client
tls-auth ta.key 1
auth MD5
cipher BF-CBC
ns-cert-type server
comp-lzo
persist-key
persist-tun
verb 3
mute 20

route print /4 before connecting to VPN
IPv4 таблица маршрута
===========================================================================
Активные маршруты:
Сетевой адрес           Маска сети      Адрес шлюза       Интерфейс  Метрика
          0.0.0.0          0.0.0.0      192.168.1.1      192.168.1.2     25
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
      192.168.1.0    255.255.255.0         On-link       192.168.1.2    281
      192.168.1.2  255.255.255.255         On-link       192.168.1.2    281
    192.168.1.255  255.255.255.255         On-link       192.168.1.2    281
    192.168.237.0    255.255.255.0         On-link     192.168.237.1    276
    192.168.237.1  255.255.255.255         On-link     192.168.237.1    276
  192.168.237.255  255.255.255.255         On-link     192.168.237.1    276
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0         On-link       192.168.1.2    281
        224.0.0.0        240.0.0.0         On-link     192.168.237.1    276
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
  255.255.255.255  255.255.255.255         On-link       192.168.1.2    281
  255.255.255.255  255.255.255.255         On-link     192.168.237.1    276
===========================================================================


route print /4 after connecting to VPN
IPv4 таблица маршрута
===========================================================================
Активные маршруты:
Сетевой адрес           Маска сети      Адрес шлюза       Интерфейс  Метрика
          0.0.0.0          0.0.0.0      192.168.1.1      192.168.1.2     25
     10.121.223.0  255.255.255.252         On-link      10.121.223.2    511
     10.121.223.1  255.255.255.255     10.121.223.1     10.121.223.2    255
     10.121.223.2  255.255.255.255         On-link      10.121.223.2    511
     10.121.223.3  255.255.255.255         On-link      10.121.223.2    511
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
      192.168.1.0    255.255.255.0         On-link       192.168.1.2    281
      192.168.1.0    255.255.255.0     10.121.223.1     10.121.223.2    255
      192.168.1.2  255.255.255.255         On-link       192.168.1.2    281
    192.168.1.255  255.255.255.255         On-link       192.168.1.2    281
    192.168.237.0    255.255.255.0         On-link     192.168.237.1    276
    192.168.237.1  255.255.255.255         On-link     192.168.237.1    276
  192.168.237.255  255.255.255.255         On-link     192.168.237.1    276
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0         On-link       192.168.1.2    281
        224.0.0.0        240.0.0.0         On-link      10.121.223.2    511
        224.0.0.0        240.0.0.0         On-link     192.168.237.1    276
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
  255.255.255.255  255.255.255.255         On-link       192.168.1.2    281
  255.255.255.255  255.255.255.255         On-link      10.121.223.2    511
  255.255.255.255  255.255.255.255         On-link     192.168.237.1    276
===========================================================================



Please tell me how to solve the problem

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Dubrovin, 2013-10-17
@XAKEPEHOK

You have the following route coming to OpenVPN:
192.168.1.0 255.255.255.0 10.121.223.1 10.121.223.2 255
it redirects to the local network for the same network, so traffic for gateway 192.168.1.1 goes to the VPN. If there is no control over the other end of OpenVPN, then one of the following can be done:
1. route add -p 192.168.1.1 192.168.1.2 2. route
delete 192.168.1.0 mask 255.255.255.0 10.121.223.1
after re-establishing the connection, it will appear again)
3. Change the addresses in the local network (on the computer and on the router) of the 192.168.1.0 grid to another.

T
Timur, 2013-10-17
@XAKEPEHOK

We are talking about OpenVPN. It doesn't have "Use default gateway on remote network" setting

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question