Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
awall
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
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
alpine
awall
Commits
a12bd0c0
Commit
a12bd0c0
authored
Feb 28, 2014
by
Kaarle Ritvanen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
properly handle stateless ICMP rules
fixes
#2714
parent
9fdf8d72
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
awall/model.lua
awall/model.lua
+7
-3
json/services.json
json/services.json
+2
-2
No files found.
awall/model.lua
View file @
a12bd0c0
--[[
Base data model for Alpine Wall
Copyright (C) 2012-201
3
Kaarle Ritvanen
Copyright (C) 2012-201
4
Kaarle Ritvanen
See LICENSE file for license details
]]
--
...
...
@@ -264,7 +264,7 @@ function Rule:servoptfrags()
elseif
util
.
contains
({
58
,
'ipv6-icmp'
,
'icmpv6'
},
sdef
.
proto
)
then
family
=
'inet6'
oname
=
'icmpv6-type'
elseif
sdef
.
type
then
elseif
sdef
.
type
or
sdef
[
'reverse-type'
]
then
self
:
error
(
'Type specification not valid with '
..
sdef
.
proto
)
end
...
...
@@ -277,7 +277,11 @@ function Rule:servoptfrags()
end
end
if
sdef
.
type
then
opts
=
opts
..
' --'
..
oname
..
' '
..
sdef
.
type
end
if
sdef
.
type
then
opts
=
opts
..
' --'
..
oname
..
' '
..
(
self
.
reverse
and
sdef
[
'reverse-type'
]
or
sdef
.
type
)
end
table.insert
(
res
,
{
family
=
family
,
opts
=
opts
})
end
end
...
...
json/services.json
View file @
a12bd0c0
...
...
@@ -82,8 +82,8 @@
"ospf"
:
{
"proto"
:
"ospf"
},
"pgsql"
:
{
"proto"
:
"tcp"
,
"port"
:
5432
},
"ping"
:
[
{
"proto"
:
"icmp"
,
"type"
:
8
},
{
"proto"
:
"icmpv6"
,
"type"
:
128
}
{
"proto"
:
"icmp"
,
"type"
:
8
,
"reverse-type"
:
0
},
{
"proto"
:
"icmpv6"
,
"type"
:
128
,
"reverse-type"
:
129
}
],
"radius"
:
[
{
"proto"
:
"udp"
,
"port"
:
1812
},
...
...
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