Skip to content

test action configure rules destination_ip

Testy dopasowania destination_ip

Schemat testów

  • ustawienie iptables z logownaiem destination_ip
  • ping
  • sprawdzenie logów

test case'y

test z logowanym pakietem

  • reguła iptables z logowaniem pakietów:
iptables_firewall_rules:
  - table: "filter"
    chain: "INPUT"
    default_policy: "ACCEPT"
    rules:
      - destination_ip: "127.0.0.2"
        action:
          name: "LOG"
          log_prefix: "test-logs"
  • ping 127.0.0.2
  • sprawdzenie czy log się pojawił

test bez logów

  • reguła iptables z logowaniem pakietów na adresie defaultowym
iptables_firewall_rules:
  - table: "filter"
    chain: "INPUT"
    default_policy: "ACCEPT"
    rules:
      - destination_ip: "127.0.0.2"
        action:
          name: "LOG"
          log_prefix: "test-logs"
  • ping 127.0.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