<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel">
    <title>gmane.network.vpnc.devel</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.vpnc.devel/3799"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.vpnc.devel/3798"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.vpnc.devel/3797"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.vpnc.devel/3796"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.vpnc.devel/3795"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.vpnc.devel/3794"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.vpnc.devel/3793"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.vpnc.devel/3792"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.vpnc.devel/3791"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.vpnc.devel/3790"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.vpnc.devel/3789"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.vpnc.devel/3788"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.vpnc.devel/3787"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.vpnc.devel/3786"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.vpnc.devel/3785"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.vpnc.devel/3784"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.vpnc.devel/3783"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.vpnc.devel/3782"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.vpnc.devel/3781"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.vpnc.devel/3780"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3799">
    <title>Help ! Vpnc-nortel  don't work...</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3799</link>
    <description>&lt;pre&gt;Hi ,
my company use a Nortel device as VPN concentrator to permit remote access to it's internal network.
Usually I use  Contivity client for Windows to connect and working from everywhere but I'd like to do the same also from my linux machine ...

Unfortunatly the connection from linux don't work , because the link isn't stable and was always dropped after 30-40 secs...
I have tried several configuration but without success....

I hope that you could help me....
To give you all needed info I  attached the following  files :

- the trace of execution of vpnc with debug level 3 ,
- the vpnc configuration 
- the info showed by working Windows Nortel Contivity client

.... and ....

- the source code of an old  linux client for nortel vpn ( for kernel 2.4 / 2.6 )


Thanx in advance...
Al


---------------------------------------------------------------------------------------------------------------------------------------------Onesto è colui che cambia il proprio pensiero per accordarlo alla veritàDisonesto &lt;/pre&gt;</description>
    <dc:creator>Alberto .</dc:creator>
    <dc:date>2013-05-22T10:47:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3798">
    <title>Re: vpnc doesn't work with libgcrypt build with caps support</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3798</link>
    <description>&lt;pre&gt;Hi Antonio,


that sounds a little worrying!

While vpnc as-is works reasonably well for many people and ipsec-based VPN
generally seems to be on the decline (at least for Cisco), so lots of
upstream development may not be needed or worthwhile any more, I think
there still needs to be someone who picks up the patches that get sent
to the mailing list. Thorough testing may not be necessary or can be
done by the bug reporters / patch submitters / SVN version users, but it
would be good to keep the upstream repository as a central place to
collect contributions.

Would you (or anybody else with commit access) stay around to do
something like that?

Florian
- maintaining vpnc in Debian -
&lt;/pre&gt;</description>
    <dc:creator>Florian Schlichting</dc:creator>
    <dc:date>2013-05-06T07:06:04</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3797">
    <title>Re: vpnc doesn't work with libgcrypt build with caps support</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3797</link>
    <description>&lt;pre&gt;Hello Antonio Borneo and Justin Lecher,

I'm the original reporter of the bug on Gentoo side. Justin Lecher told
me to continue the discussion here.


Oh, I remember openvpn supports dropping privileges after establishing
tunnel, so I thought vpnc could as well. I didn't look into how openvpn
achieved that, though.


