Skip to content

A firewall design in Linux with Netfilter Function. It can manage SMPT, FTP and HTTP Packet.

Notifications You must be signed in to change notification settings

michaelnju/Simple-Firewall-In-Linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

-----This is a simple Firewall written in C with Linux's Netfilter mechanism.----
In this Firewall, user can achieve  ICMP, FTP and HTTP Packet control.

The ctrl_plane.c is designed for the user to manage the firewall function.
You can just compile it with:
	gcc -O2 -Wall ctrl_plane.c -o ctrl_plane;

The mana_plane.c is used to insert or remove the kerneal module designed for the firewall
to realize some fuctions according to ctrl_plane's order;
You can just compile it with
	gcc -O2 -Wall mana_plane.c -o mana_plane
Pay attention here:
In the ctrl_plane.c, you need to change the linux kerneal according to your machine.

The contrl plane communicated with the manage plane with tcp socket.
ftp_ctrl.c, http_ctrl.c and icmp_ctrl.c will be compiled by the ctrl_plane and 
then insert into or remove from the Linux Kerneal in dynamic way.

About

A firewall design in Linux with Netfilter Function. It can manage SMPT, FTP and HTTP Packet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages