R
R
rze02015-11-05 17:57:52
openvpn
rze0, 2015-11-05 17:57:52

There is an OpenVPN connection, but no ping. What's wrong?

I tried several manuals for installing and configuring openvpn on Windows. The first 2 manuals did not connect. On the 3rd manual there was a connection. remote user connects to the server. but it doesn't ping.
config on the server

dev tun
proto tcp-server
port 7777
tls-server
client-to-client
server 192.168.15.0 255.255.255.0
push "route 192.168.1.0 255.255.255.0"
comp-lzo
dh D:\\OpenVPN\\ssl\\dh1024.pem
ca D:\\OpenVPN\\ssl\\ca.crt
cert D:\\OpenVPN\\ssl\\Server.crt
key D:\\OpenVPN\\ssl\\Server.key
tls-auth D:\\OpenVPN\\ssl\\ta.key 0
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
keepalive 10 120
status D:\\OpenVPN\\log\\openvupn-status.log
log D:\\OpenVPN\\log\\openvpn.log
verb 3

config client
dev tun 
proto tcp 
remote IPserver 7777
route-delay 3 
client 
tls-client 
ns-cert-type server 
ca D:\\OpenVPN\\ssl\\ca.crt 
cert D:\\OpenVPN\\ssl\\test.crt 
key D:\\OpenVPN\\ssl\\test.key 
tls-auth D:\\OpenVPN\\ssl\\ta.key 1 
comp-lzo
tun-mtu 1500 
tun-mtu-extra 32 
mssfix 1450 
ping-restart 60 
ping 10 
status D:\\OpenVPN\\log\\openvpn-status.log 
log D:\\OpenVPN\\log\\openvpn.log 
verb 3

I'll attach logs if needed.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maksim, 2015-11-05
@chumayu

Not a config, but just some ancient scripture, be simpler :)
https://openvpn.net/index.php/open-source/document... the
config can be straight in three lines, and how it will turn out you can suffer further x*yney: )

A
alegzz, 2015-11-05
@alegzz

push "route 192.168.1.0 255.255.255.0 "
fix

R
rze0, 2015-11-05
@rze0

solved the problem. made other configs
server config

port 7777
proto tcp
dev tun
dev-node "VPN"
dh D:\\OpenVPN\\ssl\\dh1024.pem
ca D:\\OpenVPN\\ssl\\ca.crt
cert D:\\OpenVPN\\ssl\\Server.crt
key D:\\OpenVPN\\ssl\\Server.key
tls-server
tls-auth D:\\OpenVPN\\ssl\\ta.key 0
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
server 10.10.10.0 255.255.255.0
#cipher AES-256-CBC
status D:\\OpenVPN\\log\\openvpn-status.log
log D:\\OpenVPN\\log\\openvpn.log
client-config-dir "D:\\OpenVPN\\ccd"
verb 3
mute 20
max-clients 15
keepalive 10 120
client-to-client
comp-lzo
persist-key
persist-tun
route-method exe
route-delay 5
push "route 192.168.0.0 255.255.255.0"
route 172.17.10.0 255.255.255.0 10.10.10.2
route-gateway 10.10.10.1
topology subnet

client config
dev tun 
proto tcp 
remote ipserver 7777
route-delay 3 
client 
tls-client 
ns-cert-type server 
ca D:\\OpenVPN\\ssl\\ca.crt 
cert D:\\OpenVPN\\ssl\\test.crt 
key D:\\OpenVPN\\ssl\\test.key 
tls-auth D:\\OpenVPN\\ssl\\ta.key 1 
comp-lzo
tun-mtu 1500 
tun-mtu-extra 32 
mssfix 1450 
ping-restart 60 
ping 10 
status D:\\OpenVPN\\log\\openvpn-status.log 
log D:\\OpenVPN\\log\\openvpn.log 
verb 3

the interface31.ru/tech_it/2015/03/organizaciya-kanalo instruction helped ...
Now it pings and accesses shared folders over the network. It remains to make the rest of the machines visible. Thank you all for your response)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question