Community discussions

MikroTik App
 
vivalibre
just joined
Topic Author
Posts: 3
Joined: Thu Apr 28, 2005 8:54 pm
Location: Utila, Honduras
Contact:

IPSec VPN tunnels unstable in RouterOS 3.31?

Wed May 26, 2010 11:47 pm

Hi all,

I have five locations each connected with a Mikrotik 750G router. Works great ... except the static VPN IPSec tunnels between locations.

The tunnels work ... the example page in the manual was a great help. However, the tunnels go down randomly and I must log in, do a "ping <remote ip> src-address=<localip>" a few times on each box to bring up the tunnels again.

There seems to be no rhyme nor reason to when the tunnels go down, and why several pings are needed to bring up the tunnel. Many times I just get "Packet rejected" and the tunnel doesn't get built.

An example policy:
/ip ipsec policy print
 0  src-a0ddress=192.168.10.0/24:any dst-address=192.168.0.0/24:any 
     protocol=all action=encrypt level=require ipsec-protocols=esp tunnel=yes 
     sa-src-address=[real ip of local router wan] sa-dst-address=[real ip of remote router wan]
     proposal=default priority=0 
A peer definition:
/ip ipsec peer print
 0   address=[remote real ip]/32:500 auth-method=pre-shared-key secret="********>
     generate-policy=no exchange-mode=aggressive send-initial-contact=yes 
     nat-traversal=no proposal-check=obey hash-algorithm=md5 
     enc-algorithm=3des dh-group=modp1024 lifetime=1d lifebytes=0 
     dpd-interval=disable-dpd dpd-maximum-failures=1 
Proposal:
/ip ipsec proposal> print
 0   name="default" auth-algorithms=md5 enc-algorithms=3des lifetime=1h 
     pfs-group=modp1024 
I also have the proper rules in /ip firewall nat to exclude VPN packets from being NAT'd.

Is this a bug or am I doing something wrong? Thanks in advance for any help!

-Andrew in Honduras
 
ayufan
Member
Member
Posts: 334
Joined: Sun Jun 03, 2007 9:35 pm
Contact:

Re: IPSec VPN tunnels unstable in RouterOS 3.31?

Thu May 27, 2010 12:04 am

1) Check that you have the same lifetime on each router.
2) Try to netwach hosts and flush-sa when host is down.
 
User avatar
BrianHiggins
Forum Veteran
Forum Veteran
Posts: 702
Joined: Mon Jan 16, 2006 6:07 am
Location: Norwalk, CT
Contact:

Re: IPSec VPN tunnels unstable in RouterOS 3.31?

Thu May 27, 2010 3:52 pm

I setup a 3.30 MT with a IPSec tunnel to a sonicwall on the other end of the tunnel for someone back in December, haven't had a single problem with it.

verify your lifetime settings are set exactly the same on both sides, they need to match on both the phase 1 and the phase 2 part of the connection.

Who is online

Users browsing this forum: AndreKR, Bing [Bot], CHUPAPEE, clambert, li77616211 and 198 guests