Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    [SOLVED] OpenVPn Connection Isses,

    Hi, sorry, this is my first experience with VPNs and OpenVPN so i need some basic pointers, it can be confusing running through the howto pages when i am not entirely sure what i should be doing.

    i've setup an OpenVPN service to run it as a limited user using:

    sudo openvpn --dev tun --user username --group users
    now that i have the daemon running i am trying to connect to the UltraVPN service without any su rights using:

    openvpn --config ~/UltraVPN.conf

    the following warnings are output:

    Thu Mar 25 20:28:37 2010 Note: Cannot ioctl TUNSETIFF tun: Operation not permitted (errno=1)
    Thu Mar 25 20:28:37 2010 Note: Attempting fallback to kernel 2.2 TUN/TAP interface
    Thu Mar 25 20:28:37 2010 Cannot allocate TUN/TAP dev dynamically
    Thu Mar 25 20:28:37 2010 Exiting

    and also:
    Thu Mar 25 20:27:38 2010 WARNING: No server certificate verification method has been enabled.

    im not really sure what either means or how to fix them. any ideas?

    Thank you.

    Here is the config file:


    dev tun

    proto udp

    hand-window 15


    remote 443

    remote 24

    remote 21

    remote 54

    remote 24

    remote 443

    resolv-retry infinite


    # Try to preserve some state across restarts.



    ca '/home/axe/UltraVPN.crt'

    # Enable compression on the VPN link.

    # Don't enable this unless it is also

    # enabled in the server config file.


    # Set log file verbosity.

    verb 3


  2. #2
    ok , i think i have sorted it, i used the --auth-user-pass option and specified a file with my credentials in.

    --auth-user-pass /root/credentials.

    in the file:

    user username
    pass password

    now the only question i have is if i am disconnected will the client reconnect even though it will be running with user level privileges but the credentials are stored in /root?

    the config file specifies persistent tun and persistent key, does that apply to this situation? Thanks.

  3. #3
    yeh thanks for all the wonderful help i receive on this forum.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts