This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | remote 10.0.0.1 1194 # This points to the private IP of your OpenVPN server (and the OpenVPN port) | |
| ca ca.crt | |
| cert <vpn_client_name>.crt | |
| key <vpn_client_name>.key | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | cd /etc/openvpn/easy-rsa/ | |
| source vars | |
| ./clean-all | |
| ./build-ca | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | export KEY_COUNTRY="US" | |
| export KEY_PROVINCE="IL" | |
| export KEY_CITY="Chicago" | |
| export KEY_ORG="Your Company, Inc." | |
| export KEY_EMAIL="[email protected]" | |
| export KEY_OU="http://address-here.com" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | apt-get update && apt-get install openvpn easy-rsa | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | cd /etc/openvpn/easy-rsa/keys/ | |
| cp <vpn_server_name>.crt <vpn_server_name>.key ca.crt ca.key dh2048.pem /etc/openvpn/ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | cd /etc/openvpn/easy-rsa/ | |
| source vars | |
| ./build-key <vpn_client_name> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | cp /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz /etc/openvpn/ | |
| gzip -d /etc/openvpn/server.conf.gz | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ca ca.crt | |
| cert <vpn_server_name>.crt | |
| key <vpn_server_name>.key # This file should be kept secret | |
| dh dh2048.pem | |
| client-config-dir /etc/openvpn/static_clients # Specify where your static client info is stored | |
| client-to-client | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 | |
| inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255 | |
| UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 | |
| RX packets:0 errors:0 dropped:0 overruns:0 frame:0 | |
| TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 | |
| collisions:0 txqueuelen:100 | |
| RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |