D
D
DVoropaev2017-09-05 15:49:44
VPN
DVoropaev, 2017-09-05 15:49:44

How can I connect to vpn in this case?

they gave me:
my
pesonal key
certificate ca
ta.ky certificate
I was also given a config file called config.ovpn
How do I set up vpn on Fedora?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2017-09-05
@dimonchik2013

https://gist.github.com/dexterous/9b993d3625103df2...
google Fedora openvpn-client

Y
younghacker, 2017-09-05
@younghacker

Change the config
Write the paths to the certificates as it should be for Linux (for Windows, the paths with two slashes)
Change the file extension in .conf
add
user nobody
group nobody
set the owner to root.root and rights 600 for files and 700 for directories if the keys are in subdirectories.
install OpenVPN
check SELinux if suddenly the server does not start.
Normally, restorecon -R /etc/openvpn/ is enough.
And for the log, if it is required, the correct SELinux tags are needed.
Does not start - write and we'll figure it out.
Example: Windows and Linux config
==== openvpn.ovpn ====
client
dev tun
proto udp
remote 59.32.44.09 19745
resolv-retry infinite
nobind
persist-key
persist-tun
tls-auth "C:\\Program Files\\OpenVPN\\config\\vpn07.gw01.vpn.com-ta.key" 1
key "C:\\Program Files\\OpenVPN\ \config\\vpn07.gw01.vpn.com-client1.key"
cert "C:\\Program Files\\OpenVPN\\config\\vpn07.gw01.vpn.com-client1.crt"
ca "C:\\ Program Files\\OpenVPN\\config\\vpn07.gw01.vpn.com-ca.crt"
log "C:\\Program Files\\OpenVPN\\log\\openvpn.vpn07.gw01.vpn.com-client1. log"
remote-cert-tls server # OpenVPN 2.1 and above
ns-cert-type server # OpenVPN 2.0 and below
cipher AES-256-CBC
comp-lzo
verb 3
ping 10
ping-restart 60
==== openvpn.conf == ==
client
dev tun # for linux you can sutup tun number for example tun1
proto udp
remote 59.32.44.09 19745
resolv-retry infinite
nobind
user nobody
group nobody
persist-key
persist-tun
tls-auth /etc/openvpn/certsvpn07/vpn07.gw01.vpn .com-ta.key 1
key /etc/openvpn/certsvpn07/vpn07.gw01.vpn.com-client1.key
cert /etc/openvpn/certsvpn07/vpn07.gw01.vpn.com-client1.crt
ca /etc/openvpn /certsvpn07/vpn07.gw01.vpn.com-ca.crt
log /var/log/openvpn.vpn07.gw01.vpn.com-client1.log
verb 3
mute 20
remote-cert-tls server # OpenVPN 2.1 and above
ns- cert-type server # OpenVPN 2.0 and below
cipher AES-256-CBC
comp-lzo
ping 10
ping-restart 60

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question