Czar Echavez
78ff658e30
#2356 : optional dmz port + optional external acl rules
2024-03-01 16:48:05 +00:00
Czar Echavez
69b7ca1703
Merge remote-tracking branch 'origin/dev' into feature/2257-router-routes-cannot-be-represented-in-config-file
2024-02-29 15:21:20 +00:00
Czar Echavez
49a4e1fb56
#2257 : added common node attributes page + ability to set node operating state via config + tests
2024-02-29 15:20:54 +00:00
Chris McCarthy
cf0674ce22
#2326 - Network Interface port name/num fixed so that it carries through to sys log and PCAP outputs.
2024-02-29 13:00:27 +00:00
Czar Echavez
eefc2739c8
Merge remote-tracking branch 'origin/dev' into feature/2257-router-routes-cannot-be-represented-in-config-file
2024-02-29 11:34:56 +00:00
Marek Wolan
ce39387f92
Merge 'origin/dev' into feature/2317-refactor-reset
2024-02-29 10:16:42 +00:00
Marek Wolan
8730330f73
Apply PR suggestions
2024-02-29 10:14:31 +00:00
Czar Echavez
13db07dc11
Merge remote-tracking branch 'origin/dev' into feature/2257-router-routes-cannot-be-represented-in-config-file
2024-02-28 15:09:23 +00:00
Czar Echavez
6d43c61058
#2257 : apply PR suggestions
2024-02-28 15:08:00 +00:00
Chris McCarthy
d55b6a5b48
#2238 - Fixed the observations issue causing tests to fail
2024-02-28 12:03:58 +00:00
Marek Wolan
2076b011ba
Put back default router rules
2024-02-26 14:26:47 +00:00
Marek Wolan
a5043a8fbe
Modify tests based on refactoring
2024-02-26 12:15:53 +00:00
Marek Wolan
994dbc3501
Finalise the refactor. It works well now.
2024-02-25 17:44:41 +00:00
Marek Wolan
a34cf08209
Merge remote-tracking branch 'origin/dev' into feature/2317-refactor-reset
2024-02-25 16:41:40 +00:00
Marek Wolan
c115095157
Fix router from config using wrong method
2024-02-25 16:17:12 +00:00
Chris McCarthy
52677538a8
#2238 - Tidied up code, added more docstrings, and implemented suggestions from PR.
2024-02-23 15:12:46 +00:00
Marek Wolan
f933341df5
eod commit
2024-02-23 10:06:48 +00:00
Czar Echavez
ef61fe219c
Merge remote-tracking branch 'origin/dev' into feature/2257-router-routes-cannot-be-represented-in-config-file
2024-02-23 08:56:35 +00:00
Chris McCarthy
771a68dccb
#2238 - Implement NMNE detection and logging in NetworkInterface.
...
- Enhance NicObservation for detailed NMNE event monitoring.
- Add nmne_config options to simulation settings for customizable NMNE capturing.
- Update documentation and tests for new NMNE features and simulation config.
2024-02-22 22:43:14 +00:00
Czar Echavez
98fb28cbbc
#2257 : setting up application and service docs
2024-02-21 18:19:16 +00:00
Czar Echavez
deb7a3aa9d
#2257 : massive docs addition for config file
2024-02-21 14:49:59 +00:00
Marek Wolan
8f85555709
Merged PR 278: Enable the red agent to vary its start node
...
## Summary
- Made the data manipulation red agent be able to choose between the two clients to start operating on
- changed the attacker name in the config to 'data_manipulation_attacker' to because it is no longer tied to any client
- Updated the documentation notebook accordingly.
- Fixed a bug where the database client made a new connection every time it sent a SQL query (it tries to reuse its most recent one instead)
- Fixed a bug where link loads were not being cleared between episodes (?)
**warning** - the green agents are not working properly after reset right now, but I'm gonna fix this in the next ticket where I refactor episode reset.
## Test process
- unit tests pass
- UC2 notebook passes with both clients. (currently this doesn't work after an episode reset, but the very next thing I'm gonna work on is refactoring the reset, so I don't want to waste time fixing this.)
## Checklist
- [x] PR is linked to a **work item**
- [x] **acceptance criteria** of linked ticket are met
- [x] performed **self-review** of the code
- [x] written **tests** for any new functionality added with this PR
- [ ] updated the **documentation** if this PR changes or adds functionality
- [ ] written/updated **design docs** if this PR implements new functionality
- [x] updated the **change log**
- [x] ran **pre-commit** checks for code style
- [n] attended to any **TO-DOs** left in the code
Related work items: #2232
2024-02-20 20:22:20 +00:00
Marek Wolan
72f4cc0a50
Remove reset methods from most classes
2024-02-20 16:56:25 +00:00
Marek Wolan
f82506023b
Delete set_original_state method definitions
2024-02-20 16:29:27 +00:00
Marek Wolan
701781b23e
Clear link load in new timestep
2024-02-20 11:05:09 +00:00
Czar Echavez
b739823318
#2257 : add firewall via config + fix router hop ip address + shuffling around tests
2024-02-15 15:45:18 +00:00
Czar Echavez
ab7c7b9c06
Merge remote-tracking branch 'origin/dev' into feature/2257-router-routes-cannot-be-represented-in-config-file
2024-02-13 17:37:34 +00:00
Czar Echavez
b277034e8b
#2257 : temporarily commit changes - added startup and shut down durations to node config + adding routes
2024-02-13 13:02:24 +00:00
Chris McCarthy
7b64d99a63
#2205 - Final suggestions from PR
2024-02-13 12:56:41 +00:00
Chris McCarthy
add09a0280
#2205 - Tidied up interface creation and applied some suggestions from PR
2024-02-12 14:08:55 +00:00
Chris McCarthy
cfd64333e2
#2205 - Added wireless router tests and documentation. Refactored some code based on PR suggestions.
2024-02-12 12:31:08 +00:00
Chris McCarthy
9df7ceed3d
#2205 - feat: Implement AirSpace and WirelessRouter for Enhanced Network Simulations
...
This commit introduces the AirSpace and WirelessRouter classes, expanding the PrimAITE's capabilities to simulate wireless networking environments. The AirSpace class manages wireless communications, ensuring seamless transmission across different frequencies. Meanwhile, the WirelessRouter class integrates both wired and wireless networking functionalities.
2024-02-10 23:44:08 +00:00
Chris McCarthy
a8c1e2b9d9
#2205 - Fixed ACLRule.is_permitted function by returning a bool that indicates whether the rule was matched or not to allow the AccessControlList to know whether to pay attention to the rule or not when it's iterating over them.
2024-02-10 21:32:13 +00:00
Chris McCarthy
58af58810d
#2205 - Introduced a Firewall class for enhanced network security and control, extending Router functionalities. Updated ACLRule to support IP ranges via wildcard masking for refined traffic filtering. Includes documentation updates.
2024-02-09 23:29:06 +00:00
Chris McCarthy
6b3829dc48
#2248 - Removed redundant Union from single type params
2024-02-09 11:37:47 +00:00
Chris McCarthy
2518a42604
#2248 - Dropped old router_arp.py module. Fixed the ICMP codes as per IANA ( https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml )
2024-02-09 11:03:48 +00:00
Chris McCarthy
0acd9a2938
#2248 - Removed redundant code and added more documentation from PR suggestions
2024-02-09 10:27:22 +00:00
Chris McCarthy
a036160515
#2248 - Enhances the PrimAITE documentation, covering the Node, network interfaces, Session Manager, Software Manager, PCAP service, SysLog functionality, and network devices like Routers, Switches, Computers, and Switch Nodes. It details their roles, workflows, and integration within the simulation, focusing on frame processing, software management, and logging. The documentation also clarifies the frame reception process, including port checks and application-level dispatching, ensuring a thorough understanding of network operations within the simulation
2024-02-08 22:37:21 +00:00
Chris McCarthy
5eed467271
#2248 - synced wth dev
2024-02-08 16:15:57 +00:00
Chris McCarthy
114fb8c077
#2248 - synced wth dev
2024-02-08 15:27:02 +00:00
Chris McCarthy
411f0a320f
#2248 - Final run over all the docstrings after running pre-commit. All tests now working. Updated CHANGELOG.md.
2024-02-08 10:53:30 +00:00
Chris McCarthy
0c96fef3ec
#2248 - All tests (bar the one config file test) now working. Still need to tidy up docstrings and some docs. Almost there
2024-02-07 23:05:34 +00:00
Chris McCarthy
5e25fefa14
#2248 - Further fixes. All router integration tests now passing.
2024-02-07 19:44:40 +00:00
Chris McCarthy
7bbfd564fb
#2248 - Big refactor of base with all Network Interface subclasses created to allow for proper management of ports on devices as it was starting to get messy with the Router. Some routing tests still need fixing as ARP doesn't seem to be working properly
2024-02-05 08:44:10 +00:00
Chris McCarthy
a0253ce6c4
#2248 - TSome further fixess to ARP. Also refactored PCAP to log inbound and outbound frames separately
2024-02-02 17:14:34 +00:00
Chris McCarthy
cb002d644f
#2248 - Tidying up the tests so that they use updated networks
2024-02-02 16:55:43 +00:00
Chris McCarthy
dc5aeede33
#2248 - ICMP now working as a service using the session manager for transmission. Now started to comb through the tests to fix anything up.
2024-02-02 16:20:15 +00:00
Chris McCarthy
87d9d6da04
#2248 - Initial work has been done on moving ICMP into services. still tidying up to be done. Need to fix tests too.
2024-02-02 15:35:02 +00:00
Marek Wolan
4c6ae135cd
Fix typos
2024-02-02 14:48:49 +00:00
Chris McCarthy
1964ab4635
#2248 - Lots more progress. Can now use ARP as a service properly. Also integrated the new ARP into the old ICMP which works. Next step is to more ICMP into services.
2024-02-01 23:05:14 +00:00