Community discussions

MikroTik App
 
spike232
just joined
Topic Author
Posts: 19
Joined: Thu Mar 31, 2011 10:09 pm

IPSec Policy not found when Generate enabled

Thu Aug 15, 2013 1:41 pm

I have an RB2011 the new hardware revision so im stuck using 6.x.

We set it up identically to an existing RB2011 but its the older hardware revision running 5.24.

The routers main purpose is to terminate IPSec LAN to LAN VPN's

The only config issue I had moving to 6.2 was the generate-policy under the peer has to be changed to generate-policy=port-override instead of generate-policy=yes.

None of the remote routers will connect the IPSec tunnel, I turned on IPSec logging and found the error: No Policy Found, it then shows the policy requested by the router.
The peer config is set to generate the policy so I dont know why its looking for one in the first place, if I manually create the policy based on what the router asked for then the VPN connects fine.
I have even tried setting generate-policy=port-strict with no change.

Is the policy generation broke in 6.x? or is there some other steps that must now be taken to make this work?
 
andriys
Forum Guru
Forum Guru
Posts: 1527
Joined: Thu Nov 24, 2011 1:59 pm
Location: Kharkiv, Ukraine

Re: IPSec Policy not found when Generate enabled

Thu Aug 15, 2013 6:53 pm

One thing that was introduced in 6.x is policy templates. I don't remember documentation mentioning policy templates as being mandatory in case you have generate-policy enabled, but I'd checked if defining a template solves your problem.

Search here for policy group and policy templates.
 
spike232
just joined
Topic Author
Posts: 19
Joined: Thu Mar 31, 2011 10:09 pm

Re: IPSec Policy not found when Generate enabled

Fri Aug 16, 2013 12:42 pm

I added a template:
add group=default template=yes src-address=0.0.0.0/0 dst-address=0.0.0.0/0 protocol=all proposal=default

But I still have the same issue...
The router is requesting 172.16.1.0/27 to 0.0.0.0/0, tried the above and even tried the template having exactly this and it still dident find it...

Is there no way to make generate behave like 5.x?
 
mortar8
just joined
Posts: 21
Joined: Mon Sep 16, 2013 1:41 pm

Re: IPSec Policy not found when Generate enabled

Sat Apr 25, 2015 12:48 am

Bump here.
Can't get this to work with remote peer set to 0.0.0.0/0. Log says "no configuration found for 0.0.0.0".
And if I instread use the IP that the other router has at this moment - works.
This is frustrating.
 
User avatar
vmiro
Frequent Visitor
Frequent Visitor
Posts: 80
Joined: Sun Jan 29, 2006 6:53 pm

Re: IPSec Policy not found when Generate enabled

Mon May 04, 2015 12:29 pm

Hi, after an upgrade in "ip ipsec policy" there is a default policy which is disabled:

0 T * group=default src-address=::/0 dst-address=::/0 protocol=all
proposal=default template=yes

Enable it and try to connect with remote router. It worked for me ;)

mIRO

Who is online

Users browsing this forum: ajayrooplall, Gomo, GoogleOther [Bot], MarkusT, slimmerwifi, smirgo and 52 guests