diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 18 |
1 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 |
