jsfirewalld
v0.0.4
Published
A nodejs wrapper for firewall-cmd
Downloads
7
Maintainers
Readme
jsfirewalld
TODO: A nodejs wrapper for firewall-cmd command
Installation
npm i jsfirewalld /save
Instruction
const JSFirewalld=require("jsfirewalld");
const fd=new JSFirewalld();
fd.getVersion().then((version)=>{
console.log(version);
})
let zones= await fd.listZones();
console.log(JSON.stringify(zones));
More samples under ./node_modules/jsfirewalld/test/test.js Please run with sudo as firewall-cmd need root privilege
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
History
TODO: Write history
Credits
TODO: Write credits
License
MIT