It sounds like the easiest option, but Justin apparently doesn't like it
("libgcrypt is not an option from the gentoo packaging guideline
perspective.")


Yeah, sounds pretty tricky indeed.


I might be able to provide a Cisco VPN account for testing, but probably
only during very limited hours in a day, if you really really can't find
a better way to test this.


I could confirm the trick works in my brief test with
net-misc/vpnc-0.5.3_p527.

With my severely limited comprehension of the situation, what I could
see regarding libgcrypt's secure memory implementation are:

1. Secure memory is (usually) allocated via mmap() with MAP_PRIVATE |
MAP_ANONYMOUS (src/secmem.c, init_pool()), while standa&lt;/pre&gt;</description>
    <dc:creator>Richard Grenville</dc:creator>
    <dc:date>2013-05-02T16:10:10</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3796">
    <title>Re: vpnc doesn't work with libgcrypt build with caps support</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3796</link>
    <description>&lt;pre&gt;Hello Antonio,


I would like someone to pick up this idea and do the work.


I tried this and it works. How severe would you consider the security
reduction?
Is this something one could do or rather a no-go?

Thanks for the quick response,
Justin

&lt;/pre&gt;</description>
    <dc:creator>Justin</dc:creator>
    <dc:date>2013-05-02T10:57:47</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3795">
    <title>Re: vpnc doesn't work with libgcrypt build with capssupport</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3795</link>
    <description>&lt;pre&gt;Hi Justin,

On Wed, May 1, 2013 at 9:27 PM, Justin &amp;lt;jlec-aBrp7R+bbdUdnm+yROfE0A&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:

Well spotted!


In the long term it will require a special libgcrypt for vpnc only!
I'm not sure this is the right way.


Root privileges are required also at vpnc exit to resume initial
routing table and DNS and to remove tun/tap device. Dropping
privileges is not correct.
Probably the solution is to split vpnc is two tasks, one that keeps
root privileges and another that uses GCRYCTL_INIT_SECMEM. But it's a
major rework!


I'm not anymore active in vpnc, since all my accounts with Cisco or
Nortel vpn are over.
I even cannot test completely a new binary.

Digging with google, one possible solution is by stop using secure
memory and use the standard allocator:
-       gcry_control(GCRYCTL_INIT_SECMEM, 16384, 0);
+      gcry_control(GCRYCTL_DISABLE_SECMEM);
This could have drawbacks in terms of security. Need deeper investigation.

In mean time would be good if you could test the code change above.

Best &lt;/pre&gt;</description>
    <dc:creator>Antonio Borneo</dc:creator>
    <dc:date>2013-05-01T16:48:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3794">
    <title>vpnc doesn't work with libgcrypt build with capssupport</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3794</link>
    <description>&lt;pre&gt;Hello,

I would like to forward to you a bug report I received
(https://bugs.gentoo.org/show_bug.cgi?id=467744):


Problem:

net-misc/vpnc-0.5.3_p527 doesn't connect to server with
dev-libs/libgcrypt-1.5.2[caps] (the "caps" USE flag was added yesterday,
by the way):

----
# vpnc /etc/vpnc/vpnc.conf --debug 3

vpnc version 0.5.3
   hex_test: 00010203

S1 init_sockaddr
 [2013-04-28 21:41:02]

S2 make_socket
 [2013-04-28 21:41:03]
vpnc: Error binding to source port. Try '--local-port 0'
Failed to bind to 0.0.0.0:500: Permission denied

## Try an unprivileged port
# vpnc /etc/vpnc/vpnc.conf --debug 3 --local-port 10942

vpnc version 0.5.3
   hex_test: 00010203

S1 init_sockaddr
 [2013-04-28 21:41:59]

S2 make_socket
 [2013-04-28 21:42:00]

S3 setup_tunnel
 [2013-04-28 21:42:00]
   using interface
vpnc: can't initialise tunnel interface: Operation not permitted
----

With dev-libs/libgcrypt-1.5.2[-caps] it works correctly.

I did a bit debugging, and found vpnc calls
"gcry_control(GCRYCTL_INIT_SECMEM, 16384, 0);"&lt;/pre&gt;</description>
    <dc:creator>Justin</dc:creator>
    <dc:date>2013-05-01T13:27:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3793">
    <title>VPNC no longer connecting?</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3793</link>
    <description>&lt;pre&gt;Yesterday, vpnc connected to my office.  Today, it doesn't.  And, of course, 
$work doesn't want to support me at all for reasons I can never quite 
understand.

I'm hoping someone here will have some sort of idea what's going on, as I can 
no longer do any work.

The end of the --debug 98 looks like this:

   PARSING PAYLOAD type: 00 (ISAKMP_PAYLOAD_NONE)
   PARSE_OK
   got ike lifetime attributes: 2147483 seconds
   IKE SA selected psk+xauth-3des-sha1
   unknown ISAKMP_PAYLOAD_VID: 12f5f28c 457168a9 702d9fe2 74cc0100
   peer is XAUTH capable (draft-ietf-ipsec-isakmp-xauth-06)
   ignoring that peer is DPD capable (RFC3706)
   peer is NAT-T capable (RFC 3947)
   peer is using type 20 (ISAKMP_PAYLOAD_NAT_D) for NAT-Discovery payloads
   peer is using type 20 (ISAKMP_PAYLOAD_NAT_D) for NAT-Discovery payloads
   unknown ISAKMP_PAYLOAD_VID:
   4048b7d5 6ebce885 25e7de7f 00d6c2d3 c0000000
   unknown ISAKMP_PAYLOAD_VID: 1f07f70e aa6514d3 b0fa9654 2a500100
   dh_shared_secret:
   a786d3c9 5f2f9f1d e0b5ad9e e8ab8a33&lt;/pre&gt;</description>
    <dc:creator>Darin McBride</dc:creator>
    <dc:date>2013-04-22T16:15:07</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3792">
    <title>Timeout issue (rekeying?)</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3792</link>
    <description>&lt;pre&gt;I'm having a timeout issue: after 30m vpnc dies with message "vpnc: no
response from target". The lifetime advertised by the server is 8h.

Here is an abridged version of the log:

VPNC started in foreground
(it works for exactly 30m, then:)
S7.1 QM_packet1
S7.2 QM_packet2 send_receive
S7.3 QM_packet2 validate type
vpnc: no response from target

Full --debug 3 is available here:
http://www.gruppo4.com/~tobia/vpnc_vr_3.log

Many thanks to whomever will help me figure out what the problem might be.

Best regards,
Tobia
&lt;/pre&gt;</description>
    <dc:creator>Tobia Conforto</dc:creator>
    <dc:date>2013-04-04T17:47:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3791">
    <title>Stable release issue</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3791</link>
    <description>&lt;pre&gt;Hello

I'm writing to raise an issue that is probably of low interest to vpnc
developers, but is of some relevance to the user base at large.

Recently I was having a problem with the dead peer detection firing at
random. After some googling I found Mihai's post from 2010 [1]. I
cursed the ancient Debian package and went off to recompile vpnc from
the latest sources.

I did so, downloading the latest tarball from the website, only to
discover (hours later) that it *still* didn't include that fix from
2010.

Now, I have no problem building from svn, (that's what I did, at last)
but I think it's misleading to offer "stable" releases for download on
the project's website without either 1) a maintainer that periodically
releases them, or 2) a notice that users are advised to checkout from
svn.

So, in the absence of 1), I would suggest that somebody who has access
to the website adds a notice to direct users (and distribution
packagers) to use the latest commit. I believe this would save a
non-trivial amount of &lt;/pre&gt;</description>
    <dc:creator>Tobia Conforto</dc:creator>
    <dc:date>2013-04-04T16:29:04</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3790">
    <title>Re: Issues with XAUTH and 2-factor authentication (Username/Password and SecureID) and how I got mine working</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3790</link>
    <description>&lt;pre&gt;
Thanks!

Antonio
&lt;/pre&gt;</description>
    <dc:creator>Antonio Borneo</dc:creator>
    <dc:date>2013-03-17T02:39:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3789">
    <title>Re: Issues with XAUTH and 2-factor authentication (Username/Password and SecureID) and how I got mine working</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3789</link>
    <description>&lt;pre&gt;Hi Antonio,

The changes you made to vpnc-nortel (r527) work for me when specifying
the vendor as cisco. I just tested them out and connected fine.

Dan Motles

On Sun, Mar 10, 2013 at 11:05 AM, Antonio Borneo
&amp;lt;borneo.antonio-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:
&lt;/pre&gt;</description>
    <dc:creator>Daniel Motles</dc:creator>
    <dc:date>2013-03-16T16:20:22</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3788">
    <title>Re: [PATCH 0/4] Unprivileged daemon</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3788</link>
    <description>&lt;pre&gt;
https://github.com/alonbl/vpnc-scripts/compare/master...unprivileged
&lt;/pre&gt;</description>
    <dc:creator>Alon Bar-Lev</dc:creator>
    <dc:date>2013-03-15T21:18:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3787">
    <title>Re: [PATCH 0/4] Unprivileged daemon</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3787</link>
    <description>&lt;pre&gt;
0/5 of course...

https://github.com/alonbl/vpnc/compare/master...unprivileged
&lt;/pre&gt;</description>
    <dc:creator>Alon Bar-Lev</dc:creator>
    <dc:date>2013-03-15T21:18:04</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3786">
    <title>[PATCH 4/4] support route metric</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3786</link>
    <description>&lt;pre&gt;This adds optional ROUTE_METRIC environment variable to vpnc-script to
allow set non default routes and dns metrics.

Signed-off-by: Alon Bar-Lev &amp;lt;alon.barlev-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt;
---
 vpnc-script | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vpnc-script b/vpnc-script
index cd12324..3e1472c 100755
--- a/vpnc-script
+++ b/vpnc-script
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -238,7 +238,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; if [ -n "$IPROUTE" ]; then
 NETWORK="$1"
 NETMASK="$2"
 NETMASKLEN="$3"
-$IPROUTE route replace "$NETWORK/$NETMASKLEN" dev "$TUNDEV"
+$IPROUTE route replace "$NETWORK/$NETMASKLEN" dev "$TUNDEV" ${ROUTE_METRIC:+metric ${ROUTE_METRIC}}
 $IPROUTE route flush cache
 }
 
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -553,7 +553,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; nameserver $i"
 NEW_RESOLVCONF="$NEW_RESOLVCONF
 domain $CISCO_DEF_DOMAIN"
 fi
