TCPShield

TCPShield

A simple configurable IP allowlist. Made for servers using TCPShield.

1 442 downloads 8 followers

TCPShield

A server-side mod that blocks direct connections to Minecraft servers behind TCPShield.

It downloads TCPShield's IP ranges at startup and closes connections from addresses outside the allow-list before the Minecraft handshake.

Configuration

While made to work with TCPShield, you can use this as a general ip allow-list

source.1=https://tcpshield.com/v4/
source.2=https://tcpshield.com/v4-cf/

allow-insecure-http=false
cache-max-age-hours=168
connect-timeout-ms=5000
request-timeout-ms=10000
minimum-ipv4-prefix=8
minimum-ipv6-prefix=16

Add trusted addresses or CIDRs with allow.* entries:

allow.1=127.0.0.1/32
allow.2=10.20.0.0/16
allow.3=2001:db8:1234::/48

Custom source.* URLs may also be used. Each source must return plain text with one numeric IP or CIDR per line. Remove the default sources if you want a manual-only allow-list.

This mod was made primarily for personal use. It is not a replacement for an actual firewall. Netty channels are as early as a mod can realistically block connections, but you know.. you should probably use an actual firewall when possible.

This project is not endorsed by or affiliated with the TCPShield service. The TCPShield logo and trademark used in the project icon and name are the intellectual property of DatPixel Entertainment, Inc.

No gallery available for this project.

Version Minecraft Loader Download

2.0.0 NeoForge 1.20.5-26.2

2.0.0-neoforge-1.20.5-26.2

1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2
neoforge
Download

2.0.0 NeoForge 1.20.2-1.20.4

2.0.0-neoforge-1.20.2-1.20.4

1.20.2, 1.20.3, 1.20.4
neoforge
Download

2.0.0 (Lex)Forge 1.20.6-26.2

2.0.0-forge-1.20.6-26.2

1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2
forge
Download

2.0.0 (Lex)Forge 1.20-1.20.4

2.0.0-forge-1.20-1.20.4

1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4
forge
Download

2.0.0 Fabric 26.x

2.0.0-fabric-26.x

26.1, 26.1.1, 26.1.2, 26.2
fabric
Download

2.0.0 Fabric 1.20-1.21.11

2.0.0-fabric-1.20-1.21.11

1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9
fabric
Download

TCPShield 1.0

1.0

1.21.1
fabric
Download