Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
base
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lonlone Lee
base
Commits
8ce47aed
Verified
Commit
8ce47aed
authored
Jun 23, 2017
by
Adam Lewenberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix port number conversion to string issue
parent
a32ad6cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
NEWS
NEWS
+3
-0
templates/iptables/rule.erb
templates/iptables/rule.erb
+1
-1
No files found.
NEWS
View file @
8ce47aed
...
...
@@ -2,6 +2,9 @@ release/005.008 (unreleased)
[
ssh
]
Add
$
max_sessions
options
.
[
adamhl
]
[
iptables
]
Ensure
that
port
numbers
are
converted
to
strings
inside
the
rules
erb
file
to
avoid
Ruby
errors
.
[
adamhl
]
release
/
005.007
(
2017
-
06
-
22
)
[
kerberos
]
Add
option
to
completely
override
/
etc
/
krb5
.
conf
using
...
...
templates/iptables/rule.erb
View file @
8ce47aed
<%# Generic iptables rule template used by iptables::rule. -%>
#
<%=
@name
%><%
if
@description
!=
''
then
%>
--
<%=
@description
%><%
end
%>
<%
[
@port
].
flatten
.
each
do
|
pt
|
-%>
<%
p
=
(
pt
!=
''
)
?
'--dport '
+
pt
:
''
-%>
<%
p
=
(
pt
.
to_s
()
!=
''
)
?
'--dport '
+
pt
.
to_s
()
:
''
-%>
<%
[
@source
].
flatten
.
each
do
|
src
|
-%>
<%
[
@protocol
].
flatten
.
each
do
|
pr
|
-%>
<%
syn
=
(
pr
==
'tcp'
)
?
' --syn'
:
''
-%>
...
...
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