Skip to content

禁用IPv6

在使用我们的服务时,建议您禁用IPv6地址,因为我们的白名单模式暂时不支持识别和添加IPv6。在Ubuntu 22.04系统中,可使用如下方法禁用:

echo -e "net.ipv6.conf.all.disable_ipv6 = 1\nnet.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.conf && sysctl -p

检查禁用是否生效,如输出为IPv4地址,则已经生效:

curl ip.sb

白名单生效

在正式使用RPC服务前你需要测试你的IP白名单是否生效,示例如下:

curl -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getSlot"
  }' \
  https://mainnet-ams.fountainhead.land
{"jsonrpc":"2.0","result":333017180,"id":1}