Advertisement
coolproxies

OpenVPN 2.0 Sample Configuration File

Jul 30th, 2015
28,524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.77 KB | None | 0 0
  1. ###############################################################################
  2. # OpenVPN 2.0 Sample Configuration File
  3. # Note that to use OpenVPN 2.0, you have to put the certification file of
  4. # the destination VPN Server on the OpenVPN Client computer when you use this
  5. # config file. Please refer the below descriptions carefully.
  6.  
  7.  
  8. ###############################################################################
  9. # Specify the type of the layer of the VPN connection.
  10. #
  11. # To connect to the VPN Server as a "Remote-Access VPN Client PC",
  12. # specify 'dev tun'. (Layer-3 IP Routing Mode)
  13. #
  14. # To connect to the VPN Server as a bridging equipment of "Site-to-Site VPN",
  15. # specify 'dev tap'. (Layer-2 Ethernet Bridgine Mode)
  16.  
  17. dev tun
  18.  
  19.  
  20. ###############################################################################
  21. # Specify the underlying protocol beyond the Internet.
  22. # Note that this setting must be correspond with the listening setting on
  23. # the VPN Server.
  24. #
  25. # Specify either 'proto tcp' or 'proto udp'.
  26.  
  27. proto tcp
  28.  
  29.  
  30. ###############################################################################
  31. # The destination hostname / IP address, and port number of
  32. # the target VPN Server.
  33. #
  34. # You have to specify as 'remote <HOSTNAME> <PORT>'. You can also
  35. # specify the IP address instead of the hostname.
  36. #
  37. # Note that the auto-generated below hostname are a "auto-detected
  38. # IP address" of the VPN Server. You have to confirm the correctness
  39. # beforehand.
  40. #
  41. # When you want to connect to the VPN Server by using TCP protocol,
  42. # the port number of the destination TCP port should be same as one of
  43. # the available TCP listeners on the VPN Server.
  44. #
  45. # When you use UDP protocol, the port number must same as the configuration
  46. # setting of "OpenVPN Server Compatible Function" on the VPN Server.
  47.  
  48. remote 110.35.138.133 995
  49.  
  50.  
  51. ###############################################################################
  52. # The HTTP/HTTPS proxy setting.
  53. #
  54. # Only if you have to use the Internet via a proxy, uncomment the below
  55. # two lines and specify the proxy address and the port number.
  56. # In the case of using proxy-authentication, refer the OpenVPN manual.
  57.  
  58. ;http-proxy-retry
  59. ;http-proxy [proxy server] [proxy port]
  60.  
  61.  
  62. ###############################################################################
  63. # The encryption and authentication algorithm.
  64. #
  65. # Default setting is good. Modify it as you prefer.
  66. # When you specify an unsupported algorithm, the error will occur.
  67. #
  68. # The supported algorithms are as follows:
  69. # cipher: [NULL-CIPHER] NULL AES-128-CBC AES-192-CBC AES-256-CBC BF-CBC
  70. # CAST-CBC CAST5-CBC DES-CBC DES-EDE-CBC DES-EDE3-CBC DESX-CBC
  71. # RC2-40-CBC RC2-64-CBC RC2-CBC
  72. # auth: SHA SHA1 MD5 MD4 RMD160
  73.  
  74. cipher AES-128-CBC
  75. auth SHA1
  76.  
  77.  
  78. ###############################################################################
  79. # Other parameters necessary to connect to the VPN Server.
  80. #
  81. # It is not recommended to modify it unless you have a particular need.
  82.  
  83. resolv-retry infinite
  84. nobind
  85. persist-key
  86. persist-tun
  87. client
  88. verb 3
  89. #auth-user-pass
  90.  
  91.  
  92. ###############################################################################
  93. # The certificate file of the destination VPN Server.
  94. #
  95. # The CA certificate file is embedded in the inline format.
  96. # You can replace this CA contents if necessary.
  97. # Please note that if the server certificate is not a self-signed, you have to
  98. # specify the signer's root certificate (CA) here.
  99.  
  100. <ca>
  101. -----BEGIN CERTIFICATE-----
  102. MIIDHDCCAgSgAwIBAgIFIGVpEXEwDQYJKoZIhvcNAQELBQAwRTEcMBoGA1UEAwwT
  103. cml3OTE0cGd5a3NwNjQyLm9yZzEYMBYGA1UECgwPZWZvaDVoIHdvazY0ODJzMQsw
  104. CQYDVQQGEwJVUzAeFw0xNTA1MTUxNzU3MTNaFw0yMTAyMTUxNzU3MTNaMEUxHDAa
  105. BgNVBAMME3JpdzkxNHBneWtzcDY0Mi5vcmcxGDAWBgNVBAoMD2Vmb2g1aCB3b2s2
  106. NDgyczELMAkGA1UEBhMCVVMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
  107. AQCeOibfxsMhxsSJpzCXrnYKKSq/ibG0Yr/gw7oUWoVsLqcmRoxW3zDJ7tFE+mOB
  108. c1PG8J7yYNUukY2oreGrxVpwzLzmexRliNcFiaL1V8O5ybTnoJ3yeokxbyMJarWL
  109. PA7w934rKZ40TZark2RPxIjhNt5DJ3UX99b6M2kW3uehujkZiJaG7oPH6beDW1jO
  110. URFW0tfNjL3NnY4ZA1h7lPqtyZdbpCDUa/U6IjSFAtwIqyQTzBtDJcERvvrg4ygE
  111. 8trLIeiljo0P+AvKBCYZm5CjpvLFpZepvAEsXdPlRENAnhznLUyz+1dJeNHYeugO
  112. mxS5FbWQ8udmw0/PJl12UZ6vAgMBAAGjEzARMA8GA1UdEwEB/wQFMAMBAf8wDQYJ
  113. KoZIhvcNAQELBQADggEBAFg8umXZsniIkPfJ/gvUubat+tVR3F37djeDAw1zEzdq
  114. 3818k8qUtXHQ5gvZvOsm3dUYWEclcqJTGbpv5kD+ijrP78ImzNjvKNJbC0vtW7lK
  115. IFvsxQhBFS1HSf7wS5bMuJ+XG9JwKhpf4BmV1v3wcG9eX8mOr+QU9fIuPrO1Sm2g
  116. 93ci3qi7S08FGFw488Vll7pw4I7sre2hfxQEunJfunNsrFzP3Oo1WittdNGqM3wt
  117. bgJD+BZWt+M6PNmC+kz4Ch7l7+aeHoRnn2Rgveu/OvGklfhomZ6ey3o5r1fb5jxH
  118. cw1yGHfTWuBqQNRCOwFlFfBsOl9XdiChXHa6CAedla0=
  119. -----END CERTIFICATE-----
  120.  
  121. </ca>
  122.  
  123.  
  124. ###############################################################################
  125. # The client certificate file (dummy).
  126. #
  127. # In some implementations of OpenVPN Client software
  128. # (for example: OpenVPN Client for iOS),
  129. # a pair of client certificate and private key must be included on the
  130. # configuration file due to the limitation of the client.
  131. # So this sample configuration file has a dummy pair of client certificate
  132. # and private key as follows.
  133.  
  134. <cert>
  135. -----BEGIN CERTIFICATE-----
  136. MIICxjCCAa4CAQAwDQYJKoZIhvcNAQEFBQAwKTEaMBgGA1UEAxMRVlBOR2F0ZUNs
  137. aWVudENlcnQxCzAJBgNVBAYTAkpQMB4XDTEzMDIxMTAzNDk0OVoXDTM3MDExOTAz
  138. MTQwN1owKTEaMBgGA1UEAxMRVlBOR2F0ZUNsaWVudENlcnQxCzAJBgNVBAYTAkpQ
  139. MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5h2lgQQYUjwoKYJbzVZA
  140. 5VcIGd5otPc/qZRMt0KItCFA0s9RwReNVa9fDRFLRBhcITOlv3FBcW3E8h1Us7RD
  141. 4W8GmJe8zapJnLsD39OSMRCzZJnczW4OCH1PZRZWKqDtjlNca9AF8a65jTmlDxCQ
  142. CjntLIWk5OLLVkFt9/tScc1GDtci55ofhaNAYMPiH7V8+1g66pGHXAoWK6AQVH67
  143. XCKJnGB5nlQ+HsMYPV/O49Ld91ZN/2tHkcaLLyNtywxVPRSsRh480jju0fcCsv6h
  144. p/0yXnTB//mWutBGpdUlIbwiITbAmrsbYnjigRvnPqX1RNJUbi9Fp6C2c/HIFJGD
  145. ywIDAQABMA0GCSqGSIb3DQEBBQUAA4IBAQChO5hgcw/4oWfoEFLu9kBa1B//kxH8
  146. hQkChVNn8BRC7Y0URQitPl3DKEed9URBDdg2KOAz77bb6ENPiliD+a38UJHIRMqe
  147. UBHhllOHIzvDhHFbaovALBQceeBzdkQxsKQESKmQmR832950UCovoyRB61UyAV7h
  148. +mZhYPGRKXKSJI6s0Egg/Cri+Cwk4bjJfrb5hVse11yh4D9MHhwSfCOH+0z4hPUT
  149. Fku7dGavURO5SVxMn/sL6En5D+oSeXkadHpDs+Airym2YHh15h0+jPSOoR6yiVp/
  150. 6zZeZkrN43kuS73KpKDFjfFPh8t4r1gOIjttkNcQqBccusnplQ7HJpsk
  151. -----END CERTIFICATE-----
  152.  
  153. </cert>
  154.  
  155. <key>
  156. -----BEGIN RSA PRIVATE KEY-----
  157. MIIEpAIBAAKCAQEA5h2lgQQYUjwoKYJbzVZA5VcIGd5otPc/qZRMt0KItCFA0s9R
  158. wReNVa9fDRFLRBhcITOlv3FBcW3E8h1Us7RD4W8GmJe8zapJnLsD39OSMRCzZJnc
  159. zW4OCH1PZRZWKqDtjlNca9AF8a65jTmlDxCQCjntLIWk5OLLVkFt9/tScc1GDtci
  160. 55ofhaNAYMPiH7V8+1g66pGHXAoWK6AQVH67XCKJnGB5nlQ+HsMYPV/O49Ld91ZN
  161. /2tHkcaLLyNtywxVPRSsRh480jju0fcCsv6hp/0yXnTB//mWutBGpdUlIbwiITbA
  162. mrsbYnjigRvnPqX1RNJUbi9Fp6C2c/HIFJGDywIDAQABAoIBAERV7X5AvxA8uRiK
  163. k8SIpsD0dX1pJOMIwakUVyvc4EfN0DhKRNb4rYoSiEGTLyzLpyBc/A28Dlkm5eOY
  164. fjzXfYkGtYi/Ftxkg3O9vcrMQ4+6i+uGHaIL2rL+s4MrfO8v1xv6+Wky33EEGCou
  165. QiwVGRFQXnRoQ62NBCFbUNLhmXwdj1akZzLU4p5R4zA3QhdxwEIatVLt0+7owLQ3
  166. lP8sfXhppPOXjTqMD4QkYwzPAa8/zF7acn4kryrUP7Q6PAfd0zEVqNy9ZCZ9ffho
  167. zXedFj486IFoc5gnTp2N6jsnVj4LCGIhlVHlYGozKKFqJcQVGsHCqq1oz2zjW6LS
  168. oRYIHgECgYEA8zZrkCwNYSXJuODJ3m/hOLVxcxgJuwXoiErWd0E42vPanjjVMhnt
  169. KY5l8qGMJ6FhK9LYx2qCrf/E0XtUAZ2wVq3ORTyGnsMWre9tLYs55X+ZN10Tc75z
  170. 4hacbU0hqKN1HiDmsMRY3/2NaZHoy7MKnwJJBaG48l9CCTlVwMHocIECgYEA8jby
  171. dGjxTH+6XHWNizb5SRbZxAnyEeJeRwTMh0gGzwGPpH/sZYGzyu0SySXWCnZh3Rgq
  172. 5uLlNxtrXrljZlyi2nQdQgsq2YrWUs0+zgU+22uQsZpSAftmhVrtvet6MjVjbByY
  173. DADciEVUdJYIXk+qnFUJyeroLIkTj7WYKZ6RjksCgYBoCFIwRDeg42oK89RFmnOr
  174. LymNAq4+2oMhsWlVb4ejWIWeAk9nc+GXUfrXszRhS01mUnU5r5ygUvRcarV/T3U7
  175. TnMZ+I7Y4DgWRIDd51znhxIBtYV5j/C/t85HjqOkH+8b6RTkbchaX3mau7fpUfds
  176. Fq0nhIq42fhEO8srfYYwgQKBgQCyhi1N/8taRwpk+3/IDEzQwjbfdzUkWWSDk9Xs
  177. H/pkuRHWfTMP3flWqEYgW/LW40peW2HDq5imdV8+AgZxe/XMbaji9Lgwf1RY005n
  178. KxaZQz7yqHupWlLGF68DPHxkZVVSagDnV/sztWX6SFsCqFVnxIXifXGC4cW5Nm9g
  179. va8q4QKBgQCEhLVeUfdwKvkZ94g/GFz731Z2hrdVhgMZaU/u6t0V95+YezPNCQZB
  180. wmE9Mmlbq1emDeROivjCfoGhR3kZXW1pTKlLh6ZMUQUOpptdXva8XxfoqQwa3enA
  181. M7muBbF0XN7VO80iJPv+PmIZdEIAkpwKfi201YB+BafCIuGxIF50Vg==
  182. -----END RSA PRIVATE KEY-----
  183.  
  184. </key>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement