OpenVPN Kali
Has anyone had any experience setting up OpenVPN on a Kali client? Or any Linux client?
I searched the heck out of this issue and I'm not seeing a solution. I'm wondering if the config we have is just not compatible with Linux. It works great on Windows machines (although there's a nice msi for them too).
Basically, the way we have it configured on our firewall is to authenticate with a username/password, a static key, and a p12 cert that they have installed on their client. When I go to the client configuration, select to authenticate with a password and cert from the dropdown, and select the certificate, it won't let me select the private key also, it puts the certificate in that field. If I force the .key file in the key field then it clears out the certificates. The only way it accepts the key file is if I set the authentication as a static key, but then that won't work because I need a username/password. I've tried it with the .ovpn config file and setting it up manually and it does the same thing.
Any ideas?
I searched the heck out of this issue and I'm not seeing a solution. I'm wondering if the config we have is just not compatible with Linux. It works great on Windows machines (although there's a nice msi for them too).
Basically, the way we have it configured on our firewall is to authenticate with a username/password, a static key, and a p12 cert that they have installed on their client. When I go to the client configuration, select to authenticate with a password and cert from the dropdown, and select the certificate, it won't let me select the private key also, it puts the certificate in that field. If I force the .key file in the key field then it clears out the certificates. The only way it accepts the key file is if I set the authentication as a static key, but then that won't work because I need a username/password. I've tried it with the .ovpn config file and setting it up manually and it does the same thing.
Any ideas?
Comments
The solution was
sudo apt-get install network-manager-openvpn
sudo apt-get install network-manager-openvpn-gnome
sudo service network-manager restart
then try to configure the the vpn connection.
declaimer:
not sure if what I said is logical, I am just reading the configuration
dev tun
persist-tun
persist-key
cipher AES-256-CBC
auth SHA256
tls-client
client
resolv-retry infinite
remote x.x.x.x (port#) udp
lport 0
verify-x509-name "VPNSever" name
auth-user-pass
pkcs12 cert.p12
tls-auth key.key 1
ns-cert-type server
Are you installing through terminal or using a GUI?
This is for a server/CA setup so if you already have that you will have to change the c files to reflect the correct cert/path/etc...
https://help.ubuntu.com/lts/serverguide/openvpn.html
I installed OpenVPN on my kali box through cli, but I'm trying to add the cert/key through the GUI.
I can try modifying the config file on that per the document. It essentially says that but we have a few other options in there.