Community discussions

MikroTik App
 
romulolimas
just joined
Topic Author
Posts: 3
Joined: Tue Jun 14, 2011 4:25 pm
Location: Salvador, Bahia - Brazil
Contact:

IPSec Policy Invalid

Tue Jun 14, 2011 8:38 pm

Hi,

I have Mikrotik (RouterOS V5.4) working with a cisco router via IPSEC VPN (Tunnel), how we need redundancy, we use two peers for connection, but When I enable the peer policies, only one becomes active, the other becomes invalid. I really don´t know what happend.
Other problem I've noted is when I disable (manually) the active policy the other remains invalid.
I really apreciate help for this issue because, without this I have not redundancy on my VPN.

Thanks a lot.

Best Regards,
Rômulo Lima
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: IPSec Policy Invalid

Wed Jun 15, 2011 12:16 pm

Please post /ip ipsec policy configuration, when policy uses the same src/dst-address, it will become invalid.
 
romulolimas
just joined
Topic Author
Posts: 3
Joined: Tue Jun 14, 2011 4:25 pm
Location: Salvador, Bahia - Brazil
Contact:

Re: IPSec Policy Invalid

Wed Jun 15, 2011 3:48 pm

Hi Sergejs,

In fact, the source and destination addresses are the same on both policies, but if the two peers serve for the same networks , how could I use diferent addresses?
My idea is work with two peers, where one is active and the other is in standby.

You undesrtand?

Follows the policy configuration:

/ip ipsec policy
add action=encrypt comment="Embratel Peer - 189.x.x.117" disabled=no dst-address=192.168.0.0/24 dst-port=any ipsec-protocols=esp level=require priority=10 \
proposal=proposal_killing protocol=all sa-dst-address=189.x.x.117 sa-src-address=201.x.x.114 src-address=192.168.4.0/24 src-port=any tunnel=yes
add action=encrypt comment="Embratel Peer - 189.X.x.141" disabled=no dst-address=192.168.0.0/24 dst-port=any ipsec-protocols=esp level=require priority=15 \
proposal=proposal_killing protocol=all sa-dst-address=189.x.x.141 sa-src-address=201.x.x.114 src-address=192.168.4.0/24 src-port=any tunnel=yes


Thank you.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: IPSec Policy Invalid

Wed Jun 15, 2011 4:01 pm

Yes, it was clear from your description in the original post. Currently there is no such option, first policy should be disabled before second will start work without "i" letters.
 
romulolimas
just joined
Topic Author
Posts: 3
Joined: Tue Jun 14, 2011 4:25 pm
Location: Salvador, Bahia - Brazil
Contact:

Re: IPSec Policy Invalid

Thu Jun 16, 2011 4:23 am

Ok Sergejs,

Thank you for the explanation. I will to try make redundancy with scripts, anyway.

Best Regards,

Rômulo Lima
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: IPSec Policy Invalid

Thu Jun 16, 2011 8:17 am

Currently this is the only way. We are working on option to change this behavior in the future.
 
pylon
just joined
Posts: 3
Joined: Wed Sep 29, 2010 11:59 pm

Re: IPSec Policy Invalid

Sun Jun 26, 2011 7:08 pm

Hi Rômulo Lima,

I'm also stuck with this problem.
Did you come up with a script-based solution in the meantime and mind to share it?

I'd highly appreciate it.

Thanks and best regards,
-pylon
 
eganclose
just joined
Posts: 4
Joined: Fri Feb 20, 2015 2:40 am

Re: IPSec Policy Invalid

Fri Feb 20, 2015 2:58 am

Iam also stuck with the exact same problem
Can you please advise if you manage to get it resolved and if you can share your solution
regards
 
eganclose
just joined
Posts: 4
Joined: Fri Feb 20, 2015 2:40 am

Re: IPSec Policy Invalid

Fri Feb 20, 2015 7:51 am

Hi Is this problem solved ?
Iam also stuck with the same issue.
Unfortunately I cannot have redundancy because of this
 
fl0pp
just joined
Posts: 9
Joined: Mon Mar 11, 2013 12:53 am

Re: IPSec Policy Invalid

Thu Jan 05, 2017 12:55 pm

I have the same problem. What is the priority option for, if the policy is stuck in invalid?