An open API service indexing awesome lists of open source software.

https://github.com/takanaa/kernel-trafic-filter

Linux kernel module to drop incoming ICMP packets (ignoring loopback). 'Operating systems' coursework
https://github.com/takanaa/kernel-trafic-filter

iptables linux linux-kernel netfilter

Last synced: about 1 month ago
JSON representation

Linux kernel module to drop incoming ICMP packets (ignoring loopback). 'Operating systems' coursework

Awesome Lists containing this project

README

          

# kernel-trafic-filter
1. Run `make` in work directory to build module
2. `make clean` to clear directory
3. Insert module into kernel with:
``` bash
sudo insmod icmp_block.ko
```
3. Remove from kernel with:
``` bash
sudo rmmod icmp_bloc
```
4. Also you can see logs with:
``` bash
dmesg | grep "ICMP"
dmesg | tail -n 20
```

Compare results with iptables
Create rule:
``` bash
sudo iptables -A INPUT -p icmp --icmp-type echo-request -j DROP
```
Remove the rule:
``` bash
sudo iptables -D INPUT 1
```