IPSec NAT rules are not removed when a tunnel is disabled
After disabling an IPSec tunnel in the GUI the NAT rules in the phase2 entries are not removed and are still applied to traffic using that route in another IPSec tunnel.
This applies if the tunnel is disabled at the phase 2 or the phase 1 containing it.
NAT rules still appear in rules.debug.
Updated by Jim Pingle about 6 years ago
It appears the code in filter.inc is not checking for a disabled P1 or P2 when creating the NAT rules: