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
- Host: GitHub
- URL: https://github.com/takanaa/kernel-trafic-filter
- Owner: takanaa
- Created: 2025-05-29T15:33:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-06T15:27:18.000Z (11 months ago)
- Last Synced: 2025-08-06T17:27:55.349Z (11 months ago)
- Topics: iptables, linux, linux-kernel, netfilter
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```