ISO 7241-A quick connect male cap 1/2" body agriculture
I was dissatisfied with the usual dirt/dust caps that had no internal rings to hold onto the male connection, so drew one up in OpenScad - here's the STL. It fits snuggly when make of TPU - you must use a very flexible material and also one that will endure hydraulic oil.