Permalink
Browse files

basic readme

  • Loading branch information...
pkrumins committed Apr 1, 2011
0 parents commit 905a508fb372ce664e9c3dab84566db9c615be41
Showing with 39 additions and 0 deletions.
  1. +39 −0 readme.txt
@@ -0,0 +1,39 @@
+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).
+His blog is at http://www.catonmat.net -- good coders code, great reuse.
+
+------------------------------------------------------------------------------
+
+Here is an example usage:
+
+ var iptables = require('iptables');
+
+ iptables.allow({
+ chain : 'INPUT',
+ protocol : tcp,
+ src : '10.1.1.5',
+ port : 34567
+ });
+
+ iptables.deny({
+ chain : 'INPUT',
+ protocol : 'tcp',
+ port : 34567
+ });
+
+This allows connections to port 34567 from 10.1.1.5 and denies connections to
+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
+http://www.catonmat.net
+

0 comments on commit 905a508

Please sign in to comment.