How to use OpenVPN?

mammadalius

Vu+ Newbie
I'm using OpenVPN on my PC. It has a ".conf" file and also a username and password.
In Android with "OpenVPN Connect" I import the ".conf" and enter my user-pass so it connects well.

But In the OpenVPN of the BalckHole' BluePlanel there's only an Enable/Disable and also Activate/Deactivate buttons.

Where should I copy my ".conf" and where should I enter my user-pass?
 

komodo

Vu+ User
Hi,

i t depends , if you need vpn server or client, and anyway you need to edit config files /etc/openvpn, and then start via GUI.

You can find more info if you search this forum.
 

mammadalius

Vu+ Newbie
Hi,
i t depends , if you need vpn server or client, and anyway you need to edit config files /etc/openvpn, and then start via GUI.
You can find more info if you search this forum.

As I mentioned "OpenVPN Connect" for Android I want a VPN Client.
I've searched the forum but everywhere the answer is a reference to OpenVPN website. I didn't find any clear solution for the following questions:
Where should I copy my ".conf" and where should I enter my user-pass to use OpenVPN as a client?
 

PieFav

Administrator
For use Username and Password with the OpenVpn need a plugin
Code:
plugin /etc/openvpn/openvpn-auth-pam.so /etc/pam.d/login
in this moment the OpenVpn in the BH image not use this plugin
 

bouboufah

Vu+ Newbie
Hi,

OpenVPN on BH works very fine, you just have to adapt your configuration.

For example, if you have a .conf like this one :

Code:
client
port 443
proto tcp
dev tun
remote server-vpn.com
resolv-retry infinite
ca /etc/openvpn/ca.crt
tls-auth /etc/openvpn/ta.key 1
auth-user-pass /etc/openvpn/ident
cipher AES-256-CBC
comp-lzo
verb 1
route-method exe
route-delay 2
nobind
ns-cert-type server


You need to create a client.conf and put all the .conf on it with the paths to all importants files (ca.crt, ident, ...)

Next step, create ident (or other name if you want) and copy your user-pass like that :

Code:
user
pass

Then you can run openvpn and after few seconds, you are connected !

Sorry for my bad english.
 

mammadalius

Vu+ Newbie
Hi,

OpenVPN on BH works very fine, you just have to adapt your configuration.

For example, if you have a .conf like this one :

Code:
client
port 443
proto tcp
dev tun
remote server-vpn.com
resolv-retry infinite
ca /etc/openvpn/ca.crt
tls-auth /etc/openvpn/ta.key 1
auth-user-pass /etc/openvpn/ident
cipher AES-256-CBC
comp-lzo
verb 1
route-method exe
route-delay 2
nobind
ns-cert-type server


You need to create a client.conf and put all the .conf on it with the paths to all importants files (ca.crt, ident, ...)

Next step, create ident (or other name if you want) and copy your user-pass like that :

Code:
user
pass

Then you can run openvpn and after few seconds, you are connected !

Sorry for my bad english.

Thanks bouboufah, I get the clue and here's the steps:

  • Rename "xxx.conf" file to "client.conf"
  • Change "auth-user-pass" to "auth-user-pass /etc/openvpn/ident" for accepting user-pass
  • Add the ident file with username and password.
Now it's working.
Note: in my experiments I get no response with UDP but TCP is working fine.
 

khurramqatar

Vu+ Newbie
Thanks bouboufah, I get the clue and here's the steps:

  • Rename "xxx.conf" file to "client.conf"
  • Change "auth-user-pass" to "auth-user-pass /etc/openvpn/ident" for accepting user-pass
  • Add the ident file with username and password.
Now it's working.
Note: in my experiments I get no response with UDP but TCP is working fine.
 

sasagr

Vu+ Newbie
Hi. I m trying to use the OpenVPN following above tips but I am not succeeding.
Here my case.

I have an account with Unotelly.
They gave me an xxx.ovpn file like this:

