diff options
| author | root <root@sg2.noml.ch> | 2025-12-31 02:43:10 +0800 |
|---|---|---|
| committer | root <root@sg2.noml.ch> | 2025-12-31 02:43:10 +0800 |
| commit | 26de4ce302e61d47f794e1f9880be9e2718dd047 (patch) | |
| tree | 44e15186cfcfb77803866622c370b54bac09378f | |
| parent | 1951b063d7ec6d6e8db8a0b5074c73f887749208 (diff) | |
added future stuff to do
| -rw-r--r-- | README.md | 18 | ||||
| -rw-r--r-- | packet-detector/src/.main.rs.swp | bin | 0 -> 16384 bytes |
2 files changed, 16 insertions, 2 deletions
| @@ -3,12 +3,26 @@ | |||
| 3 | XDP program that prints "hello world" when detecting "hell0123" in packets on enp1s0. | 3 | XDP program that prints "hello world" when detecting "hell0123" in packets on enp1s0. |
| 4 | # this has been moved to automated testing! in run_test.sh in the root dir! this file is just for documenting the basic stuff of what happens | 4 | # this has been moved to automated testing! in run_test.sh in the root dir! this file is just for documenting the basic stuff of what happens |
| 5 | 5 | ||
| 6 | ## Build & Run | 6 | #todo: |
| 7 | make the design of port lo and port hi better | ||
| 8 | figure out how this structure gets parsed and how to make my own equivalent | ||
| 9 | fn schemes() -> Vec<SignatureScheme> { | ||
| 10 | rustls::crypto::ring::default_provider() | ||
| 11 | .signature_verification_algorithms | ||
| 12 | .supported_schemes() | ||
| 13 | make it such that i dont block the ip immediately, allow for % number of bad requests from that ip address and then block it | ||
| 14 | make this test from a separate ip address instead of localhost! so this feature can be made | ||
| 15 | make a directory where it reads pem files, checks their validity, and then adds them to the list of allowed certs. | ||
| 16 | userspace loop has too much indetation/ nested stuff. make this design better? | ||
| 17 | make error checking better? anyhow or something like that | ||
| 18 | add script for benchmarking! normal userspace. maybe remove the test.sh? and use rust-native testing? so cargo run test or summat? | ||
| 19 | what abotu TC hooks instead of XDP? | ||
| 20 | |||
| 21 | # | ||
| 7 | 22 | ||
| 8 | ./build.sh # | 23 | ./build.sh # |
| 9 | sudo ./target/release/packet-detector | 24 | sudo ./target/release/packet-detector |
| 10 | 25 | ||
| 11 | ## Test | ||
| 12 | 26 | ||
| 13 | sudo tcpdump -i enp1s0 -X udp port 9999 | 27 | sudo tcpdump -i enp1s0 -X udp port 9999 |
| 14 | echo "hell0123" | nc -u 192.168.122.154 9999 | 28 | echo "hell0123" | nc -u 192.168.122.154 9999 |
diff --git a/packet-detector/src/.main.rs.swp b/packet-detector/src/.main.rs.swp new file mode 100644 index 0000000..6037596 --- /dev/null +++ b/packet-detector/src/.main.rs.swp | |||
| Binary files differ | |||
