2022年3月17日 星期四

Open VPN Ubuntu 20.04 focal

 https://openvpn.net/cloud-docs/openvpn-3-client-for-linux/


sudo apt install apt-transport-https

sudo wget https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub

sudo apt-key add openvpn-repo-pkg-key.pub

sudo wget -O /etc/apt/sources.list.d/openvpn3.list https://swupdate.openvpn.net/community/openvpn3/repos/openvpn3-focal.list

sudo apt update

sudo apt install openvpn3


Debian 9 stretch

Debian 10 buster

Ubuntu 16.04 xenial

Ubuntu 18.04 bionic

Ubuntu 19.10 eoan

Ubuntu 20.04 focal



# using .ovpn profile

$ openvpn3 config-import --config ovpn.ovpn

Configuration imported.  Configuration path: /net/openvpn/v3/configuration/535489f0xdeeex4b97xb130x4f150b876def


#start

openvpn3 session-start --config ovpn.ovpn

Using pre-loaded configuration profile 'rleung.ovpn'

Session path: /net/openvpn/v3/sessions/7b8b05afscf2fs4207s93b8s9836b9cbaa92

Connected


# list

openvpn3 sessions-list

-----------------------------------------------------------------------------

        Path: /net/openvpn/v3/sessions/7b8b05afscf2fs4207s93b8s9836b9cbaa92

     Created: Thu Mar 17 17:27:29 2018                  PID: 464399

       Owner: ricky                                  Device: tun0

 Config name: ovpn.ovpn

Session name: 172.10.20.11

      Status: Connection, Client connected

-----------------------------------------------------------------------------



# manage disconnect

openvpn3 session-manage --disconnect --config rleung.ovpn


Initiated session shutdown.


Connection statistics:

     BYTES_IN.................7314066

     BYTES_OUT................1384787

     PACKETS_IN..................9189

     PACKETS_OUT.................7968

     TUN_BYTES_IN.............1190233

     TUN_BYTES_OUT............7090182

     TUN_PACKETS_IN..............7957

     TUN_PACKETS_OUT.............9179


沒有留言:

張貼留言

2023 Promox on Morefine N6000 16GB 512GB

2023 Promox on Morefine N6000 16GB 512GB Software Etcher 100MB (not but can be rufus-4.3.exe 1.4MB) Proxmox VE 7.4 ISO Installer (1st ISO re...