Skip to main content
Topic: OpenVPN Client (Read 481 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

OpenVPN Client

Hello. I want to use the OpenVPN server that I have on my server. On windows/android, I just need to launch the GUI and import the *.openvpn file. Now I do not know what to do.

I'm using openvpn-openrc. I tried pasting the conf file from https://wiki.gentoo.org/wiki/OpenVPN#Client_side but it didn't work:
Code: [Select]
 * Starting openvpn ...
2022-09-07 22:59:30 WARNING: Compression for receiving enabled. Compression has been used in the past to break encryption. Sent packets are not compressed unless "allow-compression yes" is also set.
 * start-stop-daemon: failed to start `/usr/bin/openvpn'
 * Check your logs to see why startup failed                                                                                  [ !! ]
 * WARNING: openvpn has started, but is inactive
The logs are empty.

For reference i'll paste my openvpn.conf:
Code: [Select]
# tun/tap device
dev tun0

# protocol, according to server
proto udp

# server address
remote address.to.server 12112

# connection
comp-lzo
resolv-retry 30
nobind

# persistent device and keys
persist-key
persist-tun

# keys settings
ca example/ca.crt
cert example/client1.crt
key example/client1.key

# optional tls-auth
# tls-auth exmaple/ta.key 1

# pull dns settings from the server
script-security 2

# These scripts are defaults within the service script. To specify custom scripts,
# use /etc/openvpn/${SVCNAME}- {up,down}.sh as suggested by the service script.
# If you use systemd, SVCNAME will not get set automatically.
# Add `setenv SVCNAME my_svc_name` to set it, where my_svc_name is determined by
# /etc/openvpn/client/my_svc_name.conf
#up /etc/openvpn/up.sh
#down /etc/openvpn/down.sh

# logging
log /etc/openvpn/openvpn.log
verb 4

#auth
auth-user-pass ~/Synced/****.openvpn

How do I get it to work?

 

Re: OpenVPN Client

Reply #1
Can you launch openvpn from the command line? run:
Code: [Select]
# openvpn --config openvpn.conf