Cap galvanized water pipe
There should be a washer in the compression cap.  You can try to wrap thread tape on the threads first or pipe dope.  You can also purchase threaded shut off valves and thread them on the pipes with either pipe dope or thread tape.