[Openswan Users] ping packets are not encapsulated with ESP

Jayasri Sangu JayasriS at aaesys.com
Mon Apr 25 18:11:38 EDT 2011


Hi All,

   I am using  openswan-2.6.33 on embedded linux with powerpc processor.

My network is setup as follows

                                                eth0                       sat0                                                                                        sat0              eth0
    10.174.101.172/24 ----- 10.174.101.171/24    -   10.0.1.171   --------  sat connection  ---  10.0.1.181  - 10.174.102.181/214 -------- 10.174.102.182/24
   (lan)                    (  gateway A running opensan)                                                                                  (  gateway B running opensan)                  (lan)


I was able to establish the tunnel between the gateway A nd gateway B.  But the packets are not encapsulated for both host-to-host and net-to-net.
Did I misss anything in my ipsec.conf file?

my ipsec.conf file

conn host-to-host
    left=10.0.1.171                 # Local vitals
    leftid=@xy.example.com
    leftrsasigkey=0sAQN79stfB6ykPuvtZOxdx76iAshuW14FzlG6J1iRwiXZ6xQyyVNTR8IvyU/4GYPErM7x9zdHw4Xq9vqiR8Tn8IaWV3RGlD5UKKlc+e2HE
    leftnexthop=10.0.1.181      # correct in many situations
    right=10.0.1.181                # Remote vitals
    rightid=@ab.example.com
    rightrsasigkey=0sAQOn3S8kH0JwpxmJzo5gybC7nG04uhhFV7vZCQjaZF/BsHfLYRBK2iA+zRhKrPcfSGJyzDzNArxx3ZK422xRdT/ujcORL80WXR/Ctc6Y
    rightnexthop=10.0.1.171     # correct in many situations
    auto=add                      # authorizes but doesn't start this  connection at startup


conn net-to-net
        left=10.0.1.171
        leftsourceip=10.174.101.171
        leftsubnet=10.174.101.0/24
        leftid=@xy.example.com
        leftrsasigkey=0sAQN79stfB6ykPuvtZOxdx76iAshuW14FzlG6J1iRwiXZ6xQyyVNTR8IvyU/4GYPErM7x9zdHw4Xq9vqiR8Tn8IaWV3RGlD5UKKlc+
        leftnexthop=10.0.1.181
        right=10.0.1.181
        #rightsourceip=10.174.101.181
        rightid=@ab.example.com
         rightrsasigkey=0sAQOn3S8kH0JwpxmJzo5gybC7nG04uhhFV7vZCQjaZF/BsHfLYRBK2iA+zRhKrPcfSGJyzDzNArxx3ZK422xRdT/ujcORL80WXR/
         rightnexthop=10.0.1.181
        auto=add


net-to-net connection status

000 using kernel interface: mast
000 interface mast0/sat0 fec0::2:0:0:0:5
000 interface mast0/eth0 fec0::3:230:d4ff:fe80:a6
000 interface mast0/eth0 10.174.101.171
000 interface mast0/sat0 10.0.1.171
000 %myid = (none)
000 debug none
000
000 virtual_private (%priv):
000 - allowed 0 subnets:
000 - disallowed 0 subnets:
000 WARNING: Either virtual_private= is not specified, or there is a syntax
000          error in that line. 'left/rightsubnet=vhost:%priv' will not work!
000 WARNING: Disallowed subnets in virtual_private= is empty. If you have
000          private address space in internal use, it should be excluded!
000
000 algorithm ESP encrypt: id=3, name=ESP_3DES, ivlen=64, keysizemin=192, keysizemax=192
000 algorithm ESP encrypt: id=12, name=ESP_AES, ivlen=128, 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
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 algorithm IKE dh group: id=22, name=OAKLEY_GROUP_DH22, bits=1024
000 algorithm IKE dh group: id=23, name=OAKLEY_GROUP_DH23, bits=2048
000 algorithm IKE dh group: id=24, name=OAKLEY_GROUP_DH24, bits=2048
000
000 stats db_ops: {curr_cnt, total_cnt, maxsz} :context={0,0,0} trans={0,0,0} attrs={0,0,0}
000
000 "mod-to-rem": 10.0.1.171<10.0.1.171>[@xy.example.com,+S=C]...10.0.1.181<10.0.1.181>[@ab.example.com,+S=C]; unrouted; erou
000 "mod-to-rem":     myip=unset; hisip=unset;
000 "mod-to-rem":   ike_life: 3600s; ipsec_life: 28800s; rekey_margin: 540s; rekey_fuzz: 100%; keyingtries: 0
000 "mod-to-rem":   policy: RSASIG+ENCRYPT+TUNNEL+PFS+IKEv2ALLOW+SAREFTRACK; prio: 32,32; interface: sat0;
000 "mod-to-rem":   newest ISAKMP SA: #0; newest IPsec SA: #0;
000 "net-to-net": 10.174.101.0/24===10.0.1.171<10.0.1.171>[@xy.example.com,+S=C]...10.0.1.181---10.0.1.181<10.0.1.181>[@ab.ex
000 "net-to-net":     myip=10.174.101.171; hisip=unset;
000 "net-to-net":   ike_life: 3600s; ipsec_life: 28800s; rekey_margin: 540s; rekey_fuzz: 100%; keyingtries: 0
000 "net-to-net":   policy: RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKEv2ALLOW+SAREFTRACK; prio: 24,32; interface: sat0;
000 "net-to-net":   newest ISAKMP SA: #1; newest IPsec SA: #2;
000 "net-to-net":   IKE algorithm newest: AES_CBC_128-SHA1-MODP2048
000
000 #2: "net-to-net":500 STATE_QUICK_I2 (sent QI2, IPsec SA established); EVENT_SA_REPLACE in 26811s; newest IPSEC; eroute ow
000 #2: "net-to-net" esp.dd4d92c8 at 10.0.1.181 esp.d7ff7f2 at 10.0.1.171 tun.1001 at 10.0.1.181 tun.1002 at 10.0.1.171 ref=3 refhim=1
000 #1: "net-to-net":500 STATE_MAIN_I4 (ISAKMP SA established); EVENT_SA_REPLACE in 2130s; newest ISAKMP; lastdpd=-1s(seq in:
000


Thanks
Jayasri


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20110425/77751db9/attachment.html 


More information about the Users mailing list