OpenVPN-Admin icon indicating copy to clipboard operation
OpenVPN-Admin copied to clipboard

### Ubuntu 20.04.1 install instructions

Open BrixXare opened this issue 3 years ago • 13 comments

Ubuntu 20.04.1

# sudo apt-get install openvpn apache2 php-mysql mysql-server php-zip php unzip git wget sed curl git npm net-tools
# cd /root
# git clone https://github.com/Chocobozzz/OpenVPN-Admin.git
# cd OpenVPN-Admin
# npm install -g bower
# ./install.sh  /var/www/html/ www-data www-data

BrixXare avatar Dec 15 '20 14:12 BrixXare

root@iZj6c56vkvncjyl6ozvvysZ:~/openvpn-admin# ./install.sh /var/www www-data www-data Miss node

Hello, how can I solve it?

ilkm avatar Jan 11 '21 16:01 ilkm

Hello I have install and configure Openvpn server can you please how can client can connect to the server. image server

Can any one tell how to connect vpn via windows system. i have upload the file in the /etc/openvpn/folder but when i connect client via windows machine it gives error. error

nitish0021 avatar Feb 01 '21 11:02 nitish0021

You are also using "simple" VPN, not OpenVPN. There is a separate client for Windows that you have to install first.

Wutze avatar Feb 01 '21 11:02 Wutze

I have install openvpn connect can you please explain how to connect. openvpn

nitish0021 avatar Feb 02 '21 06:02 nitish0021

If I remember correctly, I haven't used Windows for years, the password prompt comes up the first time you try to connect and is then saved if you check the box.

Wutze avatar Feb 02 '21 07:02 Wutze

image

Please use this version, the pro-test is valid. Download file url

ilkm avatar Feb 02 '21 07:02 ilkm

Tue Feb 02 13:48:07 2021 SIGUSR1[soft,connection-reset] received, process restarting Tue Feb 02 13:48:07 2021 MANAGEMENT: >STATE:1612253887,RECONNECTING,connection-reset,,,,, Tue Feb 02 13:48:07 2021 Restart pause, 80 second(s) Tue Feb 02 13:49:27 2021 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication Tue Feb 02 13:49:27 2021 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication Tue Feb 02 13:49:27 2021 TCP/UDP: Preserving recently used remote address: [AF_INET]192.168.0.132:443 Tue Feb 02 13:49:27 2021 Socket Buffers: R=[65536->65536] S=[65536->65536] Tue Feb 02 13:49:27 2021 Attempting to establish TCP connection with [AF_INET]192.168.0.132:443 [nonblock] Tue Feb 02 13:49:27 2021 MANAGEMENT: >STATE:1612253967,TCP_CONNECT,,,,,, Tue Feb 02 13:49:27 2021 TCP connection established with [AF_INET]192.168.0.132:443 Tue Feb 02 13:49:27 2021 TCP_CLIENT link local: (not bound) Tue Feb 02 13:49:27 2021 TCP_CLIENT link remote: [AF_INET]192.168.0.132:443 Tue Feb 02 13:49:27 2021 MANAGEMENT: >STATE:1612253967,WAIT,,,,,, Tue Feb 02 13:49:27 2021 Connection reset, restarting [0] Tue Feb 02 13:49:27 2021 SIGUSR1[soft,connection-reset] received, process restarting Tue Feb 02 13:49:27 2021 MANAGEMENT: >STATE:1612253967,RECONNECTING,connection-reset,,,,, Tue Feb 02 13:49:27 2021 Restart pause, 160 second(s)

nitish0021 avatar Feb 02 '21 08:02 nitish0021

I have met before, but my PHP level is very poor and I can’t find a solution. You can try this project, it is very simple to use and it also provides data encryption.

Wutze/OpenVPN-WebAdmin

ilkm avatar Feb 02 '21 08:02 ilkm

When i connect openvpn server i got this can you please help.

