ipsec policy match...
Posted: Thu Apr 05, 2007 12:09 am
Hi,
my understanding of ipsec is, that packets are matched against the Security Policy Database (SPD) to find a matching rule and using this for doing encryption oder other stuff.
Router is at 192.168.2.1. Why does
/ip ipsec policy src-address=192.168.2.0/24 dst-address=172.17.0.0/16 ....
NOT work, while
/ip ipsec policy src-address=0.0.0.0/0 dst-address=172.17.0.0/16 ...
works? For verification purposes I have added a logging rule to the postrouting chain and this 'verifies' that my packet really is
src=192.168.2.99 to dst=172.17.1.6
Why, the heck, does this not match the SPD?
Thanks for any comments here? Bug?
Achim
my understanding of ipsec is, that packets are matched against the Security Policy Database (SPD) to find a matching rule and using this for doing encryption oder other stuff.
Router is at 192.168.2.1. Why does
/ip ipsec policy src-address=192.168.2.0/24 dst-address=172.17.0.0/16 ....
NOT work, while
/ip ipsec policy src-address=0.0.0.0/0 dst-address=172.17.0.0/16 ...
works? For verification purposes I have added a logging rule to the postrouting chain and this 'verifies' that my packet really is
src=192.168.2.99 to dst=172.17.1.6
Why, the heck, does this not match the SPD?
Thanks for any comments here? Bug?
Achim