An advanced firewall written in python with psutil
All what you need it's at:
It protects the system safely and precisely by allowing you to block IPs or ports via blacklist.
It is also possible to specify for you a whitelist for IPs and ports.
Added also sockets.