On Apr 13, 2012, Ace Paus wrote:

> Thanks to this fantastic tutorial
> (http://ubuntuforums.org/showthread.php?p=11841542), I almost have
> fwknop set up on Ubuntu 12.04. But I'm stuck. I gave details in a
> comment to that tutorial post. No reply, so I'm asking here.

Apologies for the delayed response.

> How do I install the fwknop client files on an Ubuntu client? I do not
> want to install an MTA or build essentials and compile the source on
> the client. I built the code on the server. Which files should I copy
> to the client and where?

Assuming that the server is the same CPU architecture, etc., you can do the
following:

- Run the configure script to disable the server build, and install the client
in a custom location:

$ ./configure --disable-server --prefix=/some/tmp/path/fwknop_client && make && 
make install

- Here are all of the files that get installed:

$ cd /home/tmp/path/fwknop_client
$ find
.
./share
./share/man
./share/man/man8
./share/man/man8/fwknop.8
./share/info
./share/info/dir
./share/info/libfko.info
./bin
./bin/fwknop
./include
./include/fko.h
./lib
./lib/libfko.la
./lib/libfko.so
./lib/libfko.so.0
./lib/libfko.a
./lib/libfko.so.0.0.3

- If you replicate the /some/tmp/path/fwknop_client directory on your client
system, it should work.  However, you may need to account for libraries such
libgpgme if you build against that on the server but don't have it on the 
client,
etc.  Fortunately, the fwknop client does not link against very much:

$ ldd ./bin/fwknop
        linux-vdso.so.1 =>  (0x00007fff3efff000)
        libfko.so.0 => /some/tmp/path/fwknop_client/lib/libfko.so.0 
(0x00007fcba856e000)
        libc.so.6 => /lib/libc.so.6 (0x00007fcba81d8000)
        libgpgme.so.11 => /usr/lib/libgpgme.so.11 (0x00007fcba7fa2000)
        libgpg-error.so.0 => /lib/libgpg-error.so.0 (0x00007fcba7d9e000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fcba898b000)

> Also, I would like to log service starts and stops (and errors). I'm
> not sure how to do that. Here's my upstart script (from the tutorial
> above):

I'm not sure about logging starts and stops either with upstart - I'll check
into that.

> description "fwknop daemon- http://cipherdyne.org/fwknop/";
> start on (starting network-interface
>           or starting network-manager
>           or starting networking)
> 
> stop on runlevel [!023456]
> 
> console output
> 
> respawn
> respawn limit 10 5
> 
> pre-start script
>     test -x /usr/local/sbin/fwknopd || { stop; exit 0; }
>     test -x /usr/local/sbin/iptables.sh || { stop; exit 0; }
>     /usr/local/sbin/iptables.sh
> end script
> 
> pre-stop script
>     /usr/local/sbin/fwknopd --fw-flush
> end script
> 
> 
> Is there any chance of a 2.0 package getting into the Ubuntu 12.04
> repos? (The older package in the repos would not run for me on 12.04.
> I tried that before building from source.)

I will contact the Debian maintainer about this - it shouldn't be too long
I think before we can get it into Ubuntu 12.04.

Thanks,

--Mike


> Regards,
> -  Ace
> 
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> _______________________________________________
> Fwknop-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fwknop-discuss

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Fwknop-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fwknop-discuss

Reply via email to