summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFĂ©lix Sipma2016-02-29 18:05:24 +0100
committerJoey Hess2016-03-02 15:37:02 -0400
commit91cc571b2d6947acd70717157cd1b24819202997 (patch)
tree8b06005afb99aa740c35aa2ef40ce90f1387c36f
parent140fb642e8ea3492313d3f41ef44930e1974b3f9 (diff)
Firewall: add TCPSyn to Rules
(cherry picked from commit 864bff7743bd3a77f1bfdb37bdeeea49e31e1f52)
-rw-r--r--src/Propellor/Property/Firewall.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Propellor/Property/Firewall.hs b/src/Propellor/Property/Firewall.hs
index bf41cf20..c4d2ee1b 100644
--- a/src/Propellor/Property/Firewall.hs
+++ b/src/Propellor/Property/Firewall.hs
@@ -77,6 +77,7 @@ toIpTableArg (TCPFlags m c) =
, intercalate "," (map show m)
, intercalate "," (map show c)
]
+toIpTableArg TCPSyn = ["--syn"]
toIpTableArg (Source ipwm) =
[ "-s"
, intercalate "," (map fromIPWithMask ipwm)
@@ -216,6 +217,7 @@ data Rules
| ICMPType ICMPTypeMatch
| RateLimit Frequency
| TCPFlags TCPFlagMask TCPFlagComp
+ | TCPSyn
| Source [ IPWithMask ]
| Destination [ IPWithMask ]
| Rules :- Rules -- ^Combine two rules