[Openswan Users] L2TP-PSK to iPhone/OSX/Win7
paul at xelerance.com
Mon Sep 26 16:24:54 EDT 2011
On Mon, 26 Sep 2011, Pete Ashdown wrote:
> With some help from Paul, I was able to get OSX Lion to connect the following configuration. iPhone also works:
> version 2.0
> config setup
> conn L2TP-PSK
> left=(default router)
> My problem now is that Windows 7 refuses to cooperate. If I remove the necessary "forceencaps" for OSX Lion, it works just fine. I've tried making a separate connection
> like this:
> conn windows
> conn osx
> conn PSK
> But no matter what port OSX picks that isn't 1701, openswan always matches its connection to whatever comes first in the list.
> Any thoughts are appreciated.
Likely because forceencaps fakes the IKE layer into believing openswan is behind NAT, you need to hack
the Windows registry for that "IPsec server behind NAT is allowed" value.
Of course, what really needs to happen is OSX Lion needs to get fixed :(
A more elaborate workaround could be attempted by using the VendorID to detect OSX and only
forceencaps in that case.....
More information about the Users