You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
361 B

2 years ago
  1. ## Testing netfilter LKM
  2. 1. create vm: `cd src && vagrant up`
  3. 2. ssh to vm: `vagrant ssh`
  4. 3. compile netfilter lkm: `cd lkm && make all`
  5. 4. insert module in kernel: `./use_mod.sh`
  6. 5. do a test dns lookup: `nslookup yo.com 8.8.8.8`
  7. 6. check logs for new modules prints: `dmesg | grep "client port"`
  8. 7. remove new kernal module and clean: `./remove_mod.sh`