The OpenVPN keys which will be sent to you will have been tested using your OpenVPN service. Verifying that the keys and the OpenVPN service are working as expected is essentially the limit of our support. While we will make every effort to assist you with connecting to your OpenVPN service, it is impossible for us to replicate every type of computer and networking setup. You may need to do some troubleshooting and computer or network configuration to be able to fully use the OpenVPN service. |
You cannot share one set of keys between multiple users. If two people are using the same keys, then the first person to connect will get bumped from the VPN tunnel when the second person connects with the same keys. If the first person tried to reconnect, they will bump the second user off the VPN tunnel, etc. |
Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\Administrator>cd C:\Program Files\OpenVPN\easy-rsa C:\Program Files\OpenVPN\easy-rsa>init-config C:\Program Files\OpenVPN\easy-rsa>copy vars.bat.sample vars.bat 1 file(s) copied. C:\Program Files\OpenVPN\easy-rsa>copy openssl.cnf.sample openssl.cnf 1 file(s) copied. C:\Program Files\OpenVPN\easy-rsa> |
Running the init-config command and editing the vars.bat file only has to be done the very first time you create a new client key. For any new keys, start at the steps below. |
C:\PROGRA~1\OpenVPN\easy-rsa>vars C:\PROGRA~1\OpenVPN\easy-rsa>clean-all 1 file(s) copied. 1 file(s) copied. |
C:\Program Files\OpenVPN\easy-rsa>vars C:\Program Files\OpenVPN\easy-rsa>build-key.bat new_client Loading 'screen' into random state - done Generating a 1024 bit RSA private key ...............................++++++ ....................++++++ writing new private key to 'keys\new_client.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [US]: State or Province Name (full name) [GA]: Locality Name (eg, city) [Atlanta]: Organization Name (eg, company) [eApps-Example]: Organizational Unit Name (eg, section) []:. (enter a period (.) press return) Common Name (eg, your name or your server's hostname) []:new_client Email Address [user@eapps-example.com]: Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []:(press return here) An optional company name [](press return here): Using configuration from openssl.cnf Loading 'screen' into random state - done Check that the request matches the signature Signature ok The Subject's Distinguished Name is as follows countryName :PRINTABLE:'US' stateOrProvinceName :PRINTABLE:'GA' localityName :PRINTABLE:'Atlanta' organizationName :PRINTABLE:'eApps-Example' commonName :T61STRING:'new_client' emailAddress :IA5STRING:'user@eapps-example.com' Certificate is to be certified until Feb 23 19:11:23 2020 GMT (3650 days) Sign the certificate? [y/n]:y 1 out of 1 certificate requests certified, commit? [y/n]y Write out database with 1 new entries Data Base Updated C:\Program Files\OpenVPN\easy-rsa> |
The following must be done from the command line of the VPS while logged in via SSH, as the root user. The ability to edit files with the vim text editor is also needed. |
[root@eapps-example ~]# service smb status smbd is stopped nmbd is stopped [root@eapps-example ~]# |
[root@eapps-example ~]# service smb start Starting SMB services: [ OK ] Starting NMB services: [ OK ] |
[root@eapps-example ~]# chkconfig --list smb smb 0:off 1:off 2:off 3:off 4:off 5:off 6:off [root@eapps-example ~]# chkconfig smb on [root@eapps-example ~]# chkconfig --list smb smb 0:off 1:off 2:on 3:on 4:on 5:on 6:off [root@eapps-example ~]# |
[root@eapps-example ~]# service smb status smbd (pid 3672 3667) is running... nmbd (pid 3670) is running... [root@eapps-example ~]# |
[root@eapps-example ~]# cd /etc/samba/ [root@eapps-example samba]# cp smb.conf{,.bck} [root@eapps-example samba]# |
This is just one very simple example of how to create a share using Samba. For more examples, see the official Samba documentation, available either on-line or in printed form. The user name, the share name, the variables - all can be changed or customized to your needs. The Samba documentation will explain how. |
[root@eapps-example samba]# vim smb.conf |
[root@eapps-example samba]# cd /home [root@eapps-example home]# mkdir example [root@eapps-example home]# ll -d example/ drwxr-xr-x 2 root root 4096 Mar 15 10:40 example/ [root@eapps-example home]# [root@eapps-example home]# chown -R webadmin:webadmin example/ [root@eapps-example home]# ll -d example/ drwxr-xr-x 2 webadmin webadmin 4096 Mar 15 10:40 example/ [root@eapps-example home]# |
[root@eapps-example home]# service smb restart Shutting down SMB services: [ OK ] Shutting down NMB services: [ OK ] Starting SMB services: [ OK ] Starting NMB services: [ OK ] [root@eapps-example home]# |
[root@eapps-example samba]# smbpasswd -a webadmin New SMB password:passwd Retype new SMB password:passwd [root@eapps-example samba]# |
The Samba password for webadmin and the actual system password for webadmin are two different things. The Samba password only authenticates the user to Samba, not to the actual Linux server. |
[root@eapps-example samba]# adduser example_user [root@eapps-example samba]# smbpasswd -a example_user New SMB password:passwd Retype new SMB password:passwd Added user example_user. [root@eapps-example samba]# |
[root@eapps-example samba]# usermod -a -G example_user webadmin |
This example uses Windows XP Pro. Windows Vista and Windows 7 users may need to consult their operating system documentation to be able to access the correct locations on their computers. |