NetSecGame
NetSecGame copied to clipboard
firewall is not working when using `use_dynamic_addresses = True`
I have identified several issues regarding the firewall and the use of dynamic addresses:
- The configuration option in the yaml for setting the firewall use_firewall is not working. Firewall is always active when you use dynamic addresses
-
self._firelwallinnework_security_gameis not updated correctly whenuse_dynamic_addressesis set. As a consequence, when you want to run more than 1 episode the agent got stuck for an apparentKeyErrorexception hidden - No matter what action you take, the environment is not updated. You scan a network that you are allowed to do, but no hosts are found since firewall blocks you for doing so. (no matter if you unset the firewall in the yaml conf file..)