The idea with these is to keep out water and other contamination when running shifter cables with interrupted cable housing. The top one (or C in figure 3) goes on to the end of the housing and into the stop on the frame. D in figure 3 goes on the other side of the stop on the frame, in the gap where there is no cable housing. Just like bikedog's picture above. Where I have used these seems to work. I have less gummed up cables compared to 20+ years ago when I didn't run these.
Remember when we used to argue about which location was best for the cable routing. Top of top tube, bottom or top tube, or like yeti side of top tube, or maybe on the downtube.