documentation:examples:gre_ipsec_and_openvpn
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
documentation:examples:gre_ipsec_and_openvpn [2020/01/13 14:19] – [Testing] olivier | documentation:examples:gre_ipsec_and_openvpn [2020/06/29 16:48] – [VM2: OpenVPN server] olivier | ||
---|---|---|---|
Line 1054: | Line 1054: | ||
passwd | passwd | ||
</ | </ | ||
- | ==== VM4: OpenVPN client ==== | ||
- | As OpenVPN | + | Now Generate |
- | * ca.crt | + | |
- | * VM4.crt | + | |
- | * VM4.key | + | |
- | On this lab, scp can be used for getting these files: | ||
< | < | ||
- | mkdir / | + | cat > / |
- | scp 10.0.23.2:/ | + | |
- | scp 10.0.23.2:/ | + | |
- | scp 10.0.23.2:/ | + | |
- | </ | + | |
- | + | ||
- | Configure openvpn as a client: | + | |
- | + | ||
- | < | + | |
- | cat > / | + | |
client | client | ||
dev tun | dev tun | ||
remote 10.0.23.2 | remote 10.0.23.2 | ||
- | ca ca.crt | + | <ca> |
- | cert VM4.crt | + | |
- | key VM4.key | + | |
' | ' | ||
+ | cat / | ||
+ | echo '</ | ||
+ | echo '< | ||
+ | cat / | ||
+ | echo '</ | ||
+ | echo '< | ||
+ | cat / | ||
+ | echo '</ | ||
</ | </ | ||
+ | ==== VM4: OpenVPN client ==== | ||
+ | |||
+ | As OpenVPN client, VM4 should get its openvpn configuration file (that embedded certificate and key) from VM2 and put them in / | ||
+ | |||
+ | On this lab, scp can be used for getting these files: | ||
+ | < | ||
+ | mkdir / | ||
+ | scp 10.0.23.2:/ | ||
+ | </ | ||
+ | |||
Enable and start openvpn: | Enable and start openvpn: |
documentation/examples/gre_ipsec_and_openvpn.txt · Last modified: 2023/07/10 12:40 by olivier