-echo "$NEW_RESOLVCONF" | ${RESOLVCONF} -a $TUNDEV
+echo "$NEW_RESOLVCONF" | ${RESOLVCONF} ${ROUTE_METRIC:+-m ${ROUTE_METRIC}} -a $TUNDEV
 }
 
 restore_resolvconf_manager() {
&lt;/pre&gt;</description>
    <dc:creator>Alon Bar-Lev</dc:creator>
    <dc:date>2013-03-15T21:13:14</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3785">
    <title>[PATCH 3/4] always run the vpnc-script at exit</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3785</link>
    <description>&lt;pre&gt;This allows persisted tun device to be cleaned up for reuse.

This is the minimal change to reach the goal using atexit(),
not sure it is the best way.

Signed-off-by: Alon Bar-Lev &amp;lt;alon.barlev-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt;
---
 vpnc-script | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/vpnc-script b/vpnc-script
index 0b68623..cd12324 100755
--- a/vpnc-script
+++ b/vpnc-script
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -738,7 +738,9 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; do_disconnect() {
 $IPROUTE -6 addr del $INTERNAL_IP6_NETMASK dev $TUNDEV
 fi
 fi
+}
 
+destroy() {
 destroy_tun_device
 }
 
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -767,6 +769,10 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; case "$reason" in
 reconnect)
 run_hooks reconnect
 ;;