client
dev tun
proto tcp
remote uk-ovpn.unovpn.com 443
resolv-retry infinite
nobind
persist-key
persist-tun
ns-cert-type server
verb 3
auth-user-pass

<ca>
-----BEGIN CERTIFICATE-----
MIIDxTCCAy6gAwIBAgIJAKwhAlFLXpG1MA0GCSqGSIb3DQEBBQUAMIGeMQswCQYD
... nTTo/AwApfMX
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
MIIEJTCCA46gAwIBAgIBATANBgkqhkiG9w0BAQUFADCBnjELMAkGA1UEBhMCQ0Ex
..
Qm6VCwpbDCubsKYJCjoI3xu7PdQlQSN+sHNpDnrGSKx6e8EtFhDz47NNBfVZxH2/
QXLzlYo4G9Md
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAKXHVNZAMzud2bJR
...
FQaXAW8V1EVL/FvoF0ynV9em0yJeBrHG56oSfaWNEt6CTu1PHc3aIr3/ncFSdlVe
rhyGEqZFhY2ZoLU=
-----END PRIVATE KEY-----
</key>


I renamed this file client.conf and I edited the auth-user-pass as auth-user-pass /etc/openvpn/ident

then I created an ident file with just my user and password in two separate lines.

I start the VPN, it says running but I do not think it works. If I put the decoder on stan by and back on... I see that it is stopped.

Can any one give me an help?

Thanks
 

sasagr

Vu+ Newbie
I think I solved the problem... the problem was in the ident file. As usual creating text file in the Mac is not an easy think if the file has to be used by other OS. It is recommended to use applications like TextWrangler instead of the simple Text Edit.

Now I would need only one tihnk... a tool to find out what's my public ip address from my device. Pls note I have a vu solo.
If anyone has an idea...
 

komodo

Vu+ User
I have solo2, but i think you have wget, so try

Code:
wget -qO- http://icanhazip.com
 
Last edited by a moderator:

komodo

Vu+ User
I need your help, because I want config server and client.
And I don't know how should it config.

Hi, please read some howtos, i don't think that here is the place for something like this.

Code:
https://openvpn.net/index.php/open-source/documentation/howto.html

Btw, you should found many manual on the net :)
 
Last edited by a moderator:

stephentg

Vu+ Newbie
Sorry to bring up and old post and ask the same question. I am using Openvix 5 on Duo2. I have OpenVpn set on my box .I have a VPN provider Digibit, they have sent me the following ca.crt, openvpn config files and I have my user and pass word. I have tried using Telnet via the Vu+ Control Centre, but it say options error: In CMD-LINE. Can I use FileZilla. I have enclosed 2 Pics 1 is the config file set up. Any advice.
 

Attachments

  • 20170725_171812_resized.jpg
    20170725_171812_resized.jpg
    145.1 KB · Views: 192
  • 20170726_155752_1501137779850_resized.jpg
    20170726_155752_1501137779850_resized.jpg
    181.4 KB · Views: 167

newgolfer

Vu+ User+++
Sorry to bring up and old post and ask the same question. I am using Openvix 5 on Duo2. I have OpenVpn set on my box .I have a VPN provider Digibit, they have sent me the following ca.crt, openvpn config files and I have my user and pass word. I have tried using Telnet via the Vu+ Control Centre, but it say options error: In CMD-LINE. Can I use FileZilla. I have enclosed 2 Pics 1 is the config file set up. Any advice.
ASk the question in VIX forum: this forum is for BH or OBH only.
Many thanks.
 

>>Artorius<<

>>English Admin<<
Sorry to bring up and old post and ask the same question. I am using Openvix 5 on Duo2. I have OpenVpn set on my box .I have a VPN provider Digibit, they have sent me the following ca.crt, openvpn config files and I have my user and pass word. I have tried using Telnet via the Vu+ Control Centre, but it say options error: In CMD-LINE. Can I use FileZilla. I have enclosed 2 Pics 1 is the config file set up. Any advice.
Where is the certificate info ?
 
Top