Re: [PATCH] Re: NM & NetScreen VPN



On Thu, 2008-01-31 at 00:47 +0100, Cyril Jaquier wrote:
> Hi all,
> 
> >> Yay!  vpnc now has options for the specific vendor you're trying to talk
> >> to.  That just makes me sad :(  No, NM vpnc plugin doesn't support that
> >> option yet...
> > 
> > The culprit is nm_vpnc_properties_validate() in nm-vpnc-service.c
> > 
> > Dan we should probably remove that check, since it prevents people from
> > adding custom options with gconf-editor. either that or update the list
> > of valid vpnc properties(valid_properties[] array) but that seems like a
> > higher-maintenance option...
> 
> I asked few weeks ago about "Vendor" support in the vpnc plugin in NM.
> So I finally implemented it this evening :) I attached the patch to this
> e-mail. I hope you will find it useful.
> 
> 1/ I patched the Debian source package (0.6.4svn2806-1) and not the
> latest Subversion version. I'm really sorry about this but it was a way
> easier for me. So my patch contains 02_add_disable_natt_and_1des.diff
> too. This patch is from the Debian package.
> 
> 2/ You will need to add { "Vendor", OPT_TYPE_ASCII } to allowed_opts[]
> in nm-vpnc-service.c. This is also from the Debian package.

Done

> 3/ The patch adds a new combobox in the "required" tab of the dialog.
> You can choose "Cisco" or "Netscreen". This will set the appropriate
> "Vendor" option. Mmmhh... I set the "Vendor" option to "cisco" if Cisco
> is selected. This should probaby default to no "Vendor" option for
> compatibility with old vpnc release.

I'm pretty sure vpnc ignores options it doesn't recognize so I think
this is fine.

> 4/ In order to connect to a Juniper firewall, I need to set the DFS to
> dh2. I set this property too if netscreen is selected. This is a dirty
> hack and this option should be configurable too.

I'd take a patch on the "Optional" tab for this :)

Applied, thanks.  svn r3305 on the stable branch.  If you've got time
and want to try porting the Vendor bits to trunk, that would be great
too.

Dan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]