diff --git a/package.json b/package.json index 514659a..2ce09d7 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "homepage": "https://github.com/dmblack/nftables_firewall.js#readme", "dependencies": { - "nfqueue": "^0.3.1", - "pcap": "https://github.com/mranney/node_pcap.git" + "nfqueue": "https://github.com/dmblack/node-nfqueue.git", + "pcap": "https://github.com/dmblack/node_pcap.git" } } diff --git a/src/nftables/rules.js b/src/nftables/rules.js index 5af8466..828a02e 100644 --- a/src/nftables/rules.js +++ b/src/nftables/rules.js @@ -33,7 +33,7 @@ function executeReturnHandle (exec, command) { const rules = (exec) => ({ add: (rule) => { - return executeReturnHandle(exec, 'add ' + rule); + return exeute(exec, 'add ' + rule); }, flush: () => { return execute(exec, 'flush ruleset'); @@ -45,7 +45,7 @@ const rules = (exec) => ({ return execute(exec, 'list ruleset'); }, removeByTableSetChainHandle: (table, set, chain, handle) => { - return executeReturnHandle(exec, 'delete rule table ' + table + ' ' + set + ' ' + chain + ' ' + handle) + return exeute(exec, 'delete rule table ' + table + ' ' + set + ' ' + chain + ' ' + handle) } })