112-hackathon/README.md
William J. Tolley 9a4b3d9270 public repo
2022-01-01 08:15:35 -07:00

15 lines
361 B
Markdown

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