Giter Site home page Giter Site logo

secgroup / fws Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 7.0 1018 KB

Language-independent Synthesis of Firewall Policies

License: MIT License

Makefile 0.13% Python 41.10% Haskell 53.83% C 0.05% Shell 0.10% Emacs Lisp 0.13% Dockerfile 0.17% JavaScript 0.07% HTML 0.11% Vue 4.30%

fws's People

Contributors

lillo avatar wert310 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fws's Issues

Additional short description in README.md

The README.md starts with "Language-independent Synthesis of Firewall Policies"

Please add one or two sentences what the synthesis of firewall policies is useful for

Identical files but non empy diff

I bumped in to this strange case where FWS marks two (identical) files as equivalent, but generates a non empty diff. I have attached the policy and interfaces file to the issue.

interfaces.txt
mastersolution.txt

FireWall Synthesizer - Language-independent Synthesis of Firewall Policies
FWS> p1 = load_policy(iptables, "mastersolution", "interfaces")
FWS> p2 =  load_policy(iptables, "mastersolution", "interfaces")
FWS> equivalence(p1,p2)
Equivalent.
FWS> diff(p1,p2)
Solving: [##################################################] (   18/   18) 100.00%

+++ mastersolution
--- mastersolution
╭─────┬────────────────────────┬─────────────┬─────────────────────────┬──────────────────┬────────────┬─────────────────┬──────────┬───────╮
│ +/- │ Source IP              │ Source Port │ Destination IP          │ Destination Port │ Source MAC │ Destination MAC │ Protocol │ State │
╞═════╪════════════════════════╪═════════════╪═════════════════════════╪══════════════════╪════════════╪═════════════════╪══════════╪═══════╡
│ +   │ 0.0.0.0/31 \ {0.0.0.1} │ 63690-63784 │ 64.0.0.0/2 \ {64.0.0.1} │ 50621-50691      │ *          │ *               │ tcp      │ NEW   │
├─────┼────────────────────────┼─────────────┼─────────────────────────┼──────────────────┼────────────┼─────────────────┼──────────┼───────┤
│ -   │ 0.0.0.0/31 \ {0.0.0.1} │ 63690-63784 │ 64.0.0.0/2 \ {64.0.0.1} │ 50621-50691      │ *          │ *               │ icmp     │ NEW   │
│     │                        │             │                         │                  │            │                 │ tcp      │       │
╰─────┴────────────────────────┴─────────────┴─────────────────────────┴──────────────────┴────────────┴─────────────────┴──────────┴───────╯

Firewall configs copyright notice

Hey,

cool work, thanks for promoting the real world firewall configs 😁
I tried hard to collect them -- if possible -- with the most permissive license, please try to ShareAlike 😉

TODO: Please add license notes to fws/examples/real-world/ to allow all researches to use this data 😄

Thanks for mirroring! Keep on making firewall configs better 👍

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.