项目作者: e04a3p76x18

项目描述 :
linux firewall gtk
高级语言: C
项目地址: git://github.com/e04a3p76x18/sedna.git
创建时间: 2017-12-08T15:26:51Z
项目社区:https://github.com/e04a3p76x18/sedna

开源协议:GNU General Public License v3.0

下载


sedna

Linux c gtk packet filtering firewall

currently support filtering ip4 level tcp and udp packets

Features

application level firewall for blocking packets at network level includes support for filtering packets by protocol, process, domain, ip, port.

control all outgoing and incoming connections when a process attempts to open a network connection the application will display a connection alert allowing the user to allow or block the request.

uses netfilter to get queued packets from Linux kernel




example rule - firefox process always block all tcp outgoing connections to api.googleapi.com on all port numbers

Build

requirements

libnetfilter_queue

libnetfilter_conntrack

gtk3

download all files

compile code

  1. make

For the application to receive queued tcp or udp packets from the kernel iptables rules need to be added for example to control incoming and outgoing udp packets from userspace application add the following iptables rules

  1. iptables -I OUTPUT -p udp -j NFQUEUE -v
  1. iptables -I INPUT -p udp -j NFQUEUE -v

run application - requires admin permissions to run

  1. ./sedna