forked from guillaume.emorine/siotp
Actualiser sisr1/tp07/files_firewall/current_ruleset_partie_5.nft
Changement de la mise en forme, sera supprimé si le téléchargement du fichier ruine la mise en forme originale du code.
This commit is contained in:
parent
6676b43753
commit
5374bb2491
@ -27,6 +27,7 @@ table ip ipfilter{
|
|||||||
tcp dport 22 accept
|
tcp dport 22 accept
|
||||||
ip saddr $proxy tcp dport {80, 443} accept
|
ip saddr $proxy tcp dport {80, 443} accept
|
||||||
}
|
}
|
||||||
|
|
||||||
chain system_in {
|
chain system_in {
|
||||||
type filter hook input priority filter; policy drop;
|
type filter hook input priority filter; policy drop;
|
||||||
ct state established, related accept
|
ct state established, related accept
|
||||||
@ -38,6 +39,7 @@ table ip ipfilter{
|
|||||||
tcp dport 22 accept
|
tcp dport 22 accept
|
||||||
ip saddr $proxy tcp dport {80, 443} accept
|
ip saddr $proxy tcp dport {80, 443} accept
|
||||||
}
|
}
|
||||||
|
|
||||||
chain routing {
|
chain routing {
|
||||||
type filter hook forward priority filter; policy drop;
|
type filter hook forward priority filter; policy drop;
|
||||||
ct state established, related accept
|
ct state established, related accept
|
||||||
@ -46,6 +48,7 @@ table ip ipfilter{
|
|||||||
tcp dport {80, 443} ip saddr $lan-ntw accept
|
tcp dport {80, 443} ip saddr $lan-ntw accept
|
||||||
tcp sport {80, 443} ip saddr $lan-ntw accept
|
tcp sport {80, 443} ip saddr $lan-ntw accept
|
||||||
}
|
}
|
||||||
|
|
||||||
chain system_out {
|
chain system_out {
|
||||||
type filter hook output priority filter; policy drop;
|
type filter hook output priority filter; policy drop;
|
||||||
ip daddr $dns accept
|
ip daddr $dns accept
|
||||||
@ -60,6 +63,7 @@ table ip ipfilter{
|
|||||||
tcp sport {80, 443} accept
|
tcp sport {80, 443} accept
|
||||||
tcp sport 22 accept
|
tcp sport 22 accept
|
||||||
}
|
}
|
||||||
|
|
||||||
chain postrouting {
|
chain postrouting {
|
||||||
type filter hook postrouting priority filter; policy drop;
|
type filter hook postrouting priority filter; policy drop;
|
||||||
ct state established, related accept
|
ct state established, related accept
|
||||||
|
Loading…
x
Reference in New Issue
Block a user