Formation and/or maintenance of a lineage boundary between anterior and posterior compartments of the leg disc that cells cannot cross, thus separating the populations of cells in each compartment.
leg disc anterior/posterior lineage restriction