+destroy)
+run_hooks destroy
+do_destroy
+;;
 *)
 echo "unknown reason '$reason'. Maybe vpnc-script is out of date" 1&amp;gt;&amp;amp;2
 exit 1
&lt;/pre&gt;</description>
    <dc:creator>Alon Bar-Lev</dc:creator>
    <dc:date>2013-03-15T21:13:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3784">
    <title>[PATCH 2/4] delete tun address on disconnect</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3784</link>
    <description>&lt;pre&gt;This enables persist tun device to be reused in future
connections.

ipv6 is not tested.

Maybe it would be cleaner to define functions for address
manipulation, not sure.

To be simple, this patch only handles iproute2.

Signed-off-by: Alon Bar-Lev &amp;lt;alon.barlev-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt;
---
 vpnc-script | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/vpnc-script b/vpnc-script
index 07dd2b0..0b68623 100755
--- a/vpnc-script
+++ b/vpnc-script
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -725,6 +725,20 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; do_disconnect() {
 if [ -n "$INTERNAL_IP4_DNS" ]; then
 $RESTORERESOLVCONF
 fi
+
+if [ -n "$IPROUTE" ]; then
+if [ -n "$INTERNAL_IP4_ADDRESS" ]; then
+$IPROUTE addr del "$INTERNAL_IP4_ADDRESS/255.255.255.255" peer "$INTERNAL_IP4_ADDRESS" dev "$TUNDEV"
+fi
+# If the netmask is provided, it contains the address _and_ netmask
+if [ -n "$INTERNAL_IP6_ADDRESS" ] &amp;amp;&amp;amp; [ -z "$INTERNAL_IP6_NETMASK" ]; then
+INTERNAL_IP6_NETMASK="$INTERNAL_IP6_ADDRESS/128"
+fi
+if [ -n "$INTERNAL_IP6_NETMASK" ]; then
+&lt;/pre&gt;</description>
    <dc:creator>Alon Bar-Lev</dc:creator>
    <dc:date>2013-03-15T21:13:12</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3783">
    <title>[PATCH 0/4] Unprivileged daemon</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3783</link>
    <description>&lt;pre&gt;1. Allow overriding utilities.
2. Allow overriding rootfs location.
3. Handle tun interface cleanup when disconnect.
4. Support route and dns metrics.

This patch is against vpnc-scripts repository.
It is a resent as was not applied.

Alon Bar-Lev (4):
  allow overriding utilities and /var/run location
  delete tun address on disconnect
  always run the vpnc-script at exit
  support password program

 config.c        |  17 +++++-
 config.h        |   1 +
 tunip.c         |   2 +-
 tunip.h         |   1 +
 vpnc-disconnect |   3 +-
 vpnc-script     |  42 +++++++++++----
 vpnc.c          | 165 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 vpnc.h          |   2 +
 8 files changed, 215 insertions(+), 18 deletions(-)

&lt;/pre&gt;</description>
    <dc:creator>Alon Bar-Lev</dc:creator>
    <dc:date>2013-03-15T21:13:10</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3782">
    <title>[PATCH 1/4] allow overriding utilities and /varlocation</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3782</link>
    <description>&lt;pre&gt;This patch enables a wrapper to override the /sbin/ip and
/sbin/resolvconf utilities, and the /etc, /var locations.

The idea is to allow non-root execution of vpnc, as tun
can be used by unprivileged user.

A simple vpnc-script wrapper such as the following is doing
the work:
 ---
export HOOKS_DIR="/home/user/vpnc"
export VAR_RUN="/home/user/vpnc/run"
export IPROUTE="sudo /sbin/ip"
export RESOLVCONF="sudo /sbin/resolvconf"

exec /etc/vpnc/vpnc-script
 ---

Configuration:
 ---
Interface name vpn0
Local Port 0
Pidfile /home/user/vpnc/run/pid
Script /home/user/vpnc/vpnc-script
 ---

Signed-off-by: Alon Bar-Lev &amp;lt;alon.barlev-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt;
---
 vpnc-script | 23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)

