The leak of natural gas is not only an economic loss, but also the fountain of danger. Conventional detection techniques of natural gas pipe leak have low efficiency and slow respond time, therefore, it is difficult for them to suit practice application. Optical sensors based on NIR tunable diode laser absorption spectroscopy were widely used because of high sensitivity, small volume and less maintenance. In the present paper, a portable remote sensor of natural gas pipeline leak was reported. The sensor used a ratio of second to first harmonic signals as calibration method, and the results show a good consistency between the concentrations and the ratios of second to first harmonic signals. The effect of different topographic scattering targets on the ratio detection was measured and analyzed. The results show that the ratio of second to first harmonic signals can be used in practical application.