Add guard for osfamily=windows,solaris

Because firewall is not supported on those platforms.