Results 1 to 3 of 3
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-25-2010 #1Just Joined!
- Join Date
- Dec 2009
- Posts
- 53
[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:
now that i have the daemon running i am trying to connect to the UltraVPN service without any su rights using:Code:sudo openvpn --dev tun --user username --group users
Code: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:
client
dev tun
proto udp
hand-window 15
remote-random
remote servers443.ultravpn.fr 443
remote servers24.ultravpn.fr 24
remote servers21.ultravpn.fr 21
remote servers54.ultravpn.fr 54
remote servers24.ultravpn.net 24
remote servers443.ultravpn.net 443
resolv-retry infinite
nobind
# Try to preserve some state across restarts.
persist-key
persist-tun
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.
comp-lzo
# Set log file verbosity.
verb 3
auth-user-pass
- 03-25-2010 #2Just Joined!
- Join Date
- Dec 2009
- Posts
- 53
ok , i think i have sorted it, i used the --auth-user-pass option and specified a file with my credentials in.
Code:--auth-user-pass /root/credentials.
in the file:
Code: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.
- 03-27-2010 #3Just Joined!
- Join Date
- Dec 2009
- Posts
- 53
yeh thanks for all the wonderful help i receive on this forum.



