Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please read these 2 configurations,thanks

Status
Not open for further replies.

Oh

IS-IT--Management
Jun 24, 2002
92
0
0
JP
Hi
I have 2 pix515e and PIX-1 at cenrtral offie, PIX-2 at branch. The PIX-2 configured as can access internet.It already works. Then I try make a tunnel between them.But I can not ping from 10.10.10.2 at one side reach 172.28.16.2 at other side. use the command "sh ipsec sa",one is
#pkts encaps: 0, #pkts encrypt: 0, #pkts digest 0
#pkts decaps: 3, #pkts decrypt: 3, #pkts verify 3
other side is
#pkts encaps: 3, #pkts encrypt: 3, #pkts digest 3
#pkts decaps: 0, #pkts decrypt: 0, #pkts verify 0
Please let me know if anyone has any ideas? Thanks!!


10.10.10.2--10.10.10.1--61.22.xx.xx--internet--
---211.43.xx.xx--172.28.16.1--172.28.16.2

PIX-1:

Building configuration...
: Saved
:
PIX Version 6.2(1)
nameif ethernet0 outside security0
nameif ethernet1 inside security100
nameif ethernet2 intf2 security10
nameif ethernet3 intf3 security15
enable password xxxxxxxxxxxxxx encrypted
passwd xxxxxxxxxxxxxx encrypted
hostname XXXXXXXXXX
domain-name xxxxxxxx
fixup protocol ftp 21
fixup protocol http 80
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol ils 389
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol sip 5060
fixup protocol skinny 2000
names
access-list 110 permit ip 172.28.16.0 255.255.255.0 10.10.10.0 255.255.255.0
access-list 100 permit ip 172.28.16.0 255.255.255.0 10.10.10.0 255.255.255.0
pager lines 24
interface ethernet0 auto
interface ethernet1 auto
interface ethernet2 auto
mtu outside 1500
mtu inside 1500
mtu intf2 1500
ip address outside 211.43.xx.xx 255.255.255.0
ip address inside 172.28.16.1 255.255.255.0
ip address intf2 127.0.10.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
ip local pool ippool 10.0.2.1-10.0.2.7
no failover
failover timeout 0:00:00
pdm history enable
arp timeout 14400
nat (inside) 0 access-list 100
conduit permit icmp any any
route outside 0.0.0.0 0.0.0.0 211.43.xx.xx 1 (router IP)
route inside 172.17.0.0 255.255.0.0 172.28.16.254 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h323 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server RADIUS protocol radius
aaa-server LOCAL protocol local
aaa-server micro-auth protocol radius
aaa-server micro-auth (inside) host 172.28.16.9 cisco123 timeout 10
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
sysopt connection permit-ipsec
no sysopt route dnat
crypto ipsec transform-set myset esp-3des esp-md5-hmac
crypto map newmap 20 ipsec-isakmp
crypto map newmap 20 match address 110
crypto map newmap 20 set peer 61.22.xx.xx
crypto map newmap 20 set transform-set myset
crypto map newmap interface outside
isakmp enable outside
isakmp key ******** address 61.22.xx.xx netmask 255.255.255.255 no-xauth no-config-mode
isakmp identity address
isakmp policy 10 authentication pre-share
isakmp policy 10 encryption 3des
isakmp policy 10 hash md5
isakmp policy 10 group 2
isakmp policy 10 lifetime 1000
telnet 172.28.16.0 255.255.255.0 inside
telnet timeout 30
ssh timeout 5
terminal width 80
Cryptochecksum:1f43941d804a333018c0073888aad64f
: end
[OK]


