Module: Aoandon::DynamicRule::Less1024
- Defined in:
- lib/aoandon/dynamic_rule/less1024.rb
Constant Summary collapse
- MESSAGE =
'Port numbers < 1024'- PROTO_TCP =
6- PROTO_UDP =
17- WELL_KNOWN_PORTS =
(0..1023)
Class Method Summary collapse
Class Method Details
.control?(packet) ⇒ Boolean
9 10 11 12 |
# File 'lib/aoandon/dynamic_rule/less1024.rb', line 9 def self.control?(packet) (tcp?(packet) || (udp?(packet) && different_ports?(packet.sport, packet.dport))) && less_1024?(packet.sport) && less_1024?(packet.dport) end |
.logging?(packet) ⇒ Boolean
14 15 16 |
# File 'lib/aoandon/dynamic_rule/less1024.rb', line 14 def self.logging?(packet) true end |