mirror of
https://github.com/webmin/webmin.git
synced 2026-05-06 15:20:29 +01:00
Import https://github.com/swelljoe/nftables into the Webmin tree under nftables/ while preserving upstream history.
19 lines
398 B
Plaintext
19 lines
398 B
Plaintext
table inet filter {
|
|
set trusted_v4 {
|
|
type ipv4_addr;
|
|
flags interval;
|
|
elements = { 192.168.1.0/24, 10.0.0.1 }
|
|
}
|
|
set web_ports {
|
|
type inet_service;
|
|
elements = {
|
|
80,
|
|
443
|
|
}
|
|
}
|
|
chain input {
|
|
type filter hook input priority 0; policy drop;
|
|
ip saddr @trusted_v4 tcp dport @web_ports accept
|
|
}
|
|
}
|