You do not have option to modify firewall rules during installation of esxi. It has very minimal options during install to customize ( if you are using iso based default installation, scripted install has better option to customize things) . But after installation you can make modification to all configuration and they persist across reboots