Skip to content

test action configure rules icmp_type

Testy dopasowania icmp_type

Schemat testów

  • ustawienie iptables z logownaiem protokołu icmp
  • pingowanie
  • sprawdzenie logów

test case'y

test z logowanym pakietem

  • reguła iptables z logowanie pakietów icmp typu echo-request
iptables_firewall_rules:
  - table: "filter"
    chain: "OUTPUT"
    default_policy: "ACCEPT"
    rules:
      - protocol: "icmp"
        icmp_type: "echo-request"
        action:
          name: "LOG"
          log_prefix: "test-logs"
  • ping 192.168.0.1
  • sprawdzenie czy log się pojawił

test bez logów

  • reguła iptables z logowanie pakietów icmp typu destination-unreachable
iptables_firewall_rules:
  - table: "filter"
    chain: "OUTPUT"
    default_policy: "ACCEPT"
    rules:
      - protocol: "icmp"
        icmp_type: "destination-unreachable"
        action:
          name: "LOG"
          log_prefix: "test-logs"
  • ping 192.168.0.1
  • sprawdzenie czy log się nie pojawił
Edited by Michal Konstantynowicz
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information