Skip to content

v2.0.0: - updated dependencies

Choose a tag to compare

@brandonlehmann brandonlehmann released this 11 May 20:06
· 7 commits to master since this release
a65a72a

Simple IPTables helper/wrapper

Documentation

https://gibme-npm.github.io/iptables/

Sample Code

import IPTables from '@gibme/iptables';

(async() => {
    const firewall = new IPTables({
        chain: 'INPUT' // dangerous during flush
    });
    
    await firewall.add('8.8.8.8', 'DROP');
    
    await firewall.addInterface('eth2', 'DROP');
    
    await firewall.delete('8.8.8.8');
    
    await firewall.deleteInterface('eth2');
})();