Tit for tat

Equal treatment in return for something, a fair exchange.

The government policy was tit for tat to any attacks against its territory.