Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in logging message when blocking incoming connections. #153

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cyberbattle/simulation/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ def connect_to_remote_machine(
return ActionResult(reward=Penalty.BLOCKED_BY_LOCAL_FIREWALL, outcome=None)

if not self.__is_passing_firewall_rules(target_node.firewall.incoming, port_name):
logger.info(f"BLOCKED TRAFFIC: target node '{target_node_id}'" + f" is blocking outgoing traffic on port '{port_name}'")
logger.info(f"BLOCKED TRAFFIC: target node '{target_node_id}'" + f" is blocking incoming traffic on port '{port_name}'")
return ActionResult(reward=Penalty.BLOCKED_BY_REMOTE_FIREWALL, outcome=None)

target_node_is_listening = port_name in [i.name for i in target_node.services]
Expand Down
Loading