fix port setup for all .cnf