Question

VPN Tunnels

Asked by: PC4N6

I have 3 sites that are connected by site to site vpn's using cisco appliances (asa or pix).  One of the sites has had an IP change from the ISP.  I need to ensure tunnels come back up.  Should I only have to change the peer address on the other two pix's?  Nothing else has changed other that the outside interface public IP.  Also, for my pcf's should I just be able to edit the current pcf ip address as the user group and password has not changed at the location either.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-10-15 at 05:05:37ID24814497
Topics

Virtual Private Networking (VPN)

,

Cisco PIX Firewall

Participating Experts
4
Points
500
Comments
35

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Trying to set VPN Tunnels...
    I am trying to setup a VPN Tunnel between a Cisco ASA Device and PIX. And it seems like the tunnel is up because when I look at the monitoring in ASDM for the ASA i see the Tunnel up but only receiving not Transmitting... I already have tunnels setup and both devices here is ...
  2. Permanent VPN tunnel on PIX / ASA.
    Hi I have several PIX and ASA firewalls that have IPSEC VPN tunnels between themselves, connecting internal networks. Is there a way to configure these tunnels so that they're always up and established even though no "interesting" traffic flows between them? Some ...
  3. VPN Tunnel ASA
    I have set up serveral VPN tunnels in the past but I can't seem to get this one working. It is between a ASA 5520 on my end and a ASA 5510 on the other end. Every thing looks right. I had the other engineer check some things on his end and they also seem right. The weird thin...
  4. Problems with VPN Tunnel
    We added a pix 501 for dynamic tunnels only. We have an ASA 5505 as the main firewall/router that has some static tunnels on it. The one customer so far I have tried setting up a tunnel from a pix 501 to a pix 501, it establishes the vpn tunnel, but the problem is, the pix ...
  5. Remote PIX vpn tunnels dropping, showing 127.0.0…
    Hi everyone- I'm configuring multiple sites on an ASA 5520 (8.0.3-k19) using EasyVPN with PIX501 (6.3.5) on the remote end. PIX firewalls are not staying connected, and one site is showing this (output of 'sh isakmp sa') Aug 22 2008 09:16:23: %ASA-5-713201: Group = shilohre...
  6. ASA 5510 to PIX 506 vpn tunnel not coming up
    I'm trying to bring up a VPN tunnel between an ASA 5510 running version 7.0.8 and Pix 506e running 6.3.3. Currently the Pix 506 has a tunnel to an ASA 5505. That tunnel is up and running. However, this new tunnel won't come up. I can ping the public IP from both sides. I...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: jodylemoinePosted on 2009-10-15 at 06:00:51ID: 25580023

You'll need to change the peer addresses.  Depending on whether you're using a global ISAKMP key or not, the ISAKMP keys' address will need to be changed too.  With the PCF, changing the IP will be sufficient.

 

by: MikeHolcombPosted on 2009-10-15 at 06:01:39ID: 25580026

Correct - if all that has changed is the WAN IP of one of the PIX/ASA's, you should only have to update the IP address where it might appear in your configurations.  Once updated, you should be able to clear the VPN sessions to have them re-established (if they do not do so automatically).

And yes, same with the PCF's for your remote clients as well.

Good luck!

Mike

 

by: PeteLongPosted on 2009-10-15 at 06:40:40ID: 25580376

Assuming that you are NATTING traffic then only the peer addresses will need to change.

 

by: PC4N6Posted on 2009-10-16 at 06:35:26ID: 25589343

Ok so I cleared the vpns using clear isakmp and clear ipsec sa commands.  Now I can't get to the pix at all remotely.  What happend?

 

by: PC4N6Posted on 2009-10-16 at 07:06:22ID: 25589676

I rebooted back to the old config and was able to gain access again.  I changed the peer ip address again, but doing:

sh crypto isakmp sa

I don't see the ip of the tunnel that was just changed.

 

by: Texas_BillyPosted on 2009-10-16 at 13:59:49ID: 25593293

You can't just change the "set peer" statement in the crypto map - you must also change the tunnel-group to match the new IP.  Use the "clear config tunnel-group ipaddress" command to get rid of the existing tunnel-group, then re-add with the new IP.

 

by: Texas_BillyPosted on 2009-10-16 at 14:00:16ID: 25593301

