Goods of Crimean Khanate were stamped by a Tamga

Do you know what the word tamgadzhi stands for? What is the origin of a Russian word tamozhnya (customs office)?