Lipnik () is a village in the municipality of Gacko, Republika Srpska, Bosnia and Herzegovina.
Since around 1814, Smail-aga ÃÂengiÃÂ settled in Lipnik near Avtovac, where he established his residence and official captaincy by building a Tower of ÃÂengiÃÂ, a small mosque and several residential buildings. He also built several captaincy towers in the wider region of Gacko and Eastern Herzegovina, as well as many villas and houses in Mala GraÃÂanica, SrÃÂeviÃÂi, Lukovice, Fojnica and Cernica.