summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@sg2.noml.ch>2025-12-31 02:43:10 +0800
committerroot <root@sg2.noml.ch>2025-12-31 02:43:10 +0800
commit26de4ce302e61d47f794e1f9880be9e2718dd047 (patch)
tree44e15186cfcfb77803866622c370b54bac09378f
parent1951b063d7ec6d6e8db8a0b5074c73f887749208 (diff)
added future stuff to do
-rw-r--r--README.md18
-rw-r--r--packet-detector/src/.main.rs.swpbin0 -> 16384 bytes
2 files changed, 16 insertions, 2 deletions
diff --git a/README.md b/README.md
index 6a481a4..f646906 100644
--- a/README.md
+++ b/README.md
@@ -3,12 +3,26 @@
3XDP program that prints "hello world" when detecting "hell0123" in packets on enp1s0. 3XDP 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:
7make the design of port lo and port hi better
8figure 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()
13make 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
15make a directory where it reads pem files, checks their validity, and then adds them to the list of allowed certs.
16userspace loop has too much indetation/ nested stuff. make this design better?
17make error checking better? anyhow or something like that
18add script for benchmarking! normal userspace. maybe remove the test.sh? and use rust-native testing? so cargo run test or summat?
19what abotu TC hooks instead of XDP?
20
21#
7 22
8./build.sh # 23./build.sh #
9sudo ./target/release/packet-detector 24sudo ./target/release/packet-detector
10 25
11## Test
12 26
13sudo tcpdump -i enp1s0 -X udp port 9999 27sudo tcpdump -i enp1s0 -X udp port 9999
14echo "hell0123" | nc -u 192.168.122.154 9999 28echo "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