User Tools

Site Tools


vpnaccess

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
vpnaccess [2023/05/11 11:14]
akraitman [Linux]
vpnaccess [2024/12/20 01:01] (current)
dmick [VPN Client Access]
Line 3: Line 3:
 To request access to the Sepia lab, To request access to the Sepia lab,
   - Generate login credentials by following directions under **VPN Client Access** below.   - Generate login credentials by following directions under **VPN Client Access** below.
-  - [[http://​tracker.ceph.com/​projects/​lab/​issues/​new?​issue[tracker_id]=3|File a ticket]]. ​ Select **Sepia Lab Access Request** for the Issue Template.+  - [[http://​tracker.ceph.com/​projects/​lab/​issues/​new?​issue[tracker_id]=3|File a ticket]]. ​ Select **Sepia Lab Access Request** ​and ***copy those questions and answer them in the ticket.*** 
 + 
 +<​code>​ 
 + 
 +1) Do you just need VPN access or will you also be running teuthology jobs? 
 + 
 +2) Desired Username: 
 + 
 +3) Alternate e-mail address(es) we can reach you at: 
 + 
 +4) If you don't already have an established history of code contributions to Ceph, is there an existing community or core developer you've worked with who has reviewed your work and can vouch for your access request? 
 + 
 +If you answered "​No"​ to # 4, please answer ​the following (paste directly below the question to keep indentation):​ 
 + 
 +4a) Paste a link to a Blueprint or planning doc of yours that was reviewed at a Ceph Developer Monthly. 
 + 
 +4b) Paste a link to an accepted pull request for a major patch or feature. 
 + 
 +4c) If applicable, include a link to the current project (planning doc, dev branch, or pull request) that you are looking to test. 
 + 
 +5) Paste your SSH public key(s) between the pre tags 
 + 
 +6) Paste your hashed VPN credentials between the pre tags (Format: user@hostname 22CharacterSalt 65CharacterHashedPassword)
  
 For details on our particular OpenVPN server setup, see [[services:​openvpn|OpenVPN]]. For details on our particular OpenVPN server setup, see [[services:​openvpn|OpenVPN]].
  
 +</​code>​
 ===== VPN Client Access ===== ===== VPN Client Access =====
 Follow the instructions corresponding to your workstation'​s operating system below. Follow the instructions corresponding to your workstation'​s operating system below.
 +
 +==== The '​secret'​ file ====
 +
 +
 +The new-client script will generate a secret in a file named '​secret'​. ​ This is your secret VPN password. ​ Do not share this in any way to anyone. ​ Do not overwrite it for any reason. ​ It is precious unrecoverable data, and losing it will lose your access to the VPN.
 +
 +==== The '​secret.hash'​ file: ====
 +
 +new-client will also generate a file named '​secret.hash',​ which corresponds to, but is not the same as, '​secret'​. ​ new-client also prints out this secret.hash. ​ This is public information,​ derived from your secret, but not your secret. ​ This is what you put in the tracker ticket to be added to the OpenVPN server.
 +
 +==== The secrets tarball: ====
 +
 +
 +new-client will also generate a tarball named '​secrets.YYMMDD_HHMMSS.tar.gz'​ (where YYMMDD_HHMMSS represents the current date and time) containing both secret and secret.hash files. ​ Since they go together, this will help track problems in their creation and use.
  
 **NOTE:** You will need VPN credentials for each machine/​workstation you intend to connect to the Sepia VPN.  **Client credentials can not be used on more than one machine at a time!** **NOTE:** You will need VPN credentials for each machine/​workstation you intend to connect to the Sepia VPN.  **Client credentials can not be used on more than one machine at a time!**
Line 25: Line 62:
 cd /​etc/​openvpn cd /​etc/​openvpn
  
-## filedump.ceph.com is temporarily unavailable;​ contact akraitma@redhat.com or dmick@redhat.com regarding this file - sepia-vpn-client.tar.gz + 
-wget https://​filedump.ceph.com/​sepia-vpn-client.tar.gz+sudo wget https://​filedump.ceph.com/​sepia-vpn-client.tar.gz
 sudo tar zxvf sepia-vpn-client.tar.gz sudo tar zxvf sepia-vpn-client.tar.gz
  
-# Ubuntu Bionic and later (or any python3-only distro) 
-sudo apt-get -y install python2-minimal;​ sed -i '​s|/​usr/​bin/​python|/​usr/​bin/​python2|g'​ sepia/​new-client 
  
 # Generate client credentials # Generate client credentials
Line 85: Line 120:
  
 === Troubleshooting === === Troubleshooting ===
-To troubleshoot your VPN connection, try running the following command to determine where the connection is failing:+Please disable SELinux on rhel clients
  
-Please disable SELinux on rhel clients ​+To troubleshoot your VPN connection, try running the following command to determine where the connection is failing:
  
 <​code>​ <​code>​
Line 129: Line 164:
 cd /​etc/​openvpn cd /​etc/​openvpn
 wget https://​filedump.ceph.com/​sepia-vpn-client.tar.gz wget https://​filedump.ceph.com/​sepia-vpn-client.tar.gz
-sudo tar zxvf sepia-vpn.client.tar.gz+sudo tar zxvf sepia-vpn-client.tar.gz
  
 # Generate client credentials # Generate client credentials
Line 158: Line 193:
     - **Tls-Auth:​** ta.key     - **Tls-Auth:​** ta.key
   - When connecting to the VPN for the first time,   - When connecting to the VPN for the first time,
-    - Enter your ''​USER@HOST''​ combination as the username +    - Enter your ''​USER@HOST''​ combination as the username(the username is the first line in secret file) 
-    - Enter the second line of ''​sepia/​secret''​ as the password+    - Enter the second line of ''​sepia/​secret''​ as the password(the password is the second line in secret file)
   - Save the credentials to your keychain   - Save the credentials to your keychain
   - You can now delete any downloaded and created files (except ca.crt)   - You can now delete any downloaded and created files (except ca.crt)
vpnaccess.1683803673.txt.gz · Last modified: 2023/05/11 11:14 by akraitman