For seeing the active connections I think you’ll need some sort of linux network monitoring tool. But the next part it should be as simple as restricting that on the Qube’s firewall settings. The documentation should be self-explantory and by reading it it should answer most of your concerns:
If that doesn’t work for you, the check out this discussion: