-
Notifications
You must be signed in to change notification settings - Fork 228
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
Set a default policy for iptables rules #294
Conversation
dspicuzzbbn
commented
Aug 8, 2017
- Fixes default Iptables chain policy should be ACCEPT #252
@@ -19,7 +19,7 @@ | |||
|
|||
private String _name; | |||
|
|||
private ChainPolicy _policy; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency, can you please move this to the constructor, where _name
and _rules
are initialized?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Extremely minor suggestions.
@@ -19,7 +19,7 @@ | |||
|
|||
private String _name; | |||
|
|||
private ChainPolicy _policy; | |||
private ChainPolicy _policy = ChainPolicy.ACCEPT; | |||
|
|||
private List<IptablesRule> _rules; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to test this, can you just delete the ACCEPT
line from the existing testrig? Maybe just delete this line:
:FORWARD ACCEPT [0:0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dhalperi deleting that line does not cause a test failure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind, I was only running the maven tests, I see now that travis does a bit more.
I'll try to get to the changes this week. |
6d7d35e
to
5b531f6
Compare
Thanks @virtuald ! |