[Openswan Users] Coping with a SonicWall policy file

Tremal Naik tremalnaik at gmail.com
Sat Oct 13 21:52:32 EDT 2007

Hello to this ML users, this is the first time I'm writing.
I'm installing Open Swan on Linux Debian since I have to connect to my
office VPN.
The only information they gave me is in the form of a SPD file. It
looks like a Windows registry configuration file.

I'd like to map this file into ipsec.conf in order to be able to
connect to the remote SW gateway. Do you know if there is a
resource/document that explain how to do this?

Another source of information is a screenshot of my settings, sent to
me as an image. From that I can see the following infos:

Incoming SPI: Hex num
Outgoing SPI: Hex num
Encryption method: ESP DES HMAC MD5
Encryption key: Hex num
Authentication key: Hex num

With reference to the wiki page found at


I'd like to know how to extract the information needed from the above
policy file.

The info to include in the ipsec.secrets as well, are somewhat
confusing to me, since it looks that SW configuration requires more
than one key, an Encryption and an Authentication one. I report here
below some of the settings in the policy file hoping someone can find
a relation to the OpenSwan settings.



"PRESHR"=sequance of hex strings
"IKESADUR_SEC"=hex string

"INMANSPI"=hex string
"OUTMANSPI"=hex string

"ADDR1"=hex string
"IPADDR"=same as ADDR1

"ADDR1"=hex string
"ADDR2"=hex string
"IPADDR"=hex string


Thanks a lot,


More information about the Users mailing list