Notices


Reply
Thread Tools
Posts: 42 | Thanked: 4 times | Joined on Oct 2009 @ Germany
#1
Hi,
I have problems to connect to my laptop via openvpn with my n900.
here are my config files:
laptop:
Code:
dev tun
remote *****.ath.cx
ifconfig 192.168.2.199 10.1.0.2
secret geheim.key
port 1194
verb 1
keepalive 30 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
n900:
Code:
dev tun
remote ****.ath.cx
ifconfig 10.1.0.2 192.168.2.199
route 192.168.2.0 255.255.255.0
secret geheim.key
port 1194
verb 1
keepalive 30 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
the command line says:
Code:
Mon Feb  8 17:32:05 2010 OpenVPN 2.1_rc20 arm-unknown-linux-gnueabi [SSL] [LZO2] [EPOLL] [MH] [PF_INET6] built on Nov 29 2009
Mon Feb  8 17:32:05 2010 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Mon Feb  8 17:32:05 2010 /usr/sbin/openvpn-vulnkey -q geheim.key
Mon Feb  8 17:32:06 2010 ******* WARNING *******: 'geheim.key' cannot be verified as a non-vulnerable key. See 'man openvpn-vulnkey' for details.
Mon Feb  8 17:32:06 2010 WARNING: file 'geheim.key' is group or others accessible
Mon Feb  8 17:32:06 2010 LZO compression initialized
Mon Feb  8 17:32:06 2010 TUN/TAP device tun0 opened
Mon Feb  8 17:32:06 2010 /sbin/ifconfig tun0 10.1.0.2 pointopoint 192.168.2.199 mtu 1500
Mon Feb  8 17:32:06 2010 GID set to nogroup
Mon Feb  8 17:32:06 2010 UID set to nobody
Mon Feb  8 17:32:06 2010 UDPv4 link local (bound): [undef]
Mon Feb  8 17:32:06 2010 UDPv4 link remote: [AF_INET]94.219.202.11:1194
and after ending with ctrl+c:
Code:
^CMon Feb  8 17:33:58 2010 event_wait : Interrupted system call (code=4)
ifconfig: SIOCSIFADDR: Permission denied
Mon Feb  8 17:33:58 2010 Linux ip addr del failed: external program exited with error status: 1
Mon Feb  8 17:33:59 2010 SIGINT[hard,] received, process exiting
does somebody have a solution?
 
Posts: 95 | Thanked: 66 times | Joined on Jun 2007 @ Barcelona, Spain
#2
Are you executing it as root?

Last edited by Pretoriano; 2010-02-10 at 21:56.
 
Posts: 1,208 | Thanked: 1,028 times | Joined on Oct 2007
#3
If the permission denied at exit was the only problem, you can get rid of it by not dropping root priviledges (user nobody, group nogroup)
 
Posts: 95 | Thanked: 66 times | Joined on Jun 2007 @ Barcelona, Spain
#4
Originally Posted by mikkov View Post
If the permission denied at exit was the only problem, you can get rid of it by not dropping root priviledges (user nobody, group nogroup)
I don't think thats the problem, I use openvpn dropping privilegies to nobody and nogroup.
But i'm not and expert
 
Posts: 1,208 | Thanked: 1,028 times | Joined on Oct 2007
#5
Originally Posted by Pretoriano View Post
I don't think thats the problem, I use openvpn dropping privilegies to nobody and nogroup.
But i'm not and expert
Well he didn't really tell what problem was except in thread title. And that error message should disappear when root priviledges are not dropped. It doesn't really have any effect because "problem" happens when closing the connection.
 
Posts: 42 | Thanked: 4 times | Joined on Oct 2009 @ Germany
#6
Hi guys,
I have removed user nobody, group nogroup and the errors disapperared.
I can not connect to my laptop, but there must be other problems.
If I have time, I'll take a look on that

thanks for helping!
 
Reply


 
Forum Jump


All times are GMT. The time now is 07:01.