User Tools

Site Tools


documentation:examples:gre_ipsec_and_openvpn

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
documentation:examples:gre_ipsec_and_openvpn [2020/06/29 16:45] – [VM2: OpenVPN server] olivierdocumentation:examples:gre_ipsec_and_openvpn [2020/06/29 16:48] – [VM2: OpenVPN server] olivier
Line 1058: Line 1058:
  
 <code> <code>
-echo '<ca>' >> /usr/local/etc/openvpn/VM4-openvpn.conf+cat > /usr/local/etc/openvpn/VM4-openvpn.conf <<'EOF' 
 +client 
 +dev tun 
 +remote 10.0.23.2 
 +<ca> 
 +'EOF'
 cat /usr/local/etc/easy-rsa/pki/ca.crt >> /usr/local/etc/openvpn/VM4-openvpn.conf cat /usr/local/etc/easy-rsa/pki/ca.crt >> /usr/local/etc/openvpn/VM4-openvpn.conf
 echo '</ca>' >> /usr/local/etc/openvpn/VM4-openvpn.conf echo '</ca>' >> /usr/local/etc/openvpn/VM4-openvpn.conf
Line 1070: Line 1075:
 ==== VM4: OpenVPN client ==== ==== VM4: OpenVPN client ====
  
-As OpenVPN client, VM4 should get these files from VM2 and put them in /usr/local/etc/openvpn+As OpenVPN client, VM4 should get its openvpn configuration file (that embedded certificate and key) from VM2 and put them in /usr/local/etc/openvpn.
-  * ca.crt +
-  * VM4.crt +
-  * VM4.key+
  
 On this lab, scp can be used for getting these files: On this lab, scp can be used for getting these files:
 <code> <code>
 mkdir /usr/local/etc/openvpn mkdir /usr/local/etc/openvpn
-scp 10.0.23.2:/usr/local/etc/easy-rsa/pki/ca.crt /usr/local/etc/openvpn +scp 10.0.23.2:/usr/local/etc/openvpn/vm4-openvpn.conf /usr/local/etc/openvpn/openvpn.conf
-scp 10.0.23.2:/usr/local/etc/easy-rsa/pki/issued/VM4.crt /usr/local/etc/openvpn +
-scp 10.0.23.2:/usr/local/etc/easy-rsa/pki/private/VM4.key /usr/local/etc/openvpn+
 </code> </code>
  
-Configure openvpn as a client: 
- 
-<code> 
-cat > /usr/local/etc/openvpn/openvpn.conf <<'EOF' 
-client 
-dev tun 
-remote 10.0.23.2 
-ca ca.crt 
-cert VM4.crt 
-key VM4.key 
-'EOF' 
-</code> 
  
 Enable and start openvpn: Enable and start openvpn:
documentation/examples/gre_ipsec_and_openvpn.txt · Last modified: 2023/07/10 12:40 by olivier

Except where otherwise noted, content on this wiki is licensed under the following license: BSD 2-Clause
Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki