On 4/29/2013 2:37 PM, Donald Woeltje wrote:
I've been using the Shrew Soft VPN client for serveral years now.....but
on Windows, and it has worked great. But now I'm trying to get it to
work on Linux and I cannot get it to work.

Compilation seemed to work correctly, as I didn't notice any errors in
the output (there were errors initially because I was missing some
dependencies that weren't listed in the instructions; so I'd find out
what package the missing dependency was in, install that package, and
then rerun cmake - on the third try cmake ran without errors and then I
ran make and make install and those ran without errors).

The problem is, when I run iked (and yes, I am running it as root) it
runs, appears to start up without problems (no errors in the on-screen
output), and then it just quits running (without generating any output
as to why). The first time I tried it, I didn't know it had quit
running, so I started up qikea, created the session config file, and
tried to make a VPN connection to my firewall and as soon as I clicked
the Connect button, it said that it could connect to the key server. So
I ran a ps aux | grep iked and the only thing returned was an entry for
the grep command. Then I did a ps -e and item by item checked the
output. No iked. So, every time I run iked, it shuts down right away. It
doesn't keep running as a daemon.

Hi Donald,

Please apply this diff. There is a bug in the client that makes it exit when the pid file option is not specified on the iked command line. See the iked man page for more details.

-Matthew

Index: source/iked/main.cpp
===================================================================
--- source/iked/main.cpp        (revision 879)
+++ source/iked/main.cpp        (working copy)
@@ -544,8 +544,9 @@
        // create our pid file
        //
 
-       if( !daemon_pidfile_create( path_pid ) )
-               return -1;
+       if( path_pid[ 0 ] )
+               if( !daemon_pidfile_create( path_pid ) )
+                       return -1;
 
        //
        // run daemon main loop
@@ -557,7 +558,8 @@
        // remove our pidfile
        //
 
-       daemon_pidfile_remove( path_pid );
+       if( path_pid[ 0 ] )
+               daemon_pidfile_remove( path_pid );
 
 #endif
 
_______________________________________________
vpn-help mailing list
[email protected]
https://lists.shrew.net/mailman/listinfo/vpn-help

Reply via email to