Basic-Firewall is an educational project, using to help me better understood how to write Kernel Modules. This project is a hook to the NetFilters and manipulates the packets going via the network interfaces. Basic-Firewall supporting only IPV-4.
GPL-3.0 License
Basic-Firewall is an educational project, using to help me better understand how to write Kernel Modules. This project using netfilters hook for manipulate the network packets. Basic-Firewall supporting only IPV-4.
The Basic-Firewall has its own controller (firewallctl), transferring the user request from the user space to the kernel space through a character device.
Run the install.sh script from a terminal with sudo permissions.
Please note, using the firewallctl required sudo premissions.
firewallctl -t [IN/OUT] -a [ADD/REMOVE] -t [IP/PORT] [IP/PORT]
firewallctl -n IN -t IP -a ADD 127.0.0.1
firewallctl -n IN -t PORT -a ADD 1010
firewallctl -n OUT -t IP -a ADD 127.0.0.1
firewallctl -n OUT -t PORT -a ADD 1010
firewallctl -n IN -t IP -a REMOVE 127.0.0.1
firewallctl -n IN -t PORT -a REMOVE 1010
firewallctl -n OUT -t IP -a REMOVE 127.0.0.1
firewallctl -n OUT -t PORT -a REMOVE 1010
firewallctl -i
firewallctl --help
Of course, you can clone & implement other filters.