Git Product home page Git Product logo

iptables-parse's People

Contributors

hallboav avatar mrash avatar mtrmac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

iptables-parse's Issues

Stringify parsed data

It would be great if the parsed data could be transformed back into a
string in iptables output format so it can be used again with iptables.

Support additional special chars in chain names

Stuart Schneider reported a bug where IPTables::Parse does not handle chain names with dash "-" characters, and he showed that iptables supports many additional chars as well:

iptables -N ' ~!@#$%^&*()+=[]{}|\testing '

iptables -nvL
[...]
Chain ~!@#$%^&*()+=[]{}|\testing (0 references)
pkts bytes target prot opt in out source destination
[...]

Change in ip6tables output makes default_log overlook LOG line

Previously, the output of ip6tables and iptables differed, e.g.,

>$ sudo /usr/sbin/iptables -w -t filter -n -L INPUT
Chain INPUT (policy DROP)
target     prot opt source               destination
LOG        0        ::/0                 ::/0                 LOG flags 2 level 4 prefix "[IPTABLES] "

>$ sudo /usr/sbin/iptables -w -t filter -n -L INPUT
Chain INPUT (policy DROP)
target     prot opt source               destination
LOG        0    --  0.0.0.0/0            0.0.0.0/0            LOG flags 2 level 4 prefix "[IPTABLES] "

However, in Debian 12 (bookworm), ip6tables now prints the --, just like iptables does.

This causes checks like psad --fw-analyze to fail with the standard

You may just need to add a default logging rule to the 'filter' 'INPUT' chain on xenon. For more information, see the file "README" in the psad sources directory or visit:

http://www.cipherdyne.org/psad/docs/fwconfig.html

I'm not sure how widespread this change is, whether it's in other distros, or when it happened (I'm having some trouble navigating through debian's package tracker; this is all new to me), but if it's a sensible change, it would be good for this library to support it, I think.

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.