What is this black nut/gasket on my main water line?
The picture turns out to be a picture of a test cock on a backflow preventer.  The black plug is just cosmetic.  One the side there is a way to use a flathead screwdriver and turn off the test cock (in my case, it had been slightly open).