Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/p/y/pystack-1.0.0/pystack/kernel_filter.py   pystack(Download)
 
from netfilter.rule import Rule, Match
from netfilter.table import Table, IptablesError
 
 
                jump='DROP')
 
    table = Table('filter')
    table.append_rule('OUTPUT', rule)
 
                jump='DROP')
 
    table = Table('filter')
    try:
        table.delete_rule('OUTPUT', rule)