firewall

0.0.5 • Public • Published

Firewall

Add or remove system firewall rules using Node.js.

Install

npm install firewall

Usage

var fw = require('firewall');

var opts = { bin: 'C:\\Path\\To\\Program.exe', desc: 'My Program' };
fw.add_rule(opts, function(err, out) {
  if (!err) console.log('Successfully added.');
})

var opts = { bin: 'C:\\Path\\To\\Program.exe', desc: 'My Program' };
fw.remove_rule(opts, function(err, out) {
  if (!err) console.log('Successfully removed.');
})

Author

Written by Tomas Pollak.

Copyright

(c) 2014 Fork, Ltd. MIT Licensed.

Package Sidebar

Install

npm i firewall

Weekly Downloads

15

Version

0.0.5

License

MIT

Last publish

Collaborators

  • tomas