tomclegg.net |
Racoon and SonicWall Posted May 27, 2005 It is possible to establish an IPsec VPN tunnel between SonicWall and racoon (FreeBSD, Monowall, etc). SonicWall test unit: Model: SonicWall TZ170 Enhanced Firmware version: SonicOS Enhanced 2.5.0.6-49e ROM version: SonicROM 2.0.0.2 Racoon test unit: Hardware: Soekris net4801 Operating system: Monowall 1.11 Racoon package version freebsd-20040617a Racoon internal version 20001216 sakane@kame.net NotesOn the SonicWall, you can use 0.0.0.0 as the remote IP address for the tunnel. The racoon end doesn't need a static IP address. Phase 1Racoon's local identifier should be the same type and value as the remote identifier specified in the SonicWall configuration. If racoon's local identifier does not match the remote identifier specified in the SonicWall configuration, SonicWall will say this:
Racoon will say this:
Phase 2Racoon's phase 2 proposal should specify the encryption and hash algorithms specified in the SonicWall configuration. If you specify 3DES for phase 2 on the Sonicwall and enable 3DES and Blowfish for phase 2 in racoon, the tunnel will come up. If you also enable CAST128 or Rijndael/AES for phase 2 in racoon, Sonicwall will say this:
Racoon will say this:
Monowall config.xml exerpt<tunnel> <interface>wan</interface> <local-subnet> <network>lan</network> </local-subnet> <remote-subnet>10.20.1.0/24</remote-subnet> <remote-gateway>24.67.192.3</remote-gateway> <p1> <mode>aggressive</mode> <myident> <fqdn>MONOWALL</fqdn> </myident> <encryption-algorithm>3des</encryption-algorithm> <hash-algorithm>sha1</hash-algorithm> <dhgroup>2</dhgroup> <lifetime>28800</lifetime> <pre-shared-key>xxxxx</pre-shared-key> </p1> <p2> <protocol>esp</protocol> <encryption-algorithm-option>3des</encryption-algorithm-option> <encryption-algorithm-option>blowfish</encryption-algorithm-option> <hash-algorithm-option>hmac_md5</hash-algorithm-option> <hash-algorithm-option>hmac_sha1</hash-algorithm-option> <pfsgroup>0</pfsgroup> <lifetime>28800</lifetime> </p2> <descr>Sonicwall test</descr> </tunnel> |