Seal for pipe flange