[Openswan Users] LAN to LAN IPsec setup
Ali Jawad
alijawad1 at gmail.com
Sun Feb 19 14:30:13 EST 2012
Hi
I am trying to setup a LAN 2 LAN IPSec VPN connection to a 3rd party
service provider, they did request the following settings :
2. VPN Requirements
2.1 Minimum Protocol Requirements
2.1.1 IKE Phase 1 Properties
o Encryption Algorithm AES-256
o Data Integrity SHA-1
o Use Per-shared Key (the same key should be used for both productions and
DR configurations)
o Aggressive mode disabled
o Support Key exchanges per subnet
o Diffie Helmen Group 2
o IKE SA Life time 1440 minutes (86400 seconds)
Other VPN settings are possible but not recommended.
2.1.2 IKE Phase 2 Properties
o IPSEC protocol ESP
o Encryption Algorithm AES-256
o Data Integrity SHA-1
o Perfect forwarding security (PFS) disabled.
o IPSEC SA Life time (3600 seconds)
I did add the shared key to ipsec.secrets and I did setup the following
connection in ipsec.conf
conn NZTA-CAS-ORS type=tunnel left=My.Server.IP.Addr leftsubnet=
0.0.0.0/0.0.0.0 leftid=@GroupVPN leftxauthclient=yes right=x.x.0.29
rightsubnet=x.x.x.64/255.255.255.192 rightxauthserver=yes rightid=@NZTA
keyingtries=0 pfs=no aggrmode=no keyexchange=ike auto=add auth=esp
esp=3DES-SHA1 ike=3DES-SHA1 authby=secret
TCPDUMP just shows :
19:27:41.059776 IP fasttaxrefund.co.nz.isakmp > NZTA.isakmp: isakmp: phase
1 I ident
ipsec auto --status shows
root at smartrefunds:~# ipsec auto --status
000 using kernel interface: netkey
000 interface lo/lo ::1
000 interface lo/lo 127.0.0.1
000 interface lo/lo 127.0.0.1
000 interface eth0/eth0 my.ip
000 interface eth0/eth0 my.ip
000 %myid = (none)
000 debug
raw+crypt+parsing+emitting+control+lifecycle+klips+dns+oppo+controlmore+pfkey+nattraversal+x509+dpd+oppoinfo
000
000 virtual_private (%priv):
000 - allowed 2 subnets: 10.0.0.0/8, 192.168.0.0/16
000 - disallowed 2 subnets: 192.168.180.0/24, 10.8.0.0/16
000
000 algorithm ESP encrypt: id=2, name=ESP_DES, ivlen=8, keysizemin=64,
keysizemax=64
000 algorithm ESP encrypt: id=3, name=ESP_3DES, ivlen=8, keysizemin=192,
keysizemax=192
000 algorithm ESP encrypt: id=6, name=ESP_CAST, ivlen=8, keysizemin=40,
keysizemax=128
000 algorithm ESP encrypt: id=7, name=ESP_BLOWFISH, ivlen=8, keysizemin=40,
keysizemax=448
000 algorithm ESP encrypt: id=11, name=ESP_NULL, ivlen=0, keysizemin=0,
keysizemax=0
000 algorithm ESP encrypt: id=12, name=ESP_AES, ivlen=8, keysizemin=128,
keysizemax=256
000 algorithm ESP encrypt: id=14, name=ESP_AES_CCM_A, ivlen=8,
keysizemin=128, keysizemax=256
000 algorithm ESP encrypt: id=15, name=ESP_AES_CCM_B, ivlen=8,
keysizemin=128, keysizemax=256
000 algorithm ESP encrypt: id=16, name=ESP_AES_CCM_C, ivlen=8,
keysizemin=128, keysizemax=256
000 algorithm ESP encrypt: id=18, name=ESP_AES_GCM_A, ivlen=8,
keysizemin=128, keysizemax=256
000 algorithm ESP encrypt: id=19, name=ESP_AES_GCM_B, ivlen=8,
keysizemin=128, keysizemax=256
000 algorithm ESP encrypt: id=20, name=ESP_AES_GCM_C, ivlen=8,
keysizemin=128, keysizemax=256
000 algorithm ESP encrypt: id=22, name=ESP_CAMELLIA, ivlen=8,
keysizemin=128, keysizemax=256
000 algorithm ESP encrypt: id=252, name=ESP_SERPENT, ivlen=8,
keysizemin=128, keysizemax=256
000 algorithm ESP encrypt: id=253, name=ESP_TWOFISH, ivlen=8,
keysizemin=128, keysizemax=256
000 algorithm ESP auth attr: id=1, name=AUTH_ALGORITHM_HMAC_MD5,
keysizemin=128, keysizemax=128
000 algorithm ESP auth attr: id=2, name=AUTH_ALGORITHM_HMAC_SHA1,
keysizemin=160, keysizemax=160
000 algorithm ESP auth attr: id=5, name=AUTH_ALGORITHM_HMAC_SHA2_256,
keysizemin=256, keysizemax=256
000 algorithm ESP auth attr: id=9, name=AUTH_ALGORITHM_AES_CBC,
keysizemin=128, keysizemax=128
000 algorithm ESP auth attr: id=251, name=(null), keysizemin=0, keysizemax=0
000
000 algorithm IKE encrypt: id=0, name=(null), blocksize=16, keydeflen=131
000 algorithm IKE encrypt: id=3, name=OAKLEY_BLOWFISH_CBC, blocksize=8,
keydeflen=128
000 algorithm IKE encrypt: id=5, name=OAKLEY_3DES_CBC, blocksize=8,
keydeflen=192
000 algorithm IKE encrypt: id=7, name=OAKLEY_AES_CBC, blocksize=16,
keydeflen=128
000 algorithm IKE encrypt: id=65004, name=OAKLEY_SERPENT_CBC, blocksize=16,
keydeflen=128
000 algorithm IKE encrypt: id=65005, name=OAKLEY_TWOFISH_CBC, blocksize=16,
keydeflen=128
000 algorithm IKE encrypt: id=65289, name=OAKLEY_TWOFISH_CBC_SSH,
blocksize=16, keydeflen=128
000 algorithm IKE hash: id=1, name=OAKLEY_MD5, hashsize=16
000 algorithm IKE hash: id=2, name=OAKLEY_SHA1, hashsize=20
000 algorithm IKE hash: id=4, name=OAKLEY_SHA2_256, hashsize=32
000 algorithm IKE hash: id=6, name=OAKLEY_SHA2_512, hashsize=64
000 algorithm IKE dh group: id=2, name=OAKLEY_GROUP_MODP1024, bits=1024
000 algorithm IKE dh group: id=5, name=OAKLEY_GROUP_MODP1536, bits=1536
000 algorithm IKE dh group: id=14, name=OAKLEY_GROUP_MODP2048, bits=2048
000 algorithm IKE dh group: id=15, name=OAKLEY_GROUP_MODP3072, bits=3072
000 algorithm IKE dh group: id=16, name=OAKLEY_GROUP_MODP4096, bits=4096
000 algorithm IKE dh group: id=17, name=OAKLEY_GROUP_MODP6144, bits=6144
000 algorithm IKE dh group: id=18, name=OAKLEY_GROUP_MODP8192, bits=8192
000
000 stats db_ops: {curr_cnt, total_cnt, maxsz} :context={0,1,64}
trans={0,1,1800} attrs={0,1,1200}
000
000 "NZTA-CAS-ORS":
0.0.0.0/0===my.ip<my.ip>[@GroupVPN,+XC+S=C]...remote.ip<remote.ip>[@NZTA,+XS+S=C]===x.x.x.64/26;
unrouted; eroute owner: #0
000 "NZTA-CAS-ORS": myip=unset; hisip=unset;
000 "NZTA-CAS-ORS": ike_life: 3600s; ipsec_life: 28800s; rekey_margin:
540s; rekey_fuzz: 100%; keyingtries: 0
000 "NZTA-CAS-ORS": policy: PSK+ENCRYPT+TUNNEL+UP+IKEv2ALLOW+lKOD+rKOD;
prio: 0,26; interface: eth0;
000 "NZTA-CAS-ORS": dpd: action:clear; delay:0; timeout:0;
000 "NZTA-CAS-ORS": newest ISAKMP SA: #0; newest IPsec SA: #0;
000 "NZTA-CAS-ORS": IKE algorithms wanted:
3DES_CBC(5)_000-SHA1(2)_000-MODP1536(5),
3DES_CBC(5)_000-SHA1(2)_000-MODP1024(2); flags=-strict
000 "NZTA-CAS-ORS": IKE algorithms found:
3DES_CBC(5)_192-SHA1(2)_160-MODP1536(5),
3DES_CBC(5)_192-SHA1(2)_160-MODP1024(2)
000 "NZTA-CAS-ORS": ESP algorithms wanted: 3DES(3)_000-SHA1(2)_000;
flags=-strict
000 "NZTA-CAS-ORS": ESP algorithms loaded: 3DES(3)_192-SHA1(2)_160
000
000 #1: "NZTA-CAS-ORS":500 STATE_MAIN_I1 (sent MI1, expecting MR1);
EVENT_RETRANSMIT in 6s; nodpd; idle; import:admin initiate
000 #1: pending Phase 2 for "NZTA-CAS-ORS" replacing #0
000
Please advice.
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openswan.org/pipermail/users/attachments/20120219/0b0b6c2e/attachment.html>
More information about the Users
mailing list