Pix 501 loses VPN tunnel overnight

Posted on 2009-07-07
Last Modified: 2012-05-07
I have a few stores that have lateley been losing their VPN connections overnight which requires me to restart my Sonicwall 3060 pro at corporate and their DSL modems and Pix 501's in the remote locations to re-sync those tunnels. Over the weekend I created a command prompt on my machine at corporate that sent out infinite ping requests and then that store retained it's connection. I turned that off yesterday and we lost the connection by morning.

Is there something that I can do that forces these connections to stay open?

Here is my config for the pix.
interface ethernet0 auto

interface ethernet1 100full

nameif ethernet0 outside security0

nameif ethernet1 inside security100

enable password xxxxxxxxxxxxxxx encrypted

passwd xxxxxxxxxxxxxxxxx encrypted

hostname pixfirewall16


fixup protocol dns maximum-length 512

fixup protocol ftp 21

fixup protocol h323 h225 1720

fixup protocol h323 ras 1718-1719

fixup protocol http 80

fixup protocol rsh 514

fixup protocol rtsp 554

fixup protocol sip 5060

fixup protocol sip udp 5060

fixup protocol skinny 2000

fixup protocol smtp 25

fixup protocol sqlnet 1521

fixup protocol tftp 69


access-list pixtosnwl permit ip

access-list NONAT permit ip

access-list outside_access_in permit tcp any interface outside eq 5900

access-list outside_access_in permit tcp any any eq 5900

access-list outside_access_in permit icmp any any

no pager

logging on

mtu outside 1500

mtu inside 1500

ip address outside

ip address inside

ip audit info action alarm

ip audit attack action alarm

pdm logging informational 100

pdm history enable

arp timeout 14400

global (outside) 1 interface

nat (inside) 0 access-list NONAT

nat (inside) 1 0 0

static (inside,outside) tcp interface 5900 5900 netmask 0 0

access-group outside_access_in in interface outside

route outside 255

timeout xlate 0:05:00

timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00

timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00

timeout sip-disconnect 0:02:00 sip-invite 0:03:00

timeout uauth 0:05:00 absolute

aaa-server TACACS+ protocol tacacs+

aaa-server TACACS+ max-failed-attempts 3

aaa-server TACACS+ deadtime 10

aaa-server RADIUS protocol radius

aaa-server RADIUS max-failed-attempts 3

aaa-server RADIUS deadtime 10

aaa-server LOCAL protocol local

http server enable

http inside

no snmp-server location

no snmp-server contact

snmp-server community public

no snmp-server enable traps

tftp-server inside /configs

floodguard enable

crypto ipsec transform-set strong esp-3des esp-sha-hmac

crypto ipsec security-association lifetime seconds 86400

crypto map tosnwl 20 ipsec-isakmp

crypto map tosnwl 20 match address pixtosnwl

crypto map tosnwl 20 set peer

crypto map tosnwl 20 set transform-set strong

crypto map tosnwl interface outside

isakmp enable outside

isakmp key xxxxxx address netmask no-xauth no-config-mode

isakmp identity address

isakmp policy 20 authentication pre-share

isakmp policy 20 encryption 3des

isakmp policy 20 hash sha

isakmp policy 20 group 2

isakmp policy 20 lifetime 86400

telnet inside

telnet timeout 60

ssh outside

ssh outside

ssh inside

ssh timeout 60

management-access inside

console timeout 0

terminal width 80

Open in new window

Question by:RidcoDoIT
  • 2
LVL 13

Accepted Solution

3nerds earned 500 total points
ID: 24795260
The odd thing in this is that you have to go through all of this work to bring them back up. The general idea of a VPN is that it comes up (usually in less than 1 ping) and is there when it is needed and disconnect when it is not. It sounds like you are loosing half the connection as I have seen a simular problem when the IKE piece become out of sync or drops but the IPSEC portion stays up. Do you know what lifetime values you have set up in your Sonicwall?

You might want to do some show commands and look at the output proior to resetting things next time.

Also i don't normally mess with the ipsec lifetime I usually just leave it at default and you have it set to one day.
crypto ipsec security-association lifetime seconds 86400

It may seem odd but I have had better luck shortening the lifetimes in these situation instead of lengthening them. As the longer they got the more trouble I seemed to run into.




Author Comment

ID: 24795311
I will try and shorten them to 1 hr and see if that makes any difference. I only put that ipsec lifetime command because I was grasping for straws to figure out what will hold these things open.
LVL 13

Expert Comment

ID: 24795385
Let me know if you have any other questions.

an hour might bit a bit on ths short side would allow you to test it. If it is better then push it out like 4-12hours.

Good Luck,


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will cover setting up redundant ISPs for outbound connectivity on an ASA 5510 (although the same should work on the 5520s and up as well).  It’s important to note that this covers outbound connectivity only.  The ASA does not have built…
Let’s list some of the technologies that enable smooth teleworking. 
After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now