1. Install
lab.ovpn
Start connection:
http://openvpn.net/index.php/open-source/downloads.html
2. Setup
Copy "lab.ovpn" and "pass.txt" to "C:\Program Files\OpenVPN\config"
lab.ovpn
client
dev tun
proto tcp
remote vpn.pentestit.ru 443
auth-user-pass ./pass.txt
resolv-retry infinite
persist-key
persist-tun
comp-lzo
verb 3
<ca>
-----BEGIN CERTIFICATE-----
MIIDXDCCAsWgAwIBAgIJAJeobwvMxFr5MA0GCSqGSIb3DQEBBQUAMH0xCzAJBgNV
BAYTAlJVMQwwCgYDVQQIEwNNU0sxDzANBgNVBAcTBk1vc2NvdzESMBAGA1UEChMJ
UGVudGVzdElUMRkwFwYDVQQDExBsYWIucGVudGVzdGl0LnJ1MSAwHgYJKoZIhvcN
AQkBFhFpbmZvQHBlbnRlc3RpdC5ydTAeFw0xMzEyMTIxNjU1NTZaFw0yMzEyMTAx
NjU1NTZaMH0xCzAJBgNVBAYTAlJVMQwwCgYDVQQIEwNNU0sxDzANBgNVBAcTBk1v
c2NvdzESMBAGA1UEChMJUGVudGVzdElUMRkwFwYDVQQDExBsYWIucGVudGVzdGl0
LnJ1MSAwHgYJKoZIhvcNAQkBFhFpbmZvQHBlbnRlc3RpdC5ydTCBnzANBgkqhkiG
9w0BAQEFAAOBjQAwgYkCgYEAonx9zXgc6O1Au8PxpoGVRXS2UGn9w6WwYT5O4Ozb
COFNmJCCEg/4zwgRFKHdcrcxEEXNOXnXzQVGFEilJortmXbrUJtDbprv7tzxq6sU
6+WKqYhjOzcS2bC0A2GXqaMPCrs+pG0WRMnZICJjceNg0tlm7tivD9RSu2xwAqBv
rzsCAwEAAaOB4zCB4DAdBgNVHQ4EFgQURIEnvYfSGVQV+fVav271aVU3ck8wgbAG
A1UdIwSBqDCBpYAURIEnvYfSGVQV+fVav271aVU3ck+hgYGkfzB9MQswCQYDVQQG
EwJSVTEMMAoGA1UECBMDTVNLMQ8wDQYDVQQHEwZNb3Njb3cxEjAQBgNVBAoTCVBl
bnRlc3RJVDEZMBcGA1UEAxMQbGFiLnBlbnRlc3RpdC5ydTEgMB4GCSqGSIb3DQEJ
ARYRaW5mb0BwZW50ZXN0aXQucnWCCQCXqG8LzMRa+TAMBgNVHRMEBTADAQH/MA0G
CSqGSIb3DQEBBQUAA4GBAIItdiW5uFjx1p8G4RN3WQxsKA65xgwu2xkUweZOeRoq
UpDQweOosxhXBQc1FX+oSbTOPZ1sBjCT4V4sdXlu6THVEf3RNxUoVPQXeGjl9Jlx
ZvAzKKIeEVzHPu1frOCU1u7P2krXBQvHtlZRQ0zUfF09qz4fBht+r4uNIlgTwLrm
-----END CERTIFICATE-----
</ca> pass.txt
Sign in or sign up for get credentials 3. Run OpenVPN "as Administrator".
# apt-get install openvpn2. Setup
# cd /opt && mkdir pentestitCopy files "lab.ovpn", "pass.txt" and "ovpn.sh" to "/opt/pentestit/.
lab.ovpn
client dev tun proto tcp remote vpn.pentestit.ru 443 auth-user-pass /opt/pentestit/pass.txt resolv-retry infinite persist-key persist-tun comp-lzo verb 3 <ca> -----BEGIN CERTIFICATE----- MIIDXDCCAsWgAwIBAgIJAJeobwvMxFr5MA0GCSqGSIb3DQEBBQUAMH0xCzAJBgNV BAYTAlJVMQwwCgYDVQQIEwNNU0sxDzANBgNVBAcTBk1vc2NvdzESMBAGA1UEChMJ UGVudGVzdElUMRkwFwYDVQQDExBsYWIucGVudGVzdGl0LnJ1MSAwHgYJKoZIhvcN AQkBFhFpbmZvQHBlbnRlc3RpdC5ydTAeFw0xMzEyMTIxNjU1NTZaFw0yMzEyMTAx NjU1NTZaMH0xCzAJBgNVBAYTAlJVMQwwCgYDVQQIEwNNU0sxDzANBgNVBAcTBk1v c2NvdzESMBAGA1UEChMJUGVudGVzdElUMRkwFwYDVQQDExBsYWIucGVudGVzdGl0 LnJ1MSAwHgYJKoZIhvcNAQkBFhFpbmZvQHBlbnRlc3RpdC5ydTCBnzANBgkqhkiG 9w0BAQEFAAOBjQAwgYkCgYEAonx9zXgc6O1Au8PxpoGVRXS2UGn9w6WwYT5O4Ozb COFNmJCCEg/4zwgRFKHdcrcxEEXNOXnXzQVGFEilJortmXbrUJtDbprv7tzxq6sU 6+WKqYhjOzcS2bC0A2GXqaMPCrs+pG0WRMnZICJjceNg0tlm7tivD9RSu2xwAqBv rzsCAwEAAaOB4zCB4DAdBgNVHQ4EFgQURIEnvYfSGVQV+fVav271aVU3ck8wgbAG A1UdIwSBqDCBpYAURIEnvYfSGVQV+fVav271aVU3ck+hgYGkfzB9MQswCQYDVQQG EwJSVTEMMAoGA1UECBMDTVNLMQ8wDQYDVQQHEwZNb3Njb3cxEjAQBgNVBAoTCVBl bnRlc3RJVDEZMBcGA1UEAxMQbGFiLnBlbnRlc3RpdC5ydTEgMB4GCSqGSIb3DQEJ ARYRaW5mb0BwZW50ZXN0aXQucnWCCQCXqG8LzMRa+TAMBgNVHRMEBTADAQH/MA0G CSqGSIb3DQEBBQUAA4GBAIItdiW5uFjx1p8G4RN3WQxsKA65xgwu2xkUweZOeRoq UpDQweOosxhXBQc1FX+oSbTOPZ1sBjCT4V4sdXlu6THVEf3RNxUoVPQXeGjl9Jlx ZvAzKKIeEVzHPu1frOCU1u7P2krXBQvHtlZRQ0zUfF09qz4fBht+r4uNIlgTwLrm -----END CERTIFICATE----- </ca>pass.txt
Sign in or sign up for get credentialsovpn.sh
#!/bin/bash openvpn --config /opt/pentestit/lab.ovpn &3. Run OpenVPN
Start connection:
# chmod +x /opt/pentestit/ovpn.sh # /opt/pentestit/ovpn.shStop connection:
# killall openvpn
1. Download and Install OpenVPN
http://openvpn.net/index.php/open-source/downloads.html
2. Setup
Copy "lab.ovpn" and "pass.txt" to "C:\Program Files\OpenVPN\config"
lab.ovpn
client
dev tun
proto tcp
remote vpn.pentestit.ru 443
auth-user-pass ./pass.txt
resolv-retry infinite
persist-key
persist-tun
comp-lzo
verb 3
<ca>
-----BEGIN CERTIFICATE-----
MIIDXDCCAsWgAwIBAgIJAJeobwvMxFr5MA0GCSqGSIb3DQEBBQUAMH0xCz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