2021-02-03 11:05:18 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. 2021-02-03 11:05:18 DEPRECATED OPTION: --cipher set to 'AES-256-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM). Future OpenVPN version will ignore --cipher for cipher negotiations. Add 'AES-256-CBC' to --data-ciphers or change --cipher 'AES-256-CBC' to --data-ciphers-fallback 'AES-256-CBC' to silence this warning. 2021-02-03 11:05:18 Flag 'def1' added to --redirect-gateway (iservice is in use) 2021-02-03 11:05:18 OpenVPN 2.5.0 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Oct 28 2020 2021-02-03 11:05:18 Windows version 10.0 (Windows 10 or greater) 64bit 2021-02-03 11:05:18 library versions: OpenSSL 1.1.1h 22 Sep 2020, LZO 2.10 Enter Management Password: 2021-02-03 11:05:18 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25341 2021-02-03 11:05:18 Need hold release from management interface, waiting... 2021-02-03 11:05:19 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25341 2021-02-03 11:05:19 MANAGEMENT: CMD 'state on' 2021-02-03 11:05:19 MANAGEMENT: CMD 'log all on' 2021-02-03 11:05:19 MANAGEMENT: CMD 'echo all on' 2021-02-03 11:05:19 MANAGEMENT: CMD 'bytecount 5' 2021-02-03 11:05:19 MANAGEMENT: CMD 'hold off' 2021-02-03 11:05:19 MANAGEMENT: CMD 'hold release' 2021-02-03 11:05:38 MANAGEMENT: CMD 'username "Auth" "nitish1"' 2021-02-03 11:05:38 MANAGEMENT: CMD 'password [...]' 2021-02-03 11:05:38 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication 2021-02-03 11:05:38 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication 2021-02-03 11:05:38 TCP/UDP: Preserving recently used remote address: [AF_INET]192.168.0.132:1194 2021-02-03 11:05:38 Socket Buffers: R=[65536->65536] S=[65536->65536] 2021-02-03 11:05:38 Attempting to establish TCP connection with [AF_INET]192.168.0.132:1194 [nonblock] 2021-02-03 11:05:38 MANAGEMENT: >STATE:1612330538,TCP_CONNECT,,,,,,

nitish0021 avatar Feb 03 '21 07:02 nitish0021

Wed Feb 03 15:26:43 2021 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. Wed Feb 03 15:26:43 2021 DEPRECATED OPTION: --cipher set to 'AES-256-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM). Future OpenVPN version will ignore --cipher for cipher negotiations. Add 'AES-256-CBC' to --data-ciphers or change --cipher 'AES-256-CBC' to --data-ciphers-fallback 'AES-256-CBC' to silence this warning. Wed Feb 03 15:26:43 2021 Flag 'def1' added to --redirect-gateway (iservice is in use) Wed Feb 03 15:26:43 2021 OpenVPN 2.5.0 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Oct 28 2020 Wed Feb 03 15:26:43 2021 Windows version 10.0 (Windows 10 or greater) 64bit Wed Feb 03 15:26:43 2021 library versions: OpenSSL 1.1.1h 22 Sep 2020, LZO 2.10 Wed Feb 03 15:26:43 2021 Restart pause, 5 second(s) Wed Feb 03 15:26:48 2021 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication Wed Feb 03 15:26:48 2021 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication Wed Feb 03 15:26:48 2021 TCP/UDP: Preserving recently used remote address: [AF_INET]192.168.0.132:1194 Wed Feb 03 15:26:48 2021 Socket Buffers: R=[65536->65536] S=[65536->65536] Wed Feb 03 15:26:48 2021 Attempting to establish TCP connection with [AF_INET]192.168.0.132:1194 [nonblock] Wed Feb 03 15:26:48 2021 MANAGEMENT: >STATE:1612346208,TCP_CONNECT,,,,,,

nitish0021 avatar Feb 03 '21 10:02 nitish0021

Ubuntu 20.04.1

This works on Ubuntu 18.04 LTS Server to!

# sudo apt-get install openvpn apache2 php-mysql mysql-server php-zip php unzip git wget sed curl nodejs git npm net-tools # cd /root # git clone https://github.com/Chocobozzz/OpenVPN-Admin.git # cd OpenVPN-Admin # npm install -g bower # ./install.sh /var/www/html/ www-data www-data

I just add nodesj on the first apt-get line. Works fine!

oseiasflores avatar Mar 28 '21 01:03 oseiasflores

Hi all, i am installed on Ubuntu 20.04

Congratulations, you have successfully setup OpenVPN-Admin!

Please, finish the installation by configuring your web server (Apache, NGinx...) and install the web application by visiting http://your-installation/index.php?installation Then, you will be able to run OpenVPN with systemctl start openvpn@server Please, report any issues here https://github.com/Chocobozzz/OpenVPN-Admin

But what i must install after that? When i open my http://serverip, there is just standard Apache2 Ubuntu Default Page opened If i try http://serverip/index.php?installation its show 404

Can someone help please

IamDontNoob avatar Jul 10 '21 10:07 IamDontNoob

You have to have an index.php and a few more files in the root directory of your webserver.

Check if the "# ./install.sh /var/www/html/ www-data www-data" was correctly. For example check if the second argument is the root of your webserver.

BrixSat avatar Jul 12 '21 08:07 BrixSat