: Restricting outgoing and incoming traffic to only necessary ports can prevent backdoors from becoming accessible to external actors.
Do not run this on the open internet. Use a local virtual machine (e.g., Metasploitable 2, which contains this vulnerability).