paraglider-project / paraglider

Streamlining cloud networking
https://paragliderproject.io
Apache License 2.0
61 stars 4 forks source link

Extend `PermitListRule` to support ICMP types and codes #373

Open Cohen-J-Omer opened 3 months ago

Cohen-J-Omer commented 3 months ago

As suggested here, we should consider extending PermitListRule to support ICMP types and codes.
If you believe it's a worthwhile effort, we should make sure the data type of the ICMP type and code fields will be a string rather than an integer, since the default value of an integer (0) represents an existing ICMP type(echo reply) and code(unreachable network).

seankimkdy commented 2 months ago

@Cohen-J-Omer I'm lacking some background in this. Could you give an example of a permit list rule that leverages these ICMP types and codes?

Cohen-J-Omer commented 2 months ago

Hey @seankimkdy, IBM security group rules support ICMP types and codes. Extending the existing PermitListRule interface will allow:

smcclure20 commented 1 month ago

As far as I know, the other clouds don't support specifying the type and code for ICMP packets in rules, so I think unless there is a strong need for this from users, we should just default to matching on all types and codes.