Answer the question
In order to leave comments, you need to log in
VPN connection: dynamic route, bldg. DNS | GRE tunnel?
Greetings!
Gentlemen, I have a general question on the optimal organization of the connection between home and corporate networks, which consists of several sub-questions.
So, at work there is a LAN network (192.168.32.0/25) and a VPN for accessing the Internet (192.168.33.0/25). External IP of the VPN server: 91.215.218.123, also known as the DNS server.
Everything is trivial at home: 192.168.1.0/24; external IP white, dynamic.
It is necessary to organize a connection between the home and corporate networks, but at the same time:
a) without using the corp. networks in the form of a common;
b) There must be one DNS server that would resolve the names of corp machines. networks and global names.
I. _ Routing.
Everything is standard here. On the home Win-machine (192.168.1.20) I set a permanent route to access the corp. networks:
route add 192.168.32.0 MASK 255.255.255.128 192.168.33.85 IF 38 METRIC 1 -p
- where "IF 38" (192.168.33.85) is the IP of the VPN. ===========================================================================
Список интерфейсов
38...........................VPN
11...f4 d1 08 2b 64 ca ......Intel(R) Wireless-AC 9462
===========================================================================
IPv4 таблица маршрута
===========================================================================
Активные маршруты:
Сетевой адрес Маска сети Адрес шлюза Интерфейс Метрика
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.20 50
91.215.218.123 255.255.255.255 192.168.1.1 192.168.1.20 51 // нафег не нужен
192.168.1.0 255.255.255.0 On-link 192.168.1.20 306
192.168.1.20 255.255.255.255 On-link 192.168.1.20 306
192.168.1.255 255.255.255.255 On-link 192.168.1.20 306
192.168.32.0 255.255.255.128 On-link 192.168.33.85 36 // добавленный маршрут
192.168.32.127 255.255.255.255 On-link 192.168.33.85 291
192.168.33.85 255.255.255.255 On-link 192.168.33.85 291
224.0.0.0 240.0.0.0 On-link 192.168.1.20 306
224.0.0.0 240.0.0.0 On-link 192.168.33.85 291
255.255.255.255 255.255.255.255 On-link 192.168.1.20 306
255.255.255.255 255.255.255.255 On-link 192.168.33.85 291
===========================================================================
Постоянные маршруты:
Сетевой адрес Маска Адрес шлюза Метрика
192.168.32.0 255.255.255.128 192.168.33.85 1
===========================================================================
route add 91.215.218.123 MASK 255.255.255.255 192.168.32.1 IF 38 METRIC 1 -p
As a result, the table is as follows:Список интерфейсов
38...........................VPN
11...f4 d1 08 2b 64 ca ......Intel(R) Wireless-AC 9462
===========================================================================
IPv4 таблица маршрута
===========================================================================
Активные маршруты:
Сетевой адрес Маска сети Адрес шлюза Интерфейс Метрика
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.20 50
91.215.218.123 255.255.255.255 192.168.1.1 192.168.1.20 51 // по-прежнему нафег не нужен
91.215.218.123 255.255.255.255 192.168.32.1 192.168.33.85 36 // добавленный маршрут
192.168.1.0 255.255.255.0 On-link 192.168.1.20 306
192.168.1.20 255.255.255.255 On-link 192.168.1.20 306
192.168.1.255 255.255.255.255 On-link 192.168.1.20 306
192.168.32.0 255.255.255.128 On-link 192.168.33.85 36
192.168.32.127 255.255.255.255 On-link 192.168.33.85 291
192.168.33.85 255.255.255.255 On-link 192.168.33.85 291
224.0.0.0 240.0.0.0 On-link 192.168.1.20 306
224.0.0.0 240.0.0.0 On-link 192.168.33.85 291
255.255.255.255 255.255.255.255 On-link 192.168.1.20 306
255.255.255.255 255.255.255.255 On-link 192.168.33.85 291
===========================================================================
Постоянные маршруты:
Сетевой адрес Маска Адрес шлюза Метрика
192.168.32.0 255.255.255.128 192.168.33.85 1
91.215.218.123 255.255.255.255 192.168.32.1 1
===========================================================================
Answer the question
In order to leave comments, you need to log in
For a tunnel with an office, a permanent tunnel, if it is required by work - an admin, for example, is not an option, but actually a necessity, moreover, a tunnel that fits exactly with the router (hardware), and not with the software server on the virtual machine (because the host holding the virtual machine can lie corny).
I don't know what about GRE - but here IPSec easily rises in the so-called roadwarrior mode, when "your" IP may be generally unknown in advance, you only know the IP of the gateway.
With Windows, I really did not succeed. Mikrotiki knitted like this, linux and android.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question