ak47suk1

sample config client openvpn client.ovpn

Dec 15th, 2012
1,846
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ##############################################
  2. # Sample client-side OpenVPN 2.0 config file #
  3. # for connecting to multi-client server. #
  4. # #
  5. # This configuration can be used by multiple #
  6. # clients, however each client should have #
  7. # its own cert and key files. #
  8. # #
  9. # On Windows, you might want to rename this #
  10. # file so it has a .ovpn extension #
  11. ##############################################
  12.  
  13. # Specify that we are a client and that we
  14. # will be pulling certain config file directives
  15. # from the server.
  16. client
  17.  
  18. # Use the same setting as you are using on
  19. # the server.
  20. # On most systems, the VPN will not function
  21. # unless you partially or fully disable
  22. # the firewall for the TUN/TAP interface.
  23. ;dev tap
  24. dev tun
  25.  
  26. # Windows needs the TAP-Win32 adapter name
  27. # from the Network Connections panel
  28. # if you have more than one. On XP SP2,
  29. # you may need to disable the firewall
  30. # for the TAP adapter.
  31. ;dev-node MyTap
  32.  
  33. # Are we connecting to a TCP or
  34. # UDP server? Use the same setting as
  35. # on the server.
  36. # bergantung ptotocol yang anda guna. saya guna UDP/53
  37. # jadi saya komen proto tcp
  38. ;proto tcp
  39. proto udp
  40.  
  41. # The hostname/IP and port of the server.
  42. # You can have multiple remote entries
  43. # to load balance between the servers.
  44. # remote ip-server-anda port-yang-anda-guna-di-server
  45. remote ip-server-anda 53
  46. ;remote my-server-2 1194
  47.  
  48. # Choose a random host from the remote
  49. # list for load-balancing. Otherwise
  50. # try hosts in the order specified.
  51. ;remote-random
  52.  
  53. # Keep trying indefinitely to resolve the
  54. # host name of the OpenVPN server. Very useful
  55. # on machines which are not permanently connected
  56. # to the internet such as laptops.
  57. resolv-retry infinite
  58.  
  59. # Most clients don't need to bind to
  60. # a specific local port number.
  61. nobind
  62.  
  63. # Downgrade privileges after initialization (non-Windows only)
  64. ;user nobody
  65. ;group nogroup
  66.  
  67. # Try to preserve some state across restarts.
  68. persist-key
  69. persist-tun
  70.  
  71. # If you are connecting through an
  72. # HTTP proxy to reach the actual OpenVPN
  73. # server, put the proxy server/IP and
  74. # port number here. See the man page
  75. # if your proxy server requires
  76. # authentication.
  77. ;http-proxy-retry # retry on connection failures
  78. ;http-proxy [proxy server] [proxy port #]
  79.  
  80. # Wireless networks often produce a lot
  81. # of duplicate packets. Set this flag
  82. # to silence duplicate packet warnings.
  83. mute-replay-warnings
  84.  
  85. # SSL/TLS parms.
  86. # See the server config file for more
  87. # description. It's best to use
  88. # a separate .crt/.key file pair
  89. # for each client. A single ca
  90. # file can be used for all clients.
  91. ca ca.crt
  92. cert nama-pengguna.crt
  93. key nama-pengguna.key
  94.  
  95. # Verify server certificate by checking
  96. # that the certicate has the nsCertType
  97. # field set to "server". This is an
  98. # important precaution to protect against
  99. # a potential attack discussed here:
  100. # http://openvpn.net/howto.html#mitm
  101. #
  102. # To use this feature, you will need to generate
  103. # your server certificates with the nsCertType
  104. # field set to "server". The build-key-server
  105. # script in the easy-rsa folder will do this.
  106. ns-cert-type server
  107.  
  108. # If a tls-auth key is used on the server
  109. # then every client must also have the key.
  110. ;tls-auth ta.key 1
  111.  
  112. # Select a cryptographic cipher.
  113. # If the cipher option is used on the server
  114. # then you must also specify it here.
  115. cipher AES-128-CBC
  116.  
  117. # Enable compression on the VPN link.
  118. # Don't enable this unless it is also
  119. # enabled in the server config file.
  120. comp-lzo
  121.  
  122. # Set log file verbosity.
  123. verb 1
  124.  
  125. # Silence repeating messages
  126. ;mute 20
  127.  
  128. # udp sahaja yang perlu buang # dari baris berikut.
  129.  
  130. # tun-mtu 1500
  131. # tun-mtu-extra 100
  132. # mssfix 1500
RAW Paste Data