diff --git a/vpnc-script b/vpnc-script
index 047e94a..07dd2b0 100755
--- a/vpnc-script
+++ b/vpnc-script
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -77,19 +77,20 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; PATH=/sbin:/usr/sbin:$PATH
 
 OS="`uname -s`"
 
-HOOKS_DIR=/etc/vpnc
-DEFAULT_ROUTE_FILE=/var/run/vpnc/defaultroute
-RESOLV_CONF_B&lt;/pre&gt;</description>
    <dc:creator>Alon Bar-Lev</dc:creator>
    <dc:date>2013-03-15T21:13:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3781">
    <title>[PATCH 3/5] always run the vpnc-script at exit</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3781</link>
    <description>&lt;pre&gt;This allows persisted tun device to be cleaned up for reuse.

This is the minimal change to reach the goal using atexit(),
not sure it is the best way.

Signed-off-by: Alon Bar-Lev &amp;lt;alon.barlev-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt;
---
 tunip.h     |  1 +
 vpnc-script |  5 +++++
 vpnc.c      | 28 +++++++++++++++++++++++++---
 3 files changed, 31 insertions(+), 3 deletions(-)

diff --git a/tunip.h b/tunip.h
index 216fdf0..eaeab5a 100644
--- a/tunip.h
+++ b/tunip.h
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -64,6 +64,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; struct sa_block {
 int tun_fd; /* fd to host via tun/tap */
 char tun_name[IFNAMSIZ];
 uint8_t tun_hwaddr[ETH_ALEN];
+int tun_configured;
 
 struct in_addr dst; /* ip of concentrator, must be set */
 struct in_addr src; /* local ip, from getsockname() */
diff --git a/vpnc-script b/vpnc-script
index 0b68623..eb9749d 100755
--- a/vpnc-script
+++ b/vpnc-script
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -738,7 +738,9 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; do_disconnect() {
 $IPROUTE -6 addr del $INTERNAL_IP6_NETMASK dev $TUNDEV
 fi
 fi
+}
 
+do_destroy() {
 destroy_tun_device
 }
 
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -767,6 +76&lt;/pre&gt;</description>
    <dc:creator>Alon Bar-Lev</dc:creator>
    <dc:date>2013-03-15T21:11:16</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3780">
    <title>[PATCH 4/5] support route metric</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3780</link>
    <description>&lt;pre&gt;This adds optional ROUTE_METRIC environment variable to vpnc-script to
allow set non default routes and dns metrics.

Signed-off-by: Alon Bar-Lev &amp;lt;alon.barlev-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt;
---
 vpnc-script | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vpnc-script b/vpnc-script
index eb9749d..9a98628 100755
--- a/vpnc-script
+++ b/vpnc-script
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -238,7 +238,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; if [ -n "$IPROUTE" ]; then
 NETWORK="$1"
 NETMASK="$2"
 NETMASKLEN="$3"
-$IPROUTE route replace "$NETWORK/$NETMASKLEN" dev "$TUNDEV"
+$IPROUTE route replace "$NETWORK/$NETMASKLEN" dev "$TUNDEV" ${ROUTE_METRIC:+metric ${ROUTE_METRIC}}
 $IPROUTE route flush cache
 }
 
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -553,7 +553,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; nameserver $i"
 NEW_RESOLVCONF="$NEW_RESOLVCONF
 domain $CISCO_DEF_DOMAIN"
 fi
