G
G
Galdar Turin2019-02-05 10:57:44
openvpn
Galdar Turin, 2019-02-05 10:57:44

Who can explain to a noob how to set up OpenVPN correctly?

Asking questions on the "Toaster" looking for answers, I still managed to set up a server >> client connection , everything pings and works as it should. But unfortunately not everything is so colorful.
I already asked a question ( When connecting via openvpn to the client, it disconnects. Why? ), but I didn’t get an answer, I’ll try to reformulate it differently, but the essence is the same.
Screenshot of a successful connection:

Screenshot X2

Сервер:
5c593db92aa63950194136.png
Клиент:
5c593dc0471b6588128647.png

Server and client configs:
server
port 1194
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key  # This file should be kept secret
dh dh.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
tls-auth ta.key 0 # This file is secret
key-direction 0
cipher AES-256-CBC
auth SHA256
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
log         openvpn.log
log-append  openvpn.log
verb 5
explicit-exit-notify 0

client
client
dev tun
proto tcp
remote xxxxxx.ru 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
tls-auth ta.key 1
cipher AES-256-CBC
auth SHA256
key-direction 1
verb 5


I set the settings in ufw, openvpn works without errors, the OpenVPN tun0 interface is available, port 1194 is open, the connection to the server is forwarded.
And here is the trouble:
Screenshot X2

Настройки подключения:
5c593ffdb8933848705936.png
При подключении:
5c5940056ef7a787924625.png

At the same time, if there is no error to close the port to the client, it simply waits for a response, and when the connection is open, after watering the response, it knocks out an error. In guacamole, it throws an error like this:
Screenshot X1
5c5941d8b6595848897208.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2019-02-05
@Galdar

Porridge ... by God, what does openvpn have to do with it?
The connection is established, the client sees the server with an internal address, the server sees the client.
Next, you need, it’s not clear what, it’s not clear from your words.
With the connection already established, from the server side, access the vnc server from the client side? change the port to vnc by the way in this case.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question