7
7
7761662022-03-04 20:52:36
openvpn
776166, 2022-03-04 20:52:36

How does OpenVPN combine redirect-gateway and push?

You need to let all traffic through the VPN, except for individual addresses that will be visited directly.

Question: is it possible to specify redirect-gateway and push at the same time, with the expectation that everything that is not push will be redirect-gateway?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
7
776166, 2022-03-05
@776166

In the CCD file of the client, you need to write this:

push "route 104.23.132.69 255.255.255.255 net_gateway"

I thought that if this is a setting for the client, then it pushes itself.

M
mureevms, 2022-03-04
@mureevms

If you need to push from the server:

push "redirect-gateway def1"
push "route x.x.x.x 255.255.255.255 net_gateway"

If you need to apply on the client:
route x.x.x.x 255.255.255.255 net_gateway

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question