Catalysis of the transfer of ectoine from one side of the membrane to the other. Ectoine (1,4,5,6-tetrahydro-2-methyl-4-pyrimidinecarboxylic acid) is a tetrahydropyrimidine commonly synthesized by halophilic bacteria.