M
M
Maxim2014-04-25 18:32:10
openvpn
Maxim, 2014-04-25 18:32:10

How to properly configure OpenVPN?

It is not possible to configure routing to the internal network in any way.
The server looks at three networks
10.14.1.0/24
192.168.0.0/24
10.214.2.128/25
In the server config, I wrote the following

#протокол
proto tcp-server

#порт
port 1194

tls-server

#пул адресов
server 192.168.3.0 255.255.255.0

route 192.168.3.0 255.255.255.0

push "route 192.168.0.0 255.255.255.0"
push "route 10.14.2.0 255.255.255.0"
push "route 10.214.2.128 255.255.255.128"

client-to-client

persist-tun
persist-key

tun-mtu 1500
tun-mtu-extra 32
mssfix 1450

keepalive 10 120

If you do a trace from the client to the networks, then the packets reach the server itself and then silence.
1 82 ms 41 ms 7 ms ROOT-8832627377 [192.168.3.1]
2 * * * Query timed out
What am I doing wrong? Tell me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shaazz, 2014-04-28
@maxpointn2point

Look at this link . I had access to two networks 192.168.0.0 and 192.168.1.0. The corresponding static address (10.8.0.1, 10.8.0.2, 10.8.0.3) was assigned to the server and two clients, and the route to the networks was assigned:
route 192.168.1.0 255.255.255.0 10.8.0.2 1
route 192.168.0.0 255.255.255.0 10.8.0.3 1
See the link for more details.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question