Two methods: (1) Force all students to attend public/government schools, like in Sweden. Jail parents who try to homeschool, like in Sweden. Kids just get vaccinated at school. (2) Pass a law that all kids have to have certain vaccines, but let parents homeschool/private school. It sounds like you prefer the second? Is there any country actually doing this?