Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering can be done by given selection network. #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iercan
Copy link

@iercan iercan commented Oct 30, 2019

This patch allow filter connections by given networks when getting dump.

i.e.

ct = pynetfilter_conntrack.Conntrack()
ft = pynetfilter_conntrack.Filter()
ft.select_networks = [IPy.IP('127.0.0.1')]
    for item in ct.dump_table(filter=ft)[0]:
        item.destroy()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant