Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am new to using Ubuntu and OpenVPN.

Below are my questions:

  1. In Microsoft Windows, the files in the config folder have the file extension ovpn. I understand that in Ubuntu, I will have to change it to conf. Is that correct?

  2. What are the sudo commands to launch OpenVPN service, supposing I open and use a terminal window?

  3. During the time when OpenVPN program connects to a gateway/exit node, I would like to see the verbose log as in the following example (part of the log is displayed):

    Sat Jul 06 21:50:38 2013 OpenVPN 2.3.2 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [eurephia] [IPv6] built on Jun  3 2013
    Sat Jul 06 21:50:38 2013 MANAGEMENT: TCP Socket listening on [AF_INET]
    Sat Jul 06 21:50:38 2013 Need hold release from management interface, waiting...
    Sat Jul 06 21:50:38 2013 MANAGEMENT: Client connected from [AF_INET]
    Sat Jul 06 21:50:38 2013 MANAGEMENT: CMD 'state on'
    Sat Jul 06 21:50:38 2013 MANAGEMENT: CMD 'log all on'
    Sat Jul 06 21:50:38 2013 MANAGEMENT: CMD 'hold off'
    Sat Jul 06 21:50:38 2013 MANAGEMENT: CMD 'hold release'
    Sat Jul 06 21:50:38 2013 Socket Buffers: R=[65536->65536] S=[65536->65536]
    Sat Jul 06 21:50:38 2013 MANAGEMENT: >STATE:1234567890,RESOLVE,,,
    Sat Jul 06 21:50:42 2013 Attempting to establish TCP connection with [AF_INET]123.456.789.012:443
    Sat Jul 06 21:50:42 2013 MANAGEMENT: >STATE:1234567890,TCP_CONNECT,,,
    Sat Jul 06 21:50:45 2013 TCP connection established with [AF_INET]123.456.789.012:443
    Sat Jul 06 21:50:45 2013 TCPv4_CLIENT link local: [undef]
    Sat Jul 06 21:50:45 2013 TCPv4_CLIENT link remote: [AF_INET]123.456.789.012:443
    Sat Jul 06 21:50:45 2013 MANAGEMENT: >STATE:1373291445,WAIT,,,
    Sat Jul 06 21:50:46 2013 MANAGEMENT: >STATE:1373291446,AUTH,,,
    Sat Jul 06 21:50:46 2013 TLS: Initial packet from [AF_INET]123.456.789.012:443, sid=6c8b3036 7002cb48
    

What sudo command should I use?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.