You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Psec traffic does not trigger IKE with strongSwan start_action=trap on VPP
#3737
connections {
site {
version = 2
childless = prefer
proposals = ...
local_addrs = 192.168.4.2
remote_addrs = 192.168.4.1
children {
net {
local_ts = ...
remote_ts = ...
start_action = trap
}
}
}
}
However, when the endpoint sends ICMP traffic, no IKE negotiation is triggered. The ICMP packet is simply forwarded normally.
strongSwan log
During connection loading, I see:
policy have interface 192.168.4.2
firstly created, spd for p1 found sw_if_index is 1
SA ID not found
policy FWD interface
policy have interface 192.168.4.2
SA ID not found
installing trap failed
vppctl show ipsec all currently shows:
SPD Bindings:
IPSec async mode: off
with no SPD binding.
Question
I would like to understand the expected behavior of VPP IPsec SPD trap policies when they are used with strongSwan.
In particular:
Does VPP support an IPsec SPD policy that acts as a trap/acquire policy, i.e. a policy that does not yet have an associated SAD/SA entry and triggers an acquire event when matching traffic arrives?
If so, what is the correct VPP API sequence for installing such a policy?
Is sad_id = 0 or another special value expected for a trap policy?
Is there an existing VPP example/test case for SPD trap/acquire functionality that can be used as a reference?
I am trying to determine whether the issue is in the strongSwan kernel-vpp backend implementation or whether VPP requires a specific configuration/API sequence for IPsec trap policies.
Any guidance or pointers to the relevant VPP IPsec source code/tests would be appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Environment
kernel-vppstart_action = trapConfiguration
I configured a strongSwan connection with:
connections { site { version = 2 childless = prefer proposals = ... local_addrs = 192.168.4.2 remote_addrs = 192.168.4.1 children { net { local_ts = ... remote_ts = ... start_action = trap } } } }However, when the endpoint sends ICMP traffic, no IKE negotiation is triggered. The ICMP packet is simply forwarded normally.
strongSwan log
During connection loading, I see:
vppctl show ipsec allcurrently shows:with no SPD binding.
Question
I would like to understand the expected behavior of VPP IPsec SPD trap policies when they are used with strongSwan.
In particular:
Does VPP support an IPsec SPD policy that acts as a trap/acquire policy, i.e. a policy that does not yet have an associated SAD/SA entry and triggers an acquire event when matching traffic arrives?
If so, what is the correct VPP API sequence for installing such a policy?
Is
sad_id = 0or another special value expected for a trap policy?Is there an existing VPP example/test case for SPD trap/acquire functionality that can be used as a reference?
I am trying to determine whether the issue is in the strongSwan
kernel-vppbackend implementation or whether VPP requires a specific configuration/API sequence for IPsec trap policies.Any guidance or pointers to the relevant VPP IPsec source code/tests would be appreciated.
All reactions