V
V
vituha_812019-10-25 15:02:46
openvpn
vituha_81, 2019-10-25 15:02:46

I want to know the answer to the question, why does OpenVPN, when raised, send the default gateway settings not 0.0.0.0 but divides the gateway?

I want to know the answer to the question why OpenVPN, when raised, sends the default gateway settings not 0.0.0.0 but divides the gateway into two 128.0.0.1/1 and 0.0.0.0/1

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zohan1993, 2019-10-25
@zohan1993

Because the OpenVPN server has the redirect-gateway option specified with the def1 flag :
def1 -- Use this flag to override the default gateway by using 0.0.0.0/1 and 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of overriding but not wiping out the original default gateway.
Using the def1 flag is highly recommended, and is currently planned to become the default by OpenVPN 2.1.

K
ky0, 2019-10-25
@ky0

In order, for example, not to butt heads with other software that replaces the gateway (for example, the Cisco Anyconnect). And so - a more specific route will have a higher priority.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question