Hello there,
I’ve set up a public vanilla 1.20.1 server on MineOS Turnkey hosted on a Proxmox VM. Everything seems to work great apart from my firewall config. I’ve followed the steps on the wiki for setting up nftables, but something in there is blocking WebUI from fetching the server’s status. I know it’s just my firewall having issues because when I disable nftables, webUI can update the server stats again.
Below is what’s inside my /etc/nftables.conf:
#!/usr/sbin/nft -f
flush ruleset
table inet pkt_filter {
chain inbound {
type filter hook input priority 0; policy drop;
ct state { related, established } accept
tcp dport { ssh } ct state { new } accept
# allow 8443 (mineos webui) through
tcp dport { 8443 } ct state { new } accept
# allow 25565 (VanillaMC server) through
tcp dport { 25565 } ct state { new } accept
#icmp, rate limited
icmp type { echo-request } limit rate 4/second accept
icmpv6 type { echo-request } limit rate 4/second accept
# accept localhost traffic
iif lo accept
# reject trash traffic
ct state { invalid } drop
tcp flags & (fin|syn|rst|ack) != syn ct state { new } drop
# log all remaining packets
ip protocol { tcp } counter log prefix "tcp.in.dropped: "
ip protocol { udp } counter log prefix "udp.in.dropped: "
}
chain outbound {
type filter hook output priority 0; policy drop;
ct state { related, established } accept
#allow dns resolution for the host
udp dport { 53 } accept
# initiate outbound connections http/https
tcp dport { http, https } accept
#log all remaining packets
ip protocol { tcp } counter log prefix "tcp.out.dropped: "
ip protocol { udp } counter log prefix "udp.out.dropped: "
}
}
Note: I’m very new to nftables and networking in general.