Absolutely no need to do kernel level packet filtering for this. You can use the absurdly easy hostfile approach, or a simple self-hosted DNS server. This looks entirely LLM generated as well.
Also... who the hell tries to make changes to a user's sudoers file from their install script? This is an awful project.