in my town, you need a permit to REPLACE an existing fence with $100 permit fee of course
Then don’t “replace” it! Carry out ‘major repairs’ to the limit allowed.