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

Fix bug in line detection of iptables-restore --test. #48

Merged
merged 1 commit into from
Jul 14, 2014

Conversation

kimtore
Copy link
Contributor

@kimtore kimtore commented Jul 14, 2014

When having errors in iptables rules, I get the following error:

[2014-07-14T21:46:59+02:00] ERROR: ruby_block[test-iptables] (simple_iptables::default line 65) had an error: RuntimeError: iptables-restore exited with code 1 while testing new rules
STDOUT:

STDERR:
iptables-restore: line 31 failed

It doesn't show what rule failed, and the file is deleted afterwards. I am running on Debian 7.

This commit solves my problem.

Best regards,
Kim

@rtkrruvinskiy
Copy link
Contributor

Thanks for the fix!

rtkrruvinskiy added a commit that referenced this pull request Jul 14, 2014
Fix bug in line detection of iptables-restore --test.
@rtkrruvinskiy rtkrruvinskiy merged commit 9362068 into rtkwlf:master Jul 14, 2014
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.

2 participants