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

Catch when specific tables are not present #30

Open
bvandewalle opened this issue Dec 15, 2016 · 1 comment
Open

Catch when specific tables are not present #30

bvandewalle opened this issue Dec 15, 2016 · 1 comment

Comments

@bvandewalle
Copy link
Contributor

I have been using go-iptables a lot over the last months.
One of the main issues we have is that we use the raw table that is not always present in all distributions.
As such, some API calls fail randomly, and I'm trying to figure out if there is a way in which go-iptables could detect the host capabilities and return the set of tables that could be used ?
Would be happy to submit this as a PR if it is agreed it could be useful.

@squeed
Copy link
Collaborator

squeed commented May 30, 2017

Hm - what happens when you call ListChains on the missing table - is the error code useful?

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

No branches or pull requests

2 participants