On the ASA I mean.

 

by: PC4N6Posted on 2009-10-16 at 16:05:15ID: 25593979

well i dont have access (to the ASA remotely) to change a tunnel group.  On the other two pix's I changed the the peer addresses.  What exactly needs to be done to the ASA that the IP changed on?  The only change was the outside int ipaddress..

 

by: jodylemoinePosted on 2009-10-16 at 23:18:54ID: 25594963

No change should need to be made on the ASA, unless I'm missing something in all of this.  You on the PIX units, you need to change the peer address and add new tunnel groups.  For example, let's say your PIX unit is communicating with a peer at 1.1.1.1.  You will have a configuration that looks like this:

crypto map outside_map 10 set peer 1.1.1.1
tunnel-group 1.1.1.1 type ipsec-l2l
tunnel-group 1.1.1.1 ipsec-attributes
 pre-shared-key *****

When you change the IP of the peer to 2.2.2.2, you have to create a matching tunnel group.  If you just change the peer, you'll get this:

crypto map outside_map 10 set peer 2.2.2.2
tunnel-group 1.1.1.1 type ipsec-l2l
tunnel-group 1.1.1.1 ipsec-attributes
 pre-shared-key *****

That doesn't match up and isn't going to function.  Add the following, making sure to match the ipsec-attributes associated with the old tunnel group.

tunnel-group 2.2.2.2 type ipsec-l2l
tunnel-group 2.2.2.2 ipsec-attributes
 pre-shared-key *****
no tunnel-group 1.1.1.1 ipsec-attributes
no tunnel-group 1.1.1.1 type ipsec-l2l

This needs to be done to assign the ISAKMP key for the tunnel as mentioned earlier.

 

by: PC4N6Posted on 2009-10-17 at 04:13:45ID: 25595621

I don't see anything where a tunnel-group was set.  Mine looks like this:

crypto map outside_map 10 ipsec-isakmp
crypto map outside_map 10 match address outside_cryptomap_10
crypto map outside_map 10 set peer x.x.x.x
crypto map outside_map 10 set tansform-set ESP-3DES-MD5

What should be done here?

 

by: PC4N6Posted on 2009-10-17 at 04:18:28ID: 25595624

There is a line with the old address that looks like this:

isakmp key ******* address x.x.x.x (old ip) netmask x.x.x.x no-xauth

Is this what I need to change?  If so does that key need to match something on the ASA?  I don't know what the key on the ASA is or the preshares.  The person who set this up is out with a medical emergency in the hospital.

 

by: jodylemoinePosted on 2009-10-17 at 08:36:39ID: 25596164

Ah...  that line is a giveaway.  You're running an older version of the PIX software, so the terminology is a bit different.  You can forget the tunnel groups I mentioned earlier as those only apply to the new versions of the PIX OS.  You're right on the money with needing add the ISAKMP key for the new peer address, so the change would look something like this:

isakmp key ******* address x.x.x.x (new ip) netmask x.x.x.x no-xauth
no isakmp key ******* address x.x.x.x (old ip) netmask x.x.x.x no-xauth

The challenge, of course, is to recover the key as the PIX isn't going to show them to you.  With the newer software, this is relatively simple.  With the old software, there's no internal mechanism to do so.  What you *can* do is write the configuration to a TFTP server, which will provide a copy of the configuration with plaintext keys.

If you haven't got a TFTP server set up, you can easily get one (assuming you're running Windows) at http://tftpd32.jounin.net/tftpd32_download.html.  Once you've got it running, execute the following on the PIX to copy the configuration to the TFTP server.

write net x.x.x.x:pix-config.txt (where x.x.x.x is the address of your TFTP server)

Once the transfer is complete, open the pix-config.txt file and look for the ISAKMP statement.  You should find the encryption key in plaintext.

 

by: PC4N6Posted on 2009-10-19 at 16:09:52ID: 25609755

OK I am almost there.  When I run the wr net I keep getting the error:

TFTP write '/Corporate/pix-config.txt' at COR-FS on interface 1
Access violation

Can you tell me how to resolve that?

 

by: jodylemoinePosted on 2009-10-19 at 18:57:13ID: 25610505

Are you including the /Corporate/ in the TFTP write command or is that somehow appearing on its own.  TFTP doesn't handle subdirectories, so you need to make sure that you're using something like this:

wr net x.x.x.x:pix-config.txt

...rather than this:

wr net x.x.x.x:/Corporate/pix-config.txt

 

by: PC4N6Posted on 2009-10-20 at 05:06:12ID: 25613143

It is appearing on its own.  I wrote the command as follows:

wr net x.x.x.x:pix-config.txt

not sure why it is doing that.  Have you got any ideas?

 

by: PC4N6Posted on 2009-10-20 at 07:21:31ID: 25614422

So I have the isakmp key ( I talked to the person who set it up and he gave me two options to try).  Is there a way to clear out everything on the tunnels so that I can see if it comes up?  If I change the isakmp key for the new ip address should that fix the problem and the tunnels just come up auto?

 

by: jodylemoinePosted on 2009-10-20 at 07:28:42ID: 25614511

Issue the following command at a privileged prompt and you're good to go:

clear crypto isakmp sa
clear crypto ipsec sa

This will clear all of the encryption maps, but they will re-establish quickly.

 

by: PC4N6Posted on 2009-10-21 at 12:00:32ID: 25627145

I still cant get tunnels to come up.  Is there something else that I need to do?

 

by: Texas_BillyPosted on 2009-10-21 at 12:11:20ID: 25627239

You've got too many hands in the cookie jar here, this thread gets more and more confusing as we go.  
From what I can tell:

(1) You have a hub-and-spoke l2l vpn set up with an ASA at the hub and PIX at the two spokes
(2) The WAN IP of the ASA (the hub) was changed, now you need the tunnels to come back up

Are these statements true?  If so, this is not hard at all, but we've got to be sure we're talking about the same thing, is all.  Verify for me if the ASA is indeed the hub and the spokes are PIX.  Also, what version of code is on the ASA, and what version is on PIX?  Is this true hub-and-spoke, or are the VPNs meshed?  If it's true hub-and-spoke, are you hairpinning on your ASA (i.e., spoke A can get to spoke B through the ASA WAN interface).  

 

by: Texas_BillyPosted on 2009-10-21 at 12:20:16ID: 25627319

Also, are you using certs for the l2l phase 1 auth, or pre-shared-key?

 

by: jodylemoinePosted on 2009-10-21 at 12:47:32ID: 25627575

Also, what is the output from a "show crypto isakmp sa" command?

 

by: PC4N6Posted on 2009-10-21 at 15:21:03ID: 25629104

Yes Texas you are correct.  I have an ASA that had tunnels to two other pixes.  The WAN IP address changed on the outside interface.  Pix are running ver 6.3 and ASA ver 8.  Thant was the only change made.  On the pix all i did was the following:

crypto map 30 set peer XXXX

isakmp key XXX address XXX netmask XXX no-xauth

I ran sh isakmp sa, and all of my tunnels are there except for the new ip tunnel

I am not using certs for ike i am using preshare key

 

by: Texas_BillyPosted on 2009-10-22 at 07:10:50ID: 25634388

Based on your response, all tunnels are using the same transform-set, yes?  
And the one tunnel that won't come up, is that to one of these PIX firewalls, or to a tunnel that is new to this config?

If you're missing one tunnel, verify on the ASA:

(1) You have some numbered access-list permitting traffic from the hub subnet to the remote spoke private subnet
(2) You have added the same ACL element(s) from step 1 here to your nat 0 statement on the ASA.
(3) You have bound this numbered ACL from step 1 to the crypto-map for the tunnel
(4) You have a valid tunnel-group with the pre-shared-key

Verify on the PIX:

(1) That you did not put a typo in the pre-shared-key when you reset the "isakmp key" command - I'll be anything this is your problem

To troubleshoot:

On your ASA, enable syslogging with level "warnings" to the buffer:

(1) config t
(2) logging enable
(3) logging timestamp
(4) logging buffered warnings

Then set a terminal ping from a host on the hub subnet to a host on the spoke subnet (ping hostip -t <enter>)

Then on your ASA,

(1) Clear log
(2) show log
(2) show log

You can use the space bar to scroll through the log.  You can keep issuing the clear log command if the log is too full and you can't make sense of what's what.  

Keep viewing the log, and the ASA will tell you exactly where the tunnel is failing.  I bet you see a pre-shared-key mismatch.  It's possible you'll see something else, but I bet it's a pre-shared-key mismatch.  If you don't see anything about your vpn in the log, you have a problem with access-lists, no question about it.  --TX

 

by: PC4N6Posted on 2009-10-22 at 07:22:33ID: 25634535

Thanks. Problem is I don't have access to the ASA as the IP has changed.  I am not physically where the ASA is.

 

by: Texas_BillyPosted on 2009-10-22 at 07:30:18ID: 25634638

Oh, you can't get to it on the WAN interface, so ssh / asdm aren't enabled to the WAN?

You can also go the same thing on the PIX, can you get to the PIX where the tunnel isn't working?  if so, you can do the same thing there, identical instructions, except for the "logging enable" command.  On PIX, that is "logging on".

Also try just removing and re-adding the "isakmp key xxx" command - bet you anything the problem is right there - if, indeed, this is a tunnel that was working fine until the WAN ip changed and you only made those few changes on the PIX.

 

by: Texas_BillyPosted on 2009-10-22 at 07:32:20ID: 25634657

Did you have access to the ASA before the IP changed?  If so, that access is still enabled, just log into the new IP.  It'll be the one you configured in the "isakmp key xxxx" address on your PIX.

Or you can call someone there, have them go to www.ipchicken.com, and tell you the IP it reports back.  If your ASA is configured with "global (outside) 1 interface) - the IP reported by IP chicken is the IP for remote management.

 

by: PC4N6Posted on 2009-10-22 at 08:44:34ID: 25635548

well we did not have outside access set up.  we managed it from within the tunnel.  So I am guessing that I will have to go there and console.

 

by: PC4N6Posted on 2009-10-22 at 08:52:10ID: 25635632

I do have access to both of the pix devices.  And yes those tunnels were in place before the ip change.  The ip's have not changed on the pix's so the tunnel group should not need to be changed on the ASA right?

 

by: Texas_BillyPosted on 2009-10-22 at 08:56:00ID: 25635679

OK, and you're not on site at the PIX location either?  Remember, if you're onsite where at the location with the PIX that's not working, you can do it from there too.

If you have to visit the site and console, you should also set up wan access so you can get to it remotely.

config t
crypto key generate rsa modulus 1024
ssh permit ipaddress 255.255.255.255 outside
wr mem

Then download a free ssh client like PuTty and you can ssh into your ASA as long as you're coming from the ip specified in the "ssh permit" statement.

I use PuTty on my phone with symbian OS and it works a treat.  I can log into all my equipment with my phone so I don't have to go into the office, wait 'till I get home, find a wifi hotspot, etc.  

But I still think if, when you get a chance, you re-enter the "isakmp key xxxxx" statement on the PIX that's not working, being extra careful not to have any typos in there and that the key is the same as the one entered in the tunnel-group on the hub ASA, you'll be golden.  --TX  

 

by: Texas_BillyPosted on 2009-10-22 at 08:58:00ID: 25635707

right, if the IPs on the PIXs hasn't changed, the tunnel-group on teh ASA is to be left alone.

Re-enter the "isakmp key" command on the PIX that's not working.  I bet it fixes your problem - if it doesn't, reset the pre-shared-key on teh hub ASA for the corresponding tunnel-group.  I bet anything that's the issue.

 

by: PC4N6Posted on 2009-10-22 at 09:21:26ID: 25635958

I do have access to both of the pix devices.  And yes those tunnels were in place before the ip change.  The ip's have not changed on the pix's so the tunnel group should not need to be changed on the ASA right?

 

by: Texas_BillyPosted on 2009-10-22 at 09:22:57ID: 25635977

Yeah, I answered that right above, is your screen not refreshing?

 

by: PC4N6Posted on 2009-10-22 at 09:29:37ID: 25636052

I do have access to both of the pix devices.  And yes those tunnels were in place before the ip change.  The ip's have not changed on the pix's so the tunnel group should not need to be changed on the ASA right?

 

by: PC4N6Posted on 2009-10-22 at 09:30:28ID: 25636061

Thanks a lot for your help.

 

by: Texas_BillyPosted on 2009-10-22 at 09:35:05ID: 25636113

You're most welcome, I'm glad it's working now.  --TX

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...