[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

[Openvpn-users] OpenVPN tcp no restart with user/group


  • Subject: [Openvpn-users] OpenVPN tcp no restart with user/group
  • From: Igor Barsanti <barsigor@xxxxxxxx>
  • Date: Fri, 09 Jan 2004 00:15:25 +0100

I've this problem:
Openvpn setup with TCP protocol (for router UDP problem...)

in server openvpn.conf:
user nobody
group nobody

when i start tunnel all works perfectly, when, from the client, i
shutdown tunnel the server's openvpn process exit with:

Thu Jan  8 23:59:58 2004 29: Note: Cannot open TUN/TAP dev /dev/net/tun:
Permission denied (errno=13)
Thu Jan  8 23:59:58 2004 30: Note: Attempting fallback to kernel 2.2
TUN/TAP interface
Thu Jan  8 23:59:58 2004 31: Cannot allocate TUN/TAP dev dynamically
Thu Jan  8 23:59:58 2004 32: Exiting

i've assigned /dev/net and /dev/net/tun to nobody then i obtain:

Fri Jan  9 00:08:28 2004 29: TUN/TAP device tun0 opened
Fri Jan  9 00:08:28 2004 30: /sbin/ifconfig tun0 192.168.82.128
pointopoint 192.168.82.163 mtu 1253
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFDSTADDR: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFMTU: Operation not permitted
Fri Jan  9 00:08:28 2004 31: Linux ifconfig failed: shell command exited
with error status: 1
Fri Jan  9 00:08:28 2004 32: Exiting

I think it's a permission problem, what must be the correct perms ???

Thanks.



____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users