Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants