How do I block all internet access except for Teamviewer?

What is the best way to block all internet access for the computer except for Teamviewer? I’m connecting to another computer via Teamviewer. Comodo Firewall is installed on the remote machine, and I want to block all internet access except for my connection to the remote (via Teamviewer).

Also, I want to be able to safely install Comodo Firewall without it auto-blocking Teamviewer after installation. Is this possible?

Thanks

Due to the way Teamviewer does UDP port punching its very difficult to lock teamviewer download to specific ports.