[Openswan Users] Subnets conmunication?
Peter McGill
petermcgill at goco.net
Wed Jun 6 12:47:18 EDT 2007
> -----Original Message-----
> Date: Wed, 6 Jun 2007 09:04:58 -0600
> From: "IT Dept." <it at technovation.com.sv>
> Subject: Re: [Openswan Users] Subnets conmunication?
> To: <users at openswan.org>
>
> Ok....here is my last conf
>
> conn sucursal_40
> authby=secret
> auto=add
> esp=3des-md5
> ikelifetime=3600s
> keylife=3600s
> left=208.70.149.161
> leftrsasigkey=(the Key)
> leftsubnet=192.168.0.0/16
> pfs=yes
> right=190.53.0.113
> rightsubnet=192.168.40.0/24
>
> conn sucursal_50
> authby=secret
> auto=add
> esp=3des-md5
> ikelifetime=3600s
> keylife=3600s
> left=208.70.149.161
> leftrsasigkey=(the Key)
> leftsubnet=192.168.0.0/16
> pfs=yes
> right=%any
> rightsubnet=192.168.50.0/24
>
> and this is the log
>
> Jun 6 09:59:29 vpn pluto[5269]: "sucursal_50"[1] 66.201.165.11 #1:
> responding to Main Mode from unknown peer 66.201.165.11
> Jun 6 09:59:29 vpn pluto[5269]: "sucursal_50"[1] 66.201.165.11 #1:
> transition from state STATE_MAIN_R0 to state STATE_MAIN_R1
> Jun 6 09:59:30 vpn pluto[5269]: "sucursal_50"[1] 66.201.165.11 #1:
> STATE_MAIN_R1: sent MR1, expecting MI2
> Jun 6 09:59:30 vpn pluto[5269]: "sucursal_50"[1] 66.201.165.11 #1:
> transition from state STATE_MAIN_R1 to state STATE_MAIN_R2
> Jun 6 09:59:30 vpn pluto[5269]: "sucursal_50"[1] 66.201.165.11 #1:
> STATE_MAIN_R2: sent MR2, expecting MI3
> Jun 6 09:59:30 vpn pluto[5269]: "sucursal_50"[1]
> 66.201.165.11 #1: Main
> mode peer ID is ID_IPV4_ADDR: '10.8.213.31'
> Jun 6 09:59:30 vpn pluto[5269]: "sucursal_50"[2]
> 66.201.165.11 #1: deleting
> connection "sucursal_50" instance with peer 66.201.165.11
> {isakmp=#0/ipsec=#0}
> Jun 6 09:59:30 vpn pluto[5269]: "sucursal_50"[2]
> 66.201.165.11 #1: I did
> not send a certificate because I do not have one.
> Jun 6 09:59:30 vpn pluto[5269]: "sucursal_50"[2] 66.201.165.11 #1:
> transition from state STATE_MAIN_R2 to state STATE_MAIN_R3
> Jun 6 09:59:30 vpn pluto[5269]: "sucursal_50"[2] 66.201.165.11 #1:
> STATE_MAIN_R3: sent MR3, ISAKMP SA established
> {auth=OAKLEY_PRESHARED_KEY
> cipher=oakley_3des_cbc_192 prf=oakley_md5 group=modp1024}
> Jun 6 09:59:30 vpn pluto[5269]: "sucursal_50"[2] 66.201.165.11 #2:
> responding to Quick Mode {msgid:763f514c}
> Jun 6 09:59:30 vpn pluto[5269]: "sucursal_50"[2] 66.201.165.11 #2:
> transition from state STATE_QUICK_R0 to state STATE_QUICK_R1
> Jun 6 09:59:30 vpn pluto[5269]: "sucursal_50"[2] 66.201.165.11 #2:
> STATE_QUICK_R1: sent QR1, inbound IPsec SA installed, expecting QI2
> Jun 6 09:59:31 vpn pluto[5269]: "sucursal_50"[2] 66.201.165.11 #2:
> transition from state STATE_QUICK_R1 to state STATE_QUICK_R2
>
>
> Jun 6 09:59:31 vpn pluto[5269]: "sucursal_50"[2] 66.201.165.11 #2:
> STATE_QUICK_R2: IPsec SA established {ESP=>0x80f41efc <0x9623ac90
>
>
>
> xfrm=3DES_0-HMAC_MD5 NATD=none DPD=none}
> Jun 6 09:59:37 vpn pluto[5269]: "sucursal_40" #3: responding
> to Main Mode
> Jun 6 09:59:37 vpn pluto[5269]: "sucursal_40" #3: transition
> from state
> STATE_MAIN_R0 to state STATE_MAIN_R1
> Jun 6 09:59:37 vpn pluto[5269]: "sucursal_40" #3:
> STATE_MAIN_R1: sent MR1,
> expecting MI2
> Jun 6 09:59:38 vpn pluto[5269]: "sucursal_40" #3: transition
> from state
> STATE_MAIN_R1 to state STATE_MAIN_R2
> Jun 6 09:59:38 vpn pluto[5269]: "sucursal_40" #3:
> STATE_MAIN_R2: sent MR2,
> expecting MI3
> Jun 6 09:59:40 vpn pluto[5269]: "sucursal_40" #3: Main mode
> peer ID is
> ID_IPV4_ADDR: '190.53.0.113'
> Jun 6 09:59:40 vpn pluto[5269]: "sucursal_40" #3: I did not send a
> certificate because I do not have one.
> Jun 6 09:59:40 vpn pluto[5269]: "sucursal_40" #3: transition
> from state
> STATE_MAIN_R2 to state STATE_MAIN_R3
> Jun 6 09:59:40 vpn pluto[5269]: "sucursal_40" #3:
> STATE_MAIN_R3: sent MR3,
> ISAKMP SA established {auth=OAKLEY_PRESHARED_KEY
> cipher=oakley_3des_cbc_192
> prf=oakley_md5 group=modp1024}
> Jun 6 09:59:41 vpn pluto[5269]: "sucursal_40" #4: responding
> to Quick Mode
> {msgid:720c424e}
> Jun 6 09:59:41 vpn pluto[5269]: "sucursal_40" #4: transition
> from state
> STATE_QUICK_R0 to state STATE_QUICK_R1
> Jun 6 09:59:41 vpn pluto[5269]: "sucursal_40" #4:
> STATE_QUICK_R1: sent QR1,
> inbound IPsec SA installed, expecting QI2
> Jun 6 09:59:43 vpn pluto[5269]: "sucursal_40" #4: transition
> from state
> STATE_QUICK_R1 to state STATE_QUICK_R2
>
>
> Jun 6 09:59:43 vpn pluto[5269]: "sucursal_40" #4:
> STATE_QUICK_R2: IPsec SA
> established {ESP=>0xdf2786d4 <0x4c0b74b3 xfrm=3DES_0-HMAC_MD5
> NATD=none
> DPD=none}
>
> But I cant ping between subnets.....
Alright your connections are working, they are connected.
See both IPSec SA established in logs.
If you still can't ping between the two that probably means
That your firewall rules are droping the packets.
You may need to add a rule to your firewall like this.
iptables -t filter -A FORWARD -s 192.168.0.0/16 -d 192.168.0.0/16 -j ACCEPT
Peter
More information about the Users
mailing list