Community discussions

MikroTik App
 
georgechyo
just joined
Topic Author
Posts: 9
Joined: Thu Dec 20, 2012 1:56 pm

IPsec Site-to-Site VPN, Mikrotik/Cisco

Thu Dec 20, 2012 2:11 pm

Hello,
I'm new here and hope my topic is in right place :)
Now about my problem: i have a working tunnel between Cisco ASA and Mikrotik, everything's fine until internet connection is stable, but when it's not tunnel hangs up. I think that DPD (Dead Peer Detection) not works.
When i disconnect router from the internet, remote peers and installed SA s are not deleted, after a specified time (10 secconds, 2 failures)
I hope i can find a solution here :)
 
georgechyo
just joined
Topic Author
Posts: 9
Joined: Thu Dec 20, 2012 1:56 pm

Re: IPsec Site-to-Site VPN, Mikrotik/Cisco

Sun Dec 23, 2012 9:28 am

anybody? :(
 
NicholasMag
just joined
Posts: 19
Joined: Thu Dec 20, 2012 10:21 pm

Re: IPsec Site-to-Site VPN, Mikrotik/Cisco

Sun Dec 23, 2012 11:19 pm

Need a bit more detail about your network topology and the settings on the mikrotik.

To clarify, when Internet is stable, the vpn works great? But when internet is unstable you have connection errors?

Are these clients creating the vpn connection through the wan or lan side?
 
georgechyo
just joined
Topic Author
Posts: 9
Joined: Thu Dec 20, 2012 1:56 pm

Re: IPsec Site-to-Site VPN, Mikrotik/Cisco

Tue Dec 25, 2012 10:05 am

NicholasMag
here is the configuration:
# dec/25/2012 11:44:25 by RouterOS 6.0rc5
# software id = 74EE-08TE
#
/ip ipsec proposal
set [ find default=yes ] auth-algorithms=md5 enc-algorithms=aes-128 lifetime=\
    1d pfs-group=none

/ip ipsec peer
add address=x.x.x.x/32 dpd-interval=10s dpd-maximum-failures=2 \
    enc-algorithm=aes-128 secret="#####"

/ip ipsec policy
add dst-address=192.168.0.0/16 level=unique sa-dst-address=x.x.x.x \
    sa-src-address=x.x.x.x src-address=192.168.254.2/32 tunnel=yes
Problem is in DPD (dead peer detection), when internet goes off, remote peer (cisco site) removes the connection and deletes installed SA s, but on Mikrotik side doesn't delete connection and SA's, they still exsist. So when internet connection is restored Mikrotik is trying to use old SA s, which already does not exists on remote site.

I turned off keepalives on Cisco, so tunnel stays in up state, even when there is no internet connection, but it's not a solution.
 
User avatar
tomaskir
Trainer
Trainer
Posts: 1162
Joined: Sat Sep 24, 2011 2:32 pm
Location: Slovakia

Re: IPsec Site-to-Site VPN, Mikrotik/Cisco

Tue Dec 25, 2012 11:25 am

Look at this topic, so I dont have to rewrite all that I've wrote there :)
http://forum.mikrotik.com/viewtopic.php?f=2&t=66178
 
georgechyo
just joined
Topic Author
Posts: 9
Joined: Thu Dec 20, 2012 1:56 pm

Re: IPsec Site-to-Site VPN, Mikrotik/Cisco

Tue Dec 25, 2012 6:58 pm

Look at this topic, so I dont have to rewrite all that I've wrote there :)
http://forum.mikrotik.com/viewtopic.php?f=2&t=66178
It didn't worked :(
I have DPD on (Interval-2, Maximum Failures-3) and IPsec policy level=unique, but when internet connection goes off, SA and remote peers are still there. Did i missed something?
 
User avatar
tomaskir
Trainer
Trainer
Posts: 1162
Joined: Sat Sep 24, 2011 2:32 pm
Location: Slovakia

Re: IPsec Site-to-Site VPN, Mikrotik/Cisco

Tue Dec 25, 2012 7:21 pm

Might be something wrong in rc5. Have you tried with 5.22?
 
georgechyo
just joined
Topic Author
Posts: 9
Joined: Thu Dec 20, 2012 1:56 pm

Re: IPsec Site-to-Site VPN, Mikrotik/Cisco

Wed Dec 26, 2012 9:51 am

Might be something wrong in rc5. Have you tried with 5.22?
I tryed many different versions: 5.11, 5.22, 6rc5, 6rc6, each of them does the same.