Remove semicolons
This commit is contained in:
parent
cd36c41b2d
commit
60fa843ceb
|
@ -11,41 +11,41 @@ flush ruleset
|
||||||
|
|
||||||
table inet filter {
|
table inet filter {
|
||||||
chain input {
|
chain input {
|
||||||
type filter hook input priority 0;
|
type filter hook input priority 0
|
||||||
|
|
||||||
# loopback
|
# loopback
|
||||||
iifname lo accept;
|
iifname lo accept
|
||||||
|
|
||||||
# established/related connections
|
# established/related connections
|
||||||
ct state established,related accept;
|
ct state established,related accept
|
||||||
|
|
||||||
# invalid connections
|
# invalid connections
|
||||||
ct state invalid drop;
|
ct state invalid drop
|
||||||
|
|
||||||
# no ping floods
|
# no ping floods
|
||||||
ip protocol icmp icmp type echo-request limit rate 1/second accept;
|
ip protocol icmp icmp type echo-request limit rate 1/second accept
|
||||||
ip6 nexthdr icmpv6 icmpv6 type echo-request limit rate 1/second accept;
|
ip6 nexthdr icmpv6 icmpv6 type echo-request limit rate 1/second accept
|
||||||
|
|
||||||
# HTTP and HTTPS
|
# HTTP and HTTPS
|
||||||
tcp dport 80 ct state new limit rate 10/second accept;
|
tcp dport 80 ct state new limit rate 10/second accept
|
||||||
tcp dport 443 ct state new limit rate 100/second accept;
|
tcp dport 443 ct state new limit rate 100/second accept
|
||||||
|
|
||||||
# SSH from MiA/MiB
|
# SSH from MiA/MiB
|
||||||
tcp dport 22 ip saddr 83.149.165.216/29 ct state new limit rate 2/second accept;
|
tcp dport 22 ip saddr 83.149.165.216/29 ct state new limit rate 2/second accept
|
||||||
|
|
||||||
policy drop;
|
policy drop;
|
||||||
}
|
}
|
||||||
chain forward {
|
chain forward {
|
||||||
type filter hook forward priority 0;
|
type filter hook forward priority 0;
|
||||||
policy drop;
|
policy drop
|
||||||
}
|
}
|
||||||
chain output {
|
chain output {
|
||||||
type filter hook output priority 0;
|
type filter hook output priority 0;
|
||||||
|
|
||||||
# no SSH
|
# no SSH
|
||||||
tcp dport 22 drop;
|
tcp dport 22 drop
|
||||||
|
|
||||||
policy accept;
|
policy accept
|
||||||
}
|
}
|
||||||
}' > /etc/nftables.conf
|
}' > /etc/nftables.conf
|
||||||
systemctl restart nftables
|
systemctl restart nftables
|
||||||
|
|
Loading…
Reference in New Issue