跳转至内容

Alfis (Русский)

来自 ArchWiki
(重定向自 Alfis)

Alfis - 是 ALternative Free Identity System(替代性免费身份系统)。除了域名,未来还计划添加 TLS 证书存储,以及其他一些密钥。例如,用于 PGP

该系统基于区块链技术构建,即相互加密链接的区块系统。任何人都不可能在不改变之后所有区块的情况下,替换掉某个旧区块。

安装

安装 alfisAUR 包。

启动

在启动前,请生成配置文件并为其设置必要的 权限

# alfis -g > /etc/alfis.conf
# chown root:alfis /etc/alfis.conf
# chmod 644 /etc/alfis.conf

然后 启动启用 `alfis.service` 服务。

可以使用 Alfis 的 GUI(密钥管理、域名挖矿)来启动。

# alfis -c /etc/alfis.conf

在执行此命令之前,如果 `alfis.service` 服务正在运行,请先 停止 它。

配置

要配置 alfis,请编辑文件 `/etc/alfis.conf`。

网络配置

用于获取区块链(域名交易列表)的节点。

/etc/alfis.conf
[net]
peers = ["peer-v4.alfis.name:4244", "peer-v6.alfis.name:4244", "peer-ygg.alfis.name:4244"]

Alfis 将监听此地址以连接其他节点。

/etc/alfis.conf
listen = "[::]:4244"

`true` 表示您希望与其他节点交换区块链,否则为 `false`。

/etc/alfis.conf
public = false

仅允许与 Yggdrasil 网络进行连接。

/etc/alfis.conf
yggdrasil_only = false

DNS解析器配置

本地 DNS 服务器的 `地址:端口`(默认 ` "127.0.0.1:53" `)。

/etc/alfis.conf
[dns]
listen = "127.0.0.1:53"

将为 DNS 服务器启动多少个线程。

/etc/alfis.conf
threads = 50

用于解析 Alfis 中不存在的域名区域的 DNS 服务器。

/etc/alfis.conf
forwarders = ["1.1.1.1", "8.8.8.8"]

用于解析 DoH(DNS over HTTPS)域名的 DNS 服务器。

/etc/alfis.conf
bootstraps = ["9.9.9.9:53", "94.140.14.14:53"]

支持 `hosts` 文件。

/etc/alfis.conf
hosts = ["system", "adblock.txt"]

矿工配置

将为挖矿使用的 CPU 线程数(默认:0 - 使用所有可用线程)。

/etc/alfis.conf
[mining]
threads = 0

为矿工进程设置较低的优先级。

/etc/alfis.conf
lower = true

故障排除

错误:DNS服务器启动失败。请检查其端口是否空闲。

请确保配置文件中指定的地址和端口未被其他进程占用。尝试使用 `root` 权限启动 alfis