Community discussions

MikroTik App
vivalibre
刚刚加入了
Topic Author
Posts: 3
对未来ned: 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 src-address=" 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:
Code:Select all
/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:
Code:Select all
/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:
Code:Select all
/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
Top
ayufan
Member
Member
Posts: 334
对未来ned: 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.
Top
User avatar
BrianHiggins
Long time Member
Long time Member
Posts: 689
对未来ned: Mon Jan 16, 2006 6:07 am
Location:Norwalk, CT
Contact:

Re: IPSec VPN tunnels unstable in RouterOS 3.31?

2010年5月27日,星期四下午3:52

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.
Top

Who is online

Users browsing this forum:own3r1138and 9 guests