Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: vpnc: devel

vpnc-nortel for MAC OS (almost!)

 

 

vpnc devel RSS feed   Index | Next | Previous | View Threaded


swapnilpp at yahoo

Oct 14, 2009, 4:42 PM

Post #1 of 2 (198 views)
Permalink
vpnc-nortel for MAC OS (almost!)

Hi AntonioI applied your patch over the -r414 and got a successful build. Initially I was getting "error writing PF_KEY socket: Invalid argument" and then I realized thathttp://www.ietf.org/rfc/rfc2367.txt mandates setting of sa_len parameter in sockaddr.
Made a small changed in kernel_ipsec.c samb_append_address and added the following before memcpy.  "addr->sa_len = sizeof (struct sockaddr);"
The problem went away and I can report a successful connection. My configuration: Intel Snow Leopard 10.6.
Now the problem part: In your initial port you suggested following vpnc-script changes.
#> ifconfig eth0:1 ${INTERNAL_IP4_ADDRESS} netmask {INTERNAL_IP4_NETMASK} #> ip route replace default via ${DEFAULTGW} dev eth0:1 src ${INTERNAL_IP4_ADDRESS} 
In OSX I am unable to create a route with source address IP selection. Without that I can't transfer data. I hope you can give me some pointers.
Thanks Swapnil


borneo.antonio at gmail

Oct 16, 2009, 9:30 AM

Post #2 of 2 (185 views)
Permalink
Re: vpnc-nortel for MAC OS (almost!) [In reply to]

Ciao Swapnil,

well spotted! I do not have access to a Mac systems, so you finding is
really helpful.
The parameter sa_len is used in BSD-like systems, and seems Mac is one of them.
But, this parameter does not exist in Linux.
To support multiple platforms, code needs something more.

The file sysdep.h already defines a macro HAVE_SA_LEN, that can be
used for this purpose.
#ifdef HAVE_SA_LEN
addr->sa_len = sizeof (struct sockaddr);
#endif

For what concerns routing configuration, I suggest you to check
differences inside the package "ipsec-tools" (a.k.a. "racoon"), in the
file ./src/racoon/samples/roadwarrior/client/phase1-up.sh
This script setup the routing, and uses different command for Linux and NetBSD.
I expect command for NetBSD could be used on Mac too.

Let me know!

Best Regards,
Antonio Borneo


On Thu, Oct 15, 2009 at 7:42 AM, swapnil pandit <swapnilpp[at]yahoo.com> wrote:
>
> Hi Antonio
> I applied your patch over the -r414 and got a successful build. Initially I was getting "error writing PF_KEY socket: Invalid argument" and then I realized thathttp://www.ietf.org/rfc/rfc2367.txt mandates setting of sa_len parameter in sockaddr.
> Made a small changed in kernel_ipsec.c samb_append_address and added the following before memcpy.
> "addr->sa_len = sizeof (struct sockaddr);"
> The problem went away and I can report a successful connection.
>
> My configuration: Intel Snow Leopard 10.6.
> Now the problem part: In your initial port you suggested following vpnc-script changes.
> #> ifconfig eth0:1 ${INTERNAL_IP4_ADDRESS} netmask {INTERNAL_IP4_NETMASK}
> #> ip route replace default via ${DEFAULTGW} dev eth0:1 src ${INTERNAL_IP4_ADDRESS}
> In OSX I am unable to create a route with source address IP selection. Without that I can't transfer data. I hope you can give me some pointers.
> Thanks
> Swapnil
_______________________________________________
vpnc-devel mailing list
vpnc-devel[at]unix-ag.uni-kl.de
https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel
http://www.unix-ag.uni-kl.de/~massar/vpnc/

vpnc devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.