In Kautilya's Arthasastra (misspelled as Mahasastra in the prompt), the 'antapala' was an official responsible for the security and maintenance of the frontiers and the roads leading into the kingdom. They ensured the safety of trade routes and collected duties from incoming merchants.