0.2.0 • Published 7 years ago

iptables2 v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Forked version of npm 'iptables' package with the ability to specify a table when listing rules.

This is a node.js module for controlling iptables. It's very basic just for what we need at http://browserling.com.

It was written by Peteris Krumins (peter@catonmat.net, @pkrumins on twitter). His blog is at http://www.catonmat.net -- good coders code, great reuse.


Here is an example usage:

var iptables = require('iptables');

iptables.allow({
    protocol : tcp,
    src : '10.1.1.5',
    dport : 34567,
    sudo : true
});

iptables.drop({
    protocol : 'tcp',
    dport : 34567,
    sudo : true
});

This allows connections to port 34567 from 10.1.1.5 and drops connections from the same port from everyone else.


Ps. I once wrote an article on iptables on my blog, check it out:

http://www.catonmat.net/blog/traffic-accounting-with-iptables

Sincerely, Peteris Krumins (twitter: @pkrumins) http://www.catonmat.net

0.2.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago