Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
servers-config
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Sistemisti
servers-config
Commits
cac9bc27
Commit
cac9bc27
authored
Mar 15, 2018
by
Mattia Rizzolo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common/iptables: add some ||true as needed
Signed-off-by:
Mattia Rizzolo
<
mapreri@ubuntu.com
>
parent
a1f5d98e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
roles/common/templates/firewall/firewall.sh
roles/common/templates/firewall/firewall.sh
+3
-3
No files found.
roles/common/templates/firewall/firewall.sh
View file @
cac9bc27
...
...
@@ -50,15 +50,15 @@ for arg; do
done
# Reset the firewall
command
-D
INPUT
-j
input 2>/dev/null
# Remove firewall's input chain
command
-D
INPUT
-j
input 2>/dev/null
||
true
# Remove firewall's input chain
# Flush chains
for
chain
in
"
${
CHAINS
[@]
}
"
;
do
command
-F
"
${
chain
}
"
2>/dev/null
command
-F
"
${
chain
}
"
2>/dev/null
||
true
done
# Delete chains -- must be done after because of references
for
chain
in
"
${
CHAINS
[@]
}
"
;
do
command
-X
"
${
chain
}
"
2>/dev/null
command
-X
"
${
chain
}
"
2>/dev/null
||
true
done
echo
"Existing firewall configuration cleaned up"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment