Ajout des parties 2 et 3 du tp6

This commit is contained in:
2025-04-10 14:12:01 +02:00
parent a116ae4538
commit 20100a1945
4 changed files with 102 additions and 10 deletions

View File

@@ -0,0 +1,25 @@
define netif = enp0s3
define lanif = enp0s8
define dmzif = enp0s9
table ip ipfilter {
chain prerouting {
type filter hook prerouting priority filter; policy drop;
tcp dport 22 accept
}
chain system_in {
type filter hook input priority filter; policy drop;
tcp dport 22 accept
}
chain routing {
type filter hook forward priority filter; policy drop;
}
chain system_out {
type filter hook output priority filter; policy drop;
tcp sport 22 accept
}
chain postrouting {
type filter hook postrouting priority filter; policy drop;
tcp sport 22 accept
}
}