-echo "$NEW_RESOLVCONF" | ${RESOLVCONF} -a $TUNDEV
+echo "$NEW_RESOLVCONF" | ${RESOLVCONF} ${ROUTE_METRIC:+-m ${ROUTE_METRIC}} -a $TUNDEV
 }
 
 restore_resolvconf_manager() {
&lt;/pre&gt;</description>
    <dc:creator>Alon Bar-Lev</dc:creator>
    <dc:date>2013-03-15T21:11:17</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.vpnc.devel/3779">
    <title>[PATCH 5/5] support password program</title>
    <link>http://permalink.gmane.org/gmane.network.vpnc.devel/3779</link>
    <description>&lt;pre&gt;Allows to integrate UI, similar to ssh-askpass, program prompt user
for password and echo result to stdout.

Settings:
 ---
Password Program /home/alonbl/vpnc/vpnc-getpass
Xauth interactive
 ---

vpn-getpass script for KDE:
 ---
prompt="$1"
exec kdialog --title "vpnc" --password "$prompt";
 ---

vpn-getpass script for KDE with SecurID:
 ---
prompt="$1"
pass="$(kdialog --title "vpnc" --password "$prompt")" || exit 1
otp="$(RSA_SecurID_getpasswd)" || exit 1
echo "${pass}${otp}"
exit 0
 ---

Signed-off-by: Alon Bar-Lev &amp;lt;alon.barlev-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt;
---
 config.c |  17 +++++++-
 config.h |   1 +
 tunip.c  |   2 +-
 vpnc.c   | 137 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 vpnc.h   |   2 +
 5 files changed, 155 insertions(+), 4 deletions(-)

diff --git a/config.c b/config.c
index 7080630..36227b7 100644
--- a/config.c
+++ b/config.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -469,6 +469,13 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static const struct config_names_s {
 "Target network in dotted decimal or CIDR notation\n",
 config_def_target_&lt;/pre&gt;</description>
    <dc:creator>Alon Bar-Lev</dc:creator>
    <dc:date>2013-03-15T21:11:18</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.network.vpnc.devel">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.network.vpnc.devel</link>
  </textinput>
</rdf:RDF>
