openvpn script

Hello, i buy a server with preinstall openvpn

but after install this script how access to config? i just have SSH and xrdp remote desktop

Comments

  • edited October 2022

    You need to either downfload cert file (via sftp) either copy/paste cert files content and save it to your computer (and then import it to your OpenVPN client).
    Second part isn't that ideal as some blank spaces or something may cause issue, so the download is the way to go.
    For SFTP use some free client as Filezilla and enter same IP/port/password as for SSH. Depend from what script you used, your certs may be in one configuraton file with .ovpn extension.

    Don't forget to install OpenVPN client on your local computer and import cert / .ovpn file to the vpn client.

    Thanked by (1)moh3en
  • @Mumbly said:
    You need to either downfload cert file (via sftp) either copy/paste cert files content and save it to your computer (and then import it to your OpenVPN client).
    Second part isn't that ideal as some blank spaces or something may cause issue, so the download is the way to go.
    For SFTP use some free client as Filezilla and enter same IP/port/password as for SSH. Depend from what script you used, your certs may be in one configuraton file with .ovpn extension.

    Don't forget to install OpenVPN client on your local computer and import cert / .ovpn file to the vpn client.

    thank you for info but after install how access this config? where is it in ubuntu?

  • TheDPTheDP OG
    edited October 2022

    Take a look in /etc/openvpn maybe?

    Thanked by (1)moh3en

    For domain registrations, create an account at Dynadot (ref) and spend $9.99 within 48 hours to receive $5 DynaDollars!
    Looking for cost-effective Managed/Anycast/DDoS-Protected/Geo DNS Services? Try ClouDNS (aff).

  • edited October 2022

    I don't know where your script saved it. Did you check in root directory? ls -all

    Try command: find . -name *.ovpn as a root

    Thanked by (1)moh3en
  • @moh3en said: thank you for info but after install how access this config? where is it in ubuntu?

    You should ask your provider or read theirs Knowledge database/FAQ/e-mails. Preinstalled OpenVPN is not something happening by default so the image you installed was probably created/adjusted by your provider and they have all the info somewhere on theirs website, welcome e-mails etc.

    Thanked by (1)moh3en

    Haven't bought a single service in VirMach Great Ryzen 2022 - 2023 Flash Sale.
    https://lowendspirit.com/uploads/editor/gi/ippw0lcmqowk.png

  • He's not most clear about all this, so it's more or less just guessing. He's talking about preinstalled openvpn and then about some script install, so I assume that it's something like Nyr's openvpn-install.sh script which put .ovpn file in root dir.

    Thanked by (1)moh3en
  • edited October 2022

    @TheDP said:
    Take a look in /etc/openvpn maybe?

    yes. i have access , and see some folder

    https://prnt.sc/ep5_oXtIY70w

  • @Mumbly said:
    I don't know where your script saved it. Did you check in root directory? ls -all

    Try command: find . -name *.ovpn as a root

    i install xrdp for remote desktop and goto this folder

    /etc/openvpn/ and see some other folder

    easy-rsa , server , client. but not found .ovpn

  • @moh3en said:

    @TheDP said:
    Take a look in /etc/openvpn maybe?

    yes. i have access , and see some folder

    https://prnt.sc/ep5_oXtIY70w

    Look in the client folder then for OpenVPN client configuration file(s).

    The server.conf would be OpenVPN's configuration file.

    Thanked by (1)moh3en

    For domain registrations, create an account at Dynadot (ref) and spend $9.99 within 48 hours to receive $5 DynaDollars!
    Looking for cost-effective Managed/Anycast/DDoS-Protected/Geo DNS Services? Try ClouDNS (aff).

  • @moh3en said: i install xrdp for remote desktop and goto this folder

    /etc/openvpn/ and see some other folder

    easy-rsa , server , client. but not found .ovpn

    Then do what I said.

    ssh to your server
    cd /
    find . -name *.ovpn
    (under the assumption that you're running some sort of linux)

    Thanked by (1)moh3en
  • @TheDP said:

    @moh3en said:

    @TheDP said:
    Take a look in /etc/openvpn maybe?

    yes. i have access , and see some folder

    https://prnt.sc/ep5_oXtIY70w

    Look in the client folder then for OpenVPN client configuration file(s).

    The server.conf would be OpenVPN's configuration file.

    client folder is empty , no file or subfolder/
    also server folder empty

    how sure Openvpn is ready for use?? maybe not installl correct?

  • @Mumbly said:

    @moh3en said: i install xrdp for remote desktop and goto this folder

    /etc/openvpn/ and see some other folder

    easy-rsa , server , client. but not found .ovpn

    Then do what I said.

    ssh to your server
    cd /
    find . -name *.ovpn
    (under the assumption that you're running some sort of linux)

    root@wiry-cakes:~# find . -name *.ovpn
    ./client.ovpn

  • edited October 2022

    client.ovpn
    This is it. In your root dir just as assumed.

    Thanked by (1)moh3en
  • @moh3en said:

    @TheDP said:

    @moh3en said:

    @TheDP said:
    Take a look in /etc/openvpn maybe?

    yes. i have access , and see some folder

    https://prnt.sc/ep5_oXtIY70w

    Look in the client folder then for OpenVPN client configuration file(s).

    The server.conf would be OpenVPN's configuration file.

    client folder is empty , no file or subfolder/
    also server folder empty

    how sure Openvpn is ready for use?? maybe not installl correct?

    Try find / -name *.ovpn as root.

    If you don't see any *.ovpn files, then it's safe to say that no client files were created - only the installation of OVPN exists.

    Thanked by (1)moh3en

    For domain registrations, create an account at Dynadot (ref) and spend $9.99 within 48 hours to receive $5 DynaDollars!
    Looking for cost-effective Managed/Anycast/DDoS-Protected/Geo DNS Services? Try ClouDNS (aff).

  • @Mumbly said:
    client.ovpn
    This is it. In your root dir just as assumed.

    where save it? and how see info this file for transfer to client

  • He found it :p

    Thanked by (1)moh3en
  • @moh3en said:

    @Mumbly said:
    client.ovpn
    This is it. In your root dir just as assumed.

    where save it? and how see info this file for transfer to client

    Read my first post above!

    1. download client.ovpn to your computer
    2. import it to your OpenVPN client installed on your computer
    Thanked by (1)moh3en
  • I think we need to go from the beginning.

    1. Use some free sftp program like Filezilla or WinSCP and log in as root (same IP, port and root password as SSH) and simply download client.ovpn to your computer
    2. Install on your computer OpenVPN client (google for: OpenVPN Connect v3)
    3. Run OpenVPN client on your computer and click left on the top "Import profile" then "File" and browse/load previously downloaded client.ovpn
    Thanked by (1)moh3en
  • You can use @Nyr's automated script for installing OpenVPN.

    https://github.com/Nyr/openvpn-install

Sign In or Register to comment.