I can use
IPSECRULE 10.1.0.2 10.1.1.2 LOG Protocol icmp direction inbound
IPSECRULE 10.1.1.2 10.1.0.2 LOG Protocol icmp direction outbound
and they work as expected.
If I use
IPSECRULE 10.1.0.2 * LOG Protocol icmp direction bidirectional
it doesnt work as expected. My traffic is blocked, and if I display the configuration using ipsec -f display -p TCPIP
I get ( after deleting non relevant stuff )
FilterName: SYSDEFAULTRULE.1
FilterNameExtension: 1
Direction: Outbound
SourceAddress: 10.1.0.2
DestAddress: 0.0.0.0
***********************************************************************
FilterName: SYSDEFAULTRULE.1
FilterNameExtension: 2
Direction: Inbound
SecurityClass: 0
SourceAddress: 0.0.0.0
DestAddress: 10.1.0.2
which appears is the wrong way round. In needs to be INBOUND from source 10.1.0.2 to dest 0.0.0.0, and OUTBOUND from source 0.0.0.0 to destaddr 10.1.0.2
To get it to work I have to use
IPSECRULE * 10.1.0.2 LOG Protocol icmp direction bidirectional
which feels wrong... the source "*" is actually the target(destination) and the destination "10.1.0.2" is actually where the request comes from ( source)
This is different to direction inbound |outbound which make sense source is where it starts, and dest is where it is going to.
Any I missing something?
Colin
------------------------------
Colin Paice
------------------------------