PIX-2:
Building configuration...
: Saved
:
PIX Version 6.2(1)
nameif ethernet0 outside security0
nameif ethernet1 inside security100
nameif ethernet2 intf2 security10
enable password xxxxxxxxxxxx encrypted
passwd xxxxxxxxxx encrypted
hostname xxxxxxxxxx
domain-name xxxxxxxx
fixup protocol ftp 21
fixup protocol http 80
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol ils 389
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol sip 5060
fixup protocol skinny 2000
names
name 10.10.10.2 InternetPC
access-list 110 permit ip 10.10.10.0 255.255.255.0 172.28.16.0 255.255.255.0
access-list 100 permit ip 10.10.10.0 255.255.255.0 172.28.16.0 255.255.255.0
pager lines 24
interface ethernet0 auto
interface ethernet1 auto
interface ethernet2 auto shutdown
mtu outside 1500
mtu inside 1500
mtu intf2 1500
ip address outside pppoe setroute
ip address inside 10.10.10.1 255.255.255.0
ip address intf2 127.0.0.1 255.255.255.255
ip audit info action alarm
ip audit attack action alarm
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list 100
nat (inside) 1 InternetPC 255.255.255.255 0 0
conduit permit icmp any any
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h323 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server RADIUS protocol radius
aaa-server LOCAL protocol local
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
sysopt connection permit-ipsec
no sysopt route dnat
crypto ipsec transform-set myset esp-3des esp-md5-hmac
crypto map newmap 10 ipsec-isakmp
crypto map newmap 10 match address 110
crypto map newmap 10 set peer 211.43.xx.xx
crypto map newmap 10 set transform-set myset
crypto map newmap interface outside
isakmp enable outside
isakmp key ******** address 211.43.xx.xx netmask 255.255.255.255 no-xauth no-config-mode
isakmp identity address
isakmp policy 10 authentication pre-share
isakmp policy 10 encryption 3des
isakmp policy 10 hash md5
isakmp policy 10 group 2
isakmp policy 10 lifetime 86400
telnet timeout 5
ssh timeout 5
vpdn group SSS request dialout pppoe
vpdn group SSS localname xxxxxxxxxxxxxxxxxx
vpdn group SSS ppp authentication pap
vpdn username xxxxxxxxxxxxxxxx password *********
dhcpd address 10.10.10.3-10.10.10.20 inside
dhcpd dns 172.28.16.5 172.28.16.12
dhcpd wins 172.28.16.9
dhcpd lease 36000
dhcpd ping_timeout 750
dhcpd domain DDDDD
dhcpd auto_config outside
dhcpd enable inside
terminal width 80
Cryptochecksum:e1af16ec09e929f784838b818922c2f1
: end
[OK]

 
Hello,

After reviewing the 2 configs the problem seems to be in the fact that PIX-2 is receiving its outside ip dynamicly from the isp. When this happens PIX-1 will not have the correct ip address in the following line Crypto map newmap 20 set peer 61.22.xx.xx. I would enable debug logging on pix-1 and try the VPN tunnel connection and see if the VPN tunnel is being constructed at all.

you can use these following commands to watch the ipsec and isakmp.

>On the PIX (with the logging monitor debugging or logging >console debugging commands running):

>debug crypto ipsec - Debugs IPSec processing.

>debug crypto isakmp - Debugs ISAKMP processing.

>debug crypto engine - Displays debug messages about crypto >engines, which perform encryption and decryption
(quoted from cisco doc: Configuring PIX-to-PIX-to-PIX IPSec (Hub and Spoke))
 
HI.

Can each pix ping the other?

Is there another NAT device in the path, like a DSL router at the pix-2 side?
Or is there a filtering device not allowing all IP protocols?

The "isakmp policy 10 lifetime ..." does not match at both sides.

Since you're using pix ver 6.21, you can try the new feature called "Easy VPN".
With this option, you configure PIX-1 as a "VPN server" (same or similar configuration as for accepting VPN software client 3.x) and PIX-2 will act as a "VPN client".

Use PDM to generate the initial config and for help about Easy VPN.
This can be useful if PIX-2 ip address is not fixed.

Bye
Yizhar Hurwitz
 
Hi yizhar
I connected the PIX-2 derictly to a ADSL modem and use PPPoE to get the global IP from IPS. But before the PIX-1 we have a ADSL router.And I changed the isakmp policy lifetime.
The internetPC IP is 10.10.10.2, which not in hdcp ip pool,and i set the defalut gateway at the pc is 10.10.10.1, DNS is point to ISP's DNS, not our domain DNS server.
I will try the easy VPN but I do these config base on cisco doc <<Configuring PIX-to-PIX-to-PIX IPSec (Hub and Spoke)>>, I think it should be work for me.
Why.......:(

oh
 
Hi oh,

I believe the reason it is not working is that the <<Configuring PIX-to-PIX-to-PIX IPSec (Hub and Spoke)>> configuration is based off of using static ips on both Firewalls for their outside interfaces. But your pix-2 outside is not static, it is dynamic. Because of this, pix-1 is looking for a certain ip in the line crypto map newmap 20 set peer 61.22.xx.xx and it can not find that peer. Is this correct yizhar?

After reading through the easy vpn setup it seems to be the solution for your sites. By setting up a vpngroup on pix-1 and a vpnclient on pix-2 you should be able to connect the sites together.

Sean
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top