Protected
_Protected
Adds a jump statement for the specified IP address to the IPTables chain
Protected
_Adds a jump statement for the specified interface to the IPTables chain
Adds a jump statement for the specified IP address to the IPTables chain
Adds a jump statement for the specified interface to the IPTables chain
Deletes the specified IP address from the IPTable chain
Deletes the specified interface from the IPTable chain
Flushes the IPTables chain
Flushes the IPTables chain and clears our knowledge of all known entries
Bumps the keep alive time for the specified IP address in the list of known entries
Adds the listener
function to the end of the listeners array for the event
named eventName
. No checks are made to see if the listener
has already
been added. Multiple calls passing the same combination of eventName
and
listener
will result in the listener
being added, and called, multiple times.
server.on('connection', (stream) => {
console.log('someone connected!');
});
Returns a reference to the EventEmitter
, so that calls can be chained.
By default, event listeners are invoked in the order they are added. The emitter.prependListener()
method can be used as an alternative to add the
event listener to the beginning of the listeners array.
import { EventEmitter } from 'node:events';
const myEE = new EventEmitter();
myEE.on('foo', () => console.log('a'));
myEE.prependListener('foo', () => console.log('b'));
myEE.emit('foo');
// Prints:
// b
// a
The callback function
Protected
rebuildProtected
Rebuilds the IPTables change from the cache
Constructs a new instance of the helper/wrapper