class Nftables

Overview

Class to interact with nftables All output is printed to stdout/stderr

Defined in:

nftables.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def finalize #

[View source]
def run_cmd(cmd : String) : Nil #

Execute a nft command, eg. 'list ruleset'


[View source]
def run_file(file : String) : Nil #

Execute a nft script in a file


[View source]