action :accept
source "net"
dest "fw"
- proto "tcp:syn"
+ proto "tcp"
dest_ports "domain"
end
action :accept
source "net"
dest "fw"
- proto "tcp:syn"
+ proto "tcp"
dest_ports port
source_ports "1024-65535"
end
family :inet
source "net:#{smarthosts_inet.sort.join(',')}"
dest "fw"
- proto "tcp:syn"
+ proto "tcp"
dest_ports port
source_ports "1024-65535"
end
family :inet6
source "net:#{smarthosts_inet6.sort.join(',')}"
dest "fw"
- proto "tcp:syn"
+ proto "tcp"
dest_ports port
source_ports "1024-65535"
end
action :reject
source "fw"
dest "net"
- proto "tcp:syn"
+ proto "tcp"
dest_ports "smtp"
end
end
action :accept
source "net"
dest "fw"
- proto "tcp:syn"
+ proto "tcp"
dest_ports "domain"
end
family interface[:family]
source "net:#{interface[:address]}"
dest "fw"
- proto "tcp:syn"
+ proto "tcp"
dest_ports "5043"
source_ports "1024-65535"
end
family interface[:family]
source "net:#{interface[:address]}"
dest "fw"
- proto "tcp:syn"
+ proto "tcp"
dest_ports "5044"
source_ports "1024-65535"
end
family interface[:family]
source "net:#{interface[:address]}"
dest "fw"
- proto "tcp:syn"
+ proto "tcp"
dest_ports "5043"
source_ports "1024-65535"
end
family interface[:family]
source "net:#{interface[:address]}"
dest "fw"
- proto "tcp:syn"
+ proto "tcp"
dest_ports "5044"
source_ports "1024-65535"
end
family interface[:family]
source "net:#{interface[:address]}"
dest "fw"
- proto "tcp:syn"
+ proto "tcp"
dest_ports "munin"
source_ports "1024-65535"
end
action :accept
source "net"
dest "fw"
- proto "tcp:syn"
+ proto "tcp"
dest_ports %w[http https]
rate_limit node[:networking][:firewall][:http_rate_limit]
connection_limit node[:networking][:firewall][:http_connection_limit]
when "inet6" then "ip6"
end
- proto = case new_resource.proto
- when "udp" then "udp"
- when "tcp", "tcp:syn" then "tcp"
- end
+ proto = new_resource.proto
if new_resource.source_ports
rule << "#{proto} sport { #{nftables_source_ports} }"
rule << "#{ip} daddr { #{addresses} }"
end
- if new_resource.proto == "tcp:syn"
- rule << "ct state new"
- end
+ rule << "ct state new" if new_resource.proto == "tcp"
if new_resource.connection_limit != "-"
set = "connlimit-#{new_resource.rule}-#{ip}"
action :accept
source "net"
dest "fw"
- proto "tcp:syn"
+ proto "tcp"
dest_ports node[:openssh][:port]
end
action :accept
source "osm"
dest "fw"
- proto "tcp:syn"
+ proto "tcp"
dest_ports new_resource.port
only_if { node[:prometheus][:mode] == "external" }
end
action :accept
source "net"
dest "fw"
- proto "tcp:syn"
+ proto "tcp"
dest_ports "rsync"
source_ports "1024-65535"
end