Make sure caddy & kubectl are in the wider listening range

This commit is contained in:
Thomas Stromberg 2023-02-10 10:31:19 -05:00
parent a53c5204d4
commit e8d86af906
Failed to extract signature
2 changed files with 17 additions and 9 deletions

View File

@ -163,10 +163,13 @@ WHERE
AND NOT ( AND NOT (
p.name IN ( p.name IN (
'caddy', 'caddy',
'com.docker.backend',
'controller', 'controller',
'docker-proxy', 'docker-proxy',
'hugo', 'hugo',
'kubectl',
'nginx-ingress-c', 'nginx-ingress-c',
'node',
'rootlessport', 'rootlessport',
'webhook' 'webhook'
) )

View File

@ -39,21 +39,17 @@ WHERE
AND lp.address NOT LIKE '127.0.0.%' AND lp.address NOT LIKE '127.0.0.%'
AND lp.address NOT LIKE '172.1%' AND lp.address NOT LIKE '172.1%'
AND lp.address NOT LIKE 'fe80::%' AND lp.address NOT LIKE 'fe80::%'
AND lp.address NOT LIKE '::ffff:127.0.0.%' AND lp.address NOT LIKE '::ffff:127.0.0.%' -- All outgoing UDP (protocol 17) sessions are 'listening'
-- All outgoing UDP (protocol 17) sessions are 'listening'
AND NOT ( AND NOT (
lp.protocol = 17 lp.protocol = 17
AND lp.port > 1024 AND lp.port > 1024
) ) -- Random webservers
-- Random webservers
AND NOT ( AND NOT (
p.uid > 500 p.uid > 500
AND lp.port IN (8000, 8080) AND lp.port IN (8000, 8080)
AND lp.protocol = 6 AND lp.protocol = 6
) ) -- Filter out unmapped raw sockets
-- Filter out unmapped raw sockets AND NOT (p.pid == '') -- Exceptions: the uid is capped at 500 to represent regular users versus system users
AND NOT (p.pid == '')
-- Exceptions: the uid is capped at 500 to represent regular users versus system users
-- port is capped at 49152 to represent transient ports -- port is capped at 49152 to represent transient ports
AND NOT exception_key IN ( AND NOT exception_key IN (
'10011,6,0,launchd,Software Signing', '10011,6,0,launchd,Software Signing',
@ -154,7 +150,16 @@ WHERE
and lp.protocol = 6 and lp.protocol = 6
) )
AND NOT ( AND NOT (
p.name IN ('hugo', 'node', 'com.docker.backend', 'kubectl') p.name IN (
'caddy',
'com.docker.backend',
'controller',
'docker-proxy',
'hugo',
'kubectl',
'node',
'webhook'
)
AND lp.port > 1024 AND lp.port > 1024
and lp.protocol = 6 and lp.protocol = 6
) )