Repository navigation
Releases
v0.6.8.8
中文
站点域名任意一段通配(#118)
*可写在任意一段:audiobook.*.example.com(中间整段匹配一段)、audiobook.*(末尾整段匹配一段或多段)、a.api-*.example.com(段内匹配)。每个域名仍只能有一个*,{1}取到匹配部分;192.168.1.*、10.*这类 IP 形式会被拒绝。audiobook.*也会匹配别人注册的域名,第三方登录回跳、带凭据跨域与敲门探测不把它当作本站点域名;*不在首段的站点按实际访问域名各自匹配证书。- 网络拓扑的打码与别名覆盖这类域名。
导航面板
- 分组可设为登录后可见(分组标题的锁形按钮,
authGroups),整组链接只对已登录访客显示。 - 分组改名,可合并到已有分组,登录后可见设置跟随(#122);手机上分组标题不再被挤压。
- 链接图标新增「图标网站」菜单与「去除留白」按钮(#120)。
概览获取公网 IP
- 没有 DDNS 或只覆盖一种地址族时,管理员可在概览点「获取公网 IP」;结果只存内存,自检找到的地址也会记录。新增
POST/GET /api/system/public-ip。
上下行方向统一(#117)
- 全站按 Gately 视角:上行为 Gately 发出,下行为收到。拓扑、流量曲线、实时连接、端口转发、协议分流、STUN 一致;接口字段不变。
修复
- 反向代理原样转发查询串,含分号或非法百分号转义的参数不再丢失(#116)。
- 访客用 HTTPS 时,后端指向同主机同端口的
http://跳转改写为https://(修复 oci-start 登录后跳回 http)。 - 概览去掉圆环发光与主机图标投影(#121)。
English
Wildcards in any label (#118)
*can sit in any label:audiobook.*.example.com(a whole middle label matches one label),audiobook.*(a whole last label matches one or more trailing labels) anda.api-*.example.com(inside a label). Still one*per domain, with{1}capturing the matched part; IP-like forms such as192.168.1.*and10.*are rejected.- Because
audiobook.*also matches names anyone can register, third-party sign-in return addresses, credentialed CORS and knock-grant probes do not treat it as the site's own domain; sites whose*is not in the first label have certificates matched per visited name. - Topology masking and aliases cover these domains.
Navigation panels
- A link group can be made visible only after sign-in (lock button on the group header,
authGroups). - Link groups can be renamed or merged into an existing group, keeping the sign-in visibility (#122); group headers no longer squeeze on phones.
- The link icon field has an "Icon sites" menu and a "Trim margins" button (#120).
Public IP on the overview
- Without DDNS (or with DDNS covering one family), administrators can click "Look up public IP" on the overview; the result is kept in memory and the self-check stores what it finds. New
POST/GET /api/system/public-ip.
Consistent traffic direction (#117)
- Up is what Gately sends and down is what it receives, everywhere: topology, traffic charts, live connections, port forwarding, protocol routing and STUN. API fields are unchanged.
Fixes
- Reverse proxy forwards the query string unchanged; parameters with semicolons or invalid percent escapes are no longer dropped (#116).
- When the visitor uses HTTPS, a backend redirect to
http://on the same host and port is rewritten tohttps://(fixes oci-start returning to http after sign-in). - The overview rings and host icon no longer have glow or shadow (#121).
v0.6.8.6
中文
网络拓扑上行速率与统计时间段(#113)
- 站点、后端和监听级动作新增上行速率:站点统计访客发来的字节(请求体与 WebSocket 等升级后的数据),后端统计转发给它的请求体字节。
- 详情面板「60 秒均值」换成「上行」,新增「统计时间段」下拉,QPS、上行、下行可选最近 1/5/10/30/60 秒(默认 10 秒);每秒流量曲线分上下行两条线。
GET /api/webservice/topology新增window=1..60参数与upBps字段,qps60保留。
SMTP 跳过证书校验(#115)
- SMTP 渠道在 STARTTLS / SSL/TLS 下可开启「跳过证书校验」,用于自签名或证书与服务器地址不符的自建邮件服务,默认关闭。
Windows 概览资源信息
- Windows 上的概览显示 CPU、内存与页面文件、磁盘、运行时长、系统版本、网络流量与速率,以及 Gately 和托管程序的资源占用。
修复
- 概览:健康检查失败但仍在运行的容器计入「运行中」并单独显示「健康检查失败」数量,「异常」只统计重启中、dead 和非 0 退出的容器(#114)。
- Docker:健康检查失败的容器显示警告徽标,容器列表新增「异常」筛选(#114)。
- 网络拓扑:监听卡片折叠按钮的箭头方向与布局方向一致(#113)。
English
Topology upload rate and averaging period (#113)
- Sites, backends and listener actions report an upload rate: for sites the bytes visitors send (request bodies and data after a WebSocket or other upgrade), for backends the request body bytes forwarded to them.
- The "60 s average" card is replaced by Up, and a new "Averaging period" select switches QPS, Up and Down between the last 1/5/10/30/60 seconds (default 10); the per-second chart draws upload and download as two lines.
GET /api/webservice/topologyacceptswindow=1..60and returnsupBps;qps60is kept.
SMTP certificate verification (#115)
- SMTP channels can enable "Skip certificate verification" for STARTTLS / SSL/TLS, for self-hosted mail servers with a self-signed certificate or one that does not match the server address. Off by default.
Windows overview
- On Windows the overview shows CPU, memory and page file, disk, uptime, Windows edition, network traffic and rates, and the resource usage of Gately and its managed processes.
Fixes
- Overview: a running container whose health check fails is counted as running with its own "Unhealthy" count; "Abnormal" only counts restarting, dead and non-zero exited containers (#114).
- Docker: unhealthy containers show a warning badge, and the container list has a "Problem" filter (#114).
- Network topology: the fold arrow on listener cards follows the layout direction (#113).
v0.6.8.5
中文
访客 IP 归属地(#107)
- 管理后台所有列出 IP 的位置都显示导入的 GeoIP 数据库中的归属地:访客审计、站点统计来源 IP、实时连接、Web 服务与入侵防护封禁列表、模块日志、网络拓扑活动 IP(打码开启时隐藏)、操作审计、端口敲门放行地址。
- GeoIP 数据库可上传或下载
.mmdb.gz与 MaxMind 的.tar.gz,解压后上限 256 MB。
多个单点登录域(#108)
- 站点分布在多个父域名下时可配置多个单点登录域,每个域及其子域共享该域内的登录与 Passkey;会话记录所属域,旧版本会话继续可用,旧的
ssoDomain自动并入列表。
网页认证登录页样式
- 登录、改密码、Passkey 页面(含 OIDC 签发方登录页)内置 9 种样式:锁屏、分栏、极简、终端、信笺、粗野主义、极光、像素、蓝图。
修复
- 飞牛网关:通过 HTTP 地址打开 Gately 时,保存设置不再被「拒绝跨源请求」拦下。
- Docker:任务浮条不再挡住最后一个容器的操作按钮(#110)。
English
IP location (#107)
- Wherever the admin UI lists IP addresses it shows their location from the imported GeoIP database: visitor audit, site statistics, live connections, ban lists, module logs, network topology (hidden while masking is on), operation audit and port knocking allowed addresses.
- The GeoIP database can be uploaded or downloaded as
.mmdb.gzor MaxMind's.tar.gz; the decompressed limit is 256 MB.
Several single sign-on domains (#108)
- For sites under more than one parent domain, several SSO domains can be configured; each domain and its subdomains share the sign-in and Passkeys within it. Sessions record their domain, earlier sessions keep working, and the old
ssoDomainis merged into the list.
Sign-in page styles
- The sign-in, password change and Passkey pages (including the OIDC issuer's sign-in page) have 9 built-in styles: Lock screen, Split, Minimal, Terminal, Letter, Brutalist, Aurora, Pixel and Blueprint.
Fixes
- fnOS gateway: saving settings works again when Gately is opened over plain HTTP (it was rejected as a cross-origin request).
- Docker: the floating task panel no longer covers the last container's action buttons (#110).
v0.6.8.4
Security / 安全修复
本版本修复了以下影响 v0.6.8.2 及更早版本的安全问题。This release fixes the following issue affecting v0.6.8.2 and earlier.
- 通知渠道密钥可能出现在投递错误中(低):Telegram Bot Token、Bark 设备 Key、Server酱 SendKey 等放在请求地址中,连接失败时错误信息带出完整地址,写入通知模块日志与「最近发送」记录,只读账号和只有通知读权限的 API 令牌也能看到。现在错误信息中的渠道密钥替换为
***。「最近发送」只在内存中,升级重启即清除;运行日志中可能留有旧记录,推送失败过的渠道建议更换密钥(GHSA-p368-wcp9-rv4q)。 / Notification channel secrets could appear in delivery errors (low): Telegram bot tokens, Bark device keys, ServerChan SendKeys and similar secrets are part of the request address, and a failed connection put the full address into the notification log and Recent deliveries, readable by read-only accounts and API tokens with notification read access. Channel secrets in error messages are now replaced with***. Recent deliveries are kept in memory only and are cleared by the upgrade restart; run logs may still contain old entries, so consider rotating the secrets of channels that failed to deliver (GHSA-p368-wcp9-rv4q).
中文
改配置不再把自己关在门外
- 保存后确认,超时自动回滚:在管理后台保存端口转发、协议分流、Web 服务或全局设置后,页面经一条新连接确认后台仍能访问;确认不了时默认 90 秒后自动恢复改动前的配置,期间弹出倒计时可立即回滚,重启 3 次仍未确认也会回滚。「系统设置 › 访问控制」可关闭或调整等待秒数(30–600);回滚发出「配置变更」通知。脚本和 API 令牌的保存不受影响。
- 保存前提醒访问路径:追溯当前访问经过的端口转发、协议分流与 Web 站点,改动会影响这条路径时(改端口、停用、删除、换到本机无法监听的地址等)先说明原因并高亮受影响的一跳;「系统设置 › 访问控制」可查看当前访问路径。
- 批量修改一起生效:「暂存,稍后一起生效」,横幅列出暂存的规则与监听,「全部生效」后整批确认、整批回滚,也可「放弃修改」;全部生效前先列出无法启动的监听。
- 命令行回滚:
gately rollback列出待确认的改动与最近 15 次配置保存,按编号撤销,或用-last、-pending、-config配合-version;Gately 运行中 2 秒内恢复并重启,未运行时直接改写配置文件。 - 删除配置文件前先存入配置历史,删除也能撤销。
通知:失败重试与补推
- 推送失败按 10、30、60 秒重试(默认 3 次,0–10);仍失败的消息进入补推队列,渠道恢复后按时间顺序补发,重启后继续(默认保留 24 小时,0–168,0 为关闭;每个渠道最多 100 条)。渠道已有积压时新消息只尝试一次、失败即排在积压之后。
- 「最近发送」显示「等待补推」「已补推」与尝试次数,横幅按渠道统计待补推数量并可清空。
证书:飞牛系统证书(#105)
- 证书来源新增「飞牛系统证书」:选择飞牛「设置 → 安全性 → 证书」中的域名,每 30 分钟跟随飞牛续期读取最新证书(有完整链时用完整链),变化后自动加载与部署。fpk 直接可用;Docker 需按原路径只读挂载
/usr/trim/etc/network_cert_all.conf与/usr/trim/var/trim_connect/ssls,并以 root 运行。
存储占用
- 「系统设置 › 网络与运行」新增存储占用:配置目录所在分区容量、配置目录总大小,以及运行日志、访客审计、配置历史、备份、证书、托管程序、通知补推队列、File Browser 数据等分类占用与路径。
修复
- 入侵防护:管理后台端口在模块启动前登记为开放端口,诱饵端口范围包含管理端口时不再因诱饵监听抢先占用而导致每次重启都退出;启动模块期间不设置诱饵端口;frps、EasyTier、FTP 被动端口等登记的端口暂未监听时也不作诱饵;诱饵端口随端口变化重新计算;临时 HTTP-01 监听不被诱饵拦下。
- Web 服务:站点后端是本实例另一个 Web 监听(443 站点 → 本机 444 监听 → 管理后台)时原样转发后台登录 Cookie,不再登录后立即 401。
升级提示
- Docker 拉取新镜像后重建容器;OpenWrt 覆盖安装新的
.apk/.ipk;飞牛在应用中心手动安装新版.fpk;其他方式可在「系统设置」中在线升级。
English
Config changes that cannot lock you out
- Confirm after saving, automatic rollback: after saving port forwarding, protocol routing, web services or global settings in the admin UI, the page confirms over a new connection that the admin UI is still reachable; if it cannot, Gately restores the previous configuration after 90 seconds by default. A countdown dialog offers Roll back now, and 3 starts without a confirmation also roll back. Turn it off or set the wait (30–600 s) under Settings › Access Control; a rollback sends a Config changes notification. Saves from scripts and API tokens are not affected.
- Access path warning before saving: Gately traces the port forwarding rules, protocol routes and web sites your current request went through, and before a change that affects that path (port change, disabling, deleting, a listen address this machine cannot use) explains why and highlights the affected hop. Settings › Access Control shows the current access path.
- Batch changes: Stage, apply together later; a banner lists the held rules and listeners, Apply all confirms and rolls back the whole batch, or Discard changes. Listeners that would fail to start are listed before applying.
- CLI rollback:
gately rollbacklists the pending change and the 15 latest config saves and undoes one by number, or with-last,-pending,-configplus-version. A running Gately restores and restarts within 2 seconds; otherwise the config files are rewritten directly. - Deleting a config file keeps its last content in config history, so deletions can be undone.
Notifications: retries and resending
- Failed pushes are retried after 10, 30 and 60 seconds (3 times by default, 0–10); messages that still fail are queued and resent in order once the channel recovers, also after a restart (24 hours by default, 0–168, 0 turns it off; at most 100 per channel). While a channel has a backlog, new messages are tried once and queued behind it.
- Recent deliveries show Pending resend, Resent and the number of attempts; a banner counts queued messages per channel with Clear.
Certificates: fnOS system certificates (#105)
- New certificate source fnOS system certificate: pick a domain from fnOS Settings → Security → Certificates; Gately follows fnOS renewals every 30 minutes (full chain when available) and reloads and deploys the certificate when it changes. Works out of the box in the fpk; with Docker, mount
/usr/trim/etc/network_cert_all.confand/usr/trim/var/trim_connect/sslsread-only at the same paths and run as root.
Storage usage
- Settings › Network & Runtime shows storage usage: the capacity of the partition holding the config directory, the config directory size, and usage by category (run logs, visitor audit, config history, backups, certificates, managed programs, notification resend queue, File Browser data and more) with their paths.
Fixes
- Intrusion protection: the admin UI ports are registered as open before modules start, so a trap port range including the admin port no longer lets Gately's own trap listener take it and make Gately exit on every restart; no trap ports while modules start; ports registered by frps, EasyTier, the FTP passive range and others are never traps even while not listening; trap ports follow port changes; the temporary HTTP-01 listener is no longer caught by a trap.
- Web services: a site whose backend is another web listener of the same instance (443 site → local 444 listener → admin UI) passes the admin cookies on, so signing in through it no longer returns 401.
Upgrading
- Docker: pull the new image and recreate the container; OpenWrt: install the new
.apk/.ipkover the old one; fnOS: install the new.fpkfrom the App Center; other deployments can upgrade online from Settings.
v0.6.8.2
中文
端口敲门:每人一份密钥
- 身份:规则可添加身份,每个身份(人或设备)有自己的加密密钥与 HMAC 密钥,可单独停用、重新生成,每条规则最多 64 个;日志、通知与放行记录写明敲门的身份,停用或换掉某人的密钥只撤销这个人的放行。
- 停用共享密钥、一次只放行一个地址(同一身份从新地址敲门时撤销旧地址的放行)。
- 伪造报文校验复用 HMAC 对象,64 个身份时开销约减半;来源表满时淘汰最久未用的网段。
端口转发 / 协议分流
- 不受单来源上限的来源:全局设置新增 IP / CIDR 列表,公网中转或前置代理让所有访客显示为同一来源时不再被单来源最大连接数卡住;超限日志写明被计数的来源与上限。
- 修复:填写目标地址后失去焦点仍提示
targetAddresses为必填。
Web 服务
- 反代到另一台 Gately:v0.6.8 起会剥掉所有
gately_token/gately_entry/gately_login_nonce,后端 Gately 登录后立即 401、安全入口一直 404、经外层第三方登录提示浏览器不一致。现在只剥本实例签发且仍有效的 Cookie。 - 开启「转发 Gately 登录 Cookie」时转发本实例校验不过的
gately_admin,双层部署时内层的「后台登录免认证」可生效。 - 修复 421:v0.6.8.1 起,前置反向代理以 HTTP/2、后端主机名作 SNI 连接时,落到默认站点的请求返回 421。现在只有 SNI 是本监听某站点的域名时才返回 421。
- 同一 IP 并发的正确登录不再被当成失败过多;错误密码上限仍为 10 次,排队超过 5 秒或队列满时返回 429。
- 「后台登录免认证」去掉 v0.6.8.1 的跨父域握手(后台入口地址),重新只在单点登录域内生效。
导航面板(#104)
- 链接拖动排序(鼠标与触摸、自动滚动、Esc 取消、选择模式多选移动);面板列表分组、搜索、紧凑视图与排序批量。
性能
- 同一监听下相同后端与连接设置的站点共用后端连接池,反代不再复制每个请求;站点分钟统计按小时块分配,1000 站点峰值内存 463 MiB → 225 MiB。
- GC 百分比为 0 时,内存不少于 1 GiB 默认 200,否则 100;设置了
GOGC环境变量时沿用它。 - 入侵防护跟随日志改为写入即读(Linux inotify),封禁写防火墙 250 ms 合批。
其他
- 手写配置缺字段时,Web 服务、DDNS、STUN、SSL、WAF、入侵防护、网络唤醒、通知、File Browser、Web 终端、性能监控加载时补上默认值。
- Webhook 变量列表补上
{server};官网新增教程与性能对比页。
升级提示
- 用过 v0.6.8.1「后台入口地址」的,单点登录域以外的站点恢复为正常站点认证。
- 反代到另一台 Gately 的 Cookie 问题只需升级外层。
更新说明:https://gately.cn/news/v0.6.8.2
English
Port knocking: keys per person
- Identities: a rule can have identities, each person or device with its own encryption and HMAC keys that can be disabled or regenerated on their own, up to 64 per rule. Logs, notifications and grants name the identity that knocked, and disabling or replacing someone's keys revokes only their grants.
- Disable shared keys and one address at a time (a knock from a new address revokes the identity's grant on the old one).
- Forged packets are checked with reused HMAC objects, about half the cost with 64 identities; a full source table evicts the idlest network.
Port forwarding / Protocol routing
- Sources without per-source limit: an IP / CIDR list in the global settings, for a public relay or front proxy that makes every visitor appear as one source; the per-source limit warning names the counted source and the limit.
- Fix: the target address field kept saying
targetAddressesis required after it was filled in.
Web services
- Proxying to another Gately: since v0.6.8 every
gately_token,gately_entryandgately_login_noncewas stripped, so the backend Gately answered 401 right after sign-in, its safe entry kept answering 404 and third-party sign-in through the outer site failed with a browser mismatch. Only cookies this instance issued and still accepts are stripped now. - With "Forward Gately sign-in cookies", a
gately_adminthis instance cannot verify is forwarded, so the inner Gately's admin sign-in bypass works in a two-layer setup. - 421 fix: since v0.6.8.1 a front reverse proxy connecting over HTTP/2 with the backend host as SNI got 421 for requests served by the default site. 421 is now only returned when the SNI is a domain this listener has a site for.
- Concurrent correct sign-ins from one IP are no longer rejected as too many failures; the limit of 10 wrong passwords stays, and a check that waits over 5 seconds or finds the queue full gets 429.
- The admin sign-in bypass drops the cross-parent-domain handshake of v0.6.8.1 (admin entry URL) and works only under the single sign-on domain again.
Navigation panels (#104)
- Drag links to reorder (mouse and touch, auto-scroll, Esc to cancel, move several in Select mode); the panel list has groups, search, a compact view and Sort & batch.
Performance
- Sites on one listener with the same backend and connection settings share a backend connection pool, and the proxy no longer copies each request; per-site minute statistics use hourly blocks, 1000-site peak memory 463 MiB → 225 MiB.
- With the GC percent setting at 0, the default is 200 with at least 1 GiB of memory and 100 otherwise; a
GOGCenvironment variable is kept. - Intrusion prevention reads followed logs as they are written (inotify on Linux), and ban list writes to the firewall are batched every 250 ms.
Other
- Hand-edited configs with missing fields get the same defaults as saving in Web services, DDNS, STUN, SSL, WAF, intrusion prevention, Wake-on-LAN, notifications, File Browser, Web Terminal and performance monitoring.
{server}in the webhook variable list; the website adds tutorials and a benchmarks page.
Upgrade notes
- If you used the v0.6.8.1 admin entry URL, sites outside the single sign-on domain go back to normal site authentication.
- The cookie fix for proxying to another Gately only needs the outer instance upgraded.
Release notes: https://gately.cn/en/news/v0.6.8.2
v0.6.8.1
中文
Web 服务
- 添加或编辑站点失败:v0.6.8 在 Web 服务页添加、编辑、复制或启停站点以及编辑 HTTPS 监听时,提示
siteCerts格式不对而保存失败。界面提交前现在会去掉这个只读字段;保存接口也会忽略列表接口自己输出的只读字段(运行状态、统计、证书匹配等),升级后仍开着的旧页面和「先读取再整体提交」的脚本同样能保存,其他未知字段照旧拒绝。 - 复用连接时的「站点不存在」:多个域名解析到同一 IP 且证书都能覆盖(如通配证书)时,浏览器会把新域名的请求放进已打开的 HTTP/2 连接;前面有按 SNI 分流、把部分域名转给另一台 Gately 时,访问会显示「站点不存在」或落到那台的默认站点。现在 HTTP/2、HTTP/3 请求的域名与 TLS SNI 不一致且本监听没有该域名的站点时返回
421 Misdirected Request,浏览器会新建连接自动重试;HTTP/1.1 与不带 SNI 的请求照旧。
导航面板(#100、#101)
- 链接尺寸:1×1、1×2、2×2(行 × 列);未设置尺寸的链接保持原样(卡片样式 1×2,图标样式 1×1);图标样式可关闭图标下的名称;Sun-Panel 2.x 导入保留 1x2 / 2x2 卡片。
- 多地址链接直接打开:可设为单击打开当前网络下的默认地址,右键、菜单键或长按再显示地址选择(默认仍为单击显示选择)。
- 获取链接图标:编辑链接时从局域网地址、主地址与其他访问方式读取网站图标(优先 SVG 与 128–256 px,回退
/favicon.ico)。 - 页面开关:语言菜单、主题按钮、仅登录可见链接的锁形标记可单独开关;背景设置带实时预览。
- 修复:图标样式 2×2 链接悬停时来回跳动;1×2 宽块悬停时底边闪动。
升级提示
- 「复用连接」问题需要 SNI 分流两端的 Gately 都升级:请求落在哪台,哪台就要返回 421。
- 导航面板访客页的语言菜单改为默认关闭,按浏览器语言显示,之前选过的语言 Cookie 不再生效;需要时在面板编辑的「页面设置」页签打开「语言切换」。
更新说明:https://gately.cn/news/v0.6.8.1
English
Web services
- Adding or editing a site failed: in v0.6.8, adding, editing, copying or toggling a site and editing an HTTPS listener on the Web services page failed with a
siteCertsformat error. The UI now drops this read-only field before saving, and the save API ignores the read-only fields that the list API itself returns (running state, stats, certificate matches and so on), so pages still open from before the upgrade and scripts that read an item and send it back also work; other unknown fields are still rejected. - "Site not found" on reused connections: when several domains resolve to the same IP and one certificate covers them (a wildcard, for example), browsers send requests for a new domain over an HTTP/2 connection that is already open. If an SNI protocol router in front sends some of those domains to another Gately, the request lands there and shows "Site not found" or that instance's default site. HTTP/2 and HTTP/3 requests whose Host differs from the TLS SNI and has no site on the listener now get
421 Misdirected Request, and the browser retries on a new connection. HTTP/1.1 and requests without SNI are handled as before.
Navigation panels (#100, #101)
- Link sizes: 1×1, 1×2 and 2×2 (rows × columns); links without a size look as before (1×2 in the card style, 1×1 in the icon style); names under icons can be hidden; Sun-Panel 2.x imports keep 1x2 / 2x2 cards.
- Open multi-address links directly: a click can open the default address for the current network, with the address chooser on right-click, the context menu key or a long press (the default is still the chooser on click).
- Fetch link icons: the link dialog reads the site's icon from the LAN address, the main address and other ways to open (SVG and 128–256 px preferred,
/favicon.icoas fallback). - Page switches: the language menu, the theme button and the lock mark on sign-in-only links can each be turned off; the background settings show a live preview.
- Fixes: 2×2 links in the icon style jumped back and forth on hover; 1×2 wide tiles flickered at their bottom edge on hover.
Upgrade notes
- The reused-connection fix needs both Gately instances behind the SNI router upgraded: the instance that receives the misdirected request is the one that answers 421.
- The language menu on navigation panel visitor pages is now off by default; pages follow the browser language and a language chosen earlier (cookie) no longer applies. Turn on "Language switch" in the panel editor's Page tab if you need it.
Release notes: https://gately.cn/en/news/v0.6.8.1
v0.6.8
Security / 安全修复
本版本修复了以下影响 v0.6.6.6 及更早版本的安全问题,建议尽快升级。This release fixes the following issues affecting v0.6.6.6 and earlier; upgrading is recommended.
- 写令牌可读取配置目录(高):
storage:write、webservice:write等令牌可把配置目录挂为存储或静态站点后读取account.json并伪造管理员会话。现在存储挂载、静态站点与 WebDAV/FTP/SMB 拒绝配置目录及其子目录;包含配置目录的目录照常共享,但配置目录被隐藏。EasyTier/Tailscale/NetBird 程序路径与备份口令改为仅登录会话可改,令牌编辑器标出可读写服务器文件的模块(GHSA-mppw-4rpr-jj6r)。 / Write tokens could read the config directory (high): tokens such asstorage:writeorwebservice:writecould expose the config directory as a mount or static site, readaccount.jsonand forge an admin session. Mounts, static sites and WebDAV/FTP/SMB now refuse the config directory and anything inside it; directories containing it still work with the config directory hidden. Managed program paths and the backup passphrase are session-only, and the token editor marks modules whose write access reaches server files (GHSA-mppw-4rpr-jj6r). - 站点第三方登录回跳地址可被 Host 操纵(高):通配或默认站点的第三方登录可把登录票据送到攻击者域名。现在只从指向本实例的地址发起(GHSA-xww7-c723-p3wf)。 / Site third-party sign-in redirect controlled by Host (high): on wildcard or default sites the sign-in ticket could be sent to an attacker's host; sign-in now only starts from addresses that point to this instance (GHSA-xww7-c723-p3wf).
- SMB 认证前解析在 32 位构建上可单包崩溃(高):偏移与长度改为 64 位判断,单连接 panic 只断开该连接;未登录连接增加超时、请求大小与连接数上限(GHSA-gw77-6jx4-jpx7)。 / SMB pre-auth crash on 32-bit builds (high): offsets and lengths are checked in 64-bit arithmetic, a panic only drops its connection, and unauthenticated connections get timeouts, a request size limit and connection caps (GHSA-gw77-6jx4-jpx7).
- 其他(中/低):飞牛网关模式下同主机其他端口页面可借管理员 Cookie 发请求;管理端 Cookie 会转发给同主机名站点;只读账号可见部分凭据;WebDAV/FTP 跟随指向共享外的符号链接;诱饵端口/扫描检测按可伪造的单个 SYN 封禁;Webhook/PushPlus 拼入未转义访客文本;站点用户密码明文保存(改为 bcrypt);管理界面增加 CSP,HTTPS 下 Cookie 带 Secure;跨域只接受站点自身域名;Passkey 登录挑战按来源限制;诊断包脱敏补全。 / Also (medium/low): fnOS gateway same-host cross-port requests; admin cookies forwarded to same-host sites; partial credentials visible to read-only identities; WebDAV/FTP following symlinks outside the share; decoy/scan bans on a single forgeable SYN; unescaped visitor text in Webhook/PushPlus payloads; site user passwords stored in plain text (now bcrypt); CSP for the admin UI and Secure cookies over HTTPS; cross-origin access limited to the site's own domains; per-source Passkey challenge limits; more redaction in diagnostics bundles.
- 发布签名:
checksums.txt起用 minisign 签名(checksums.txt.minisig),在线升级先验签再核对 SHA-256;v0.6.8 及之后缺少签名文件的版本拒绝在线升级。 / Release signing:checksums.txtis signed with minisign (checksums.txt.minisig); online upgrades verify the signature before SHA-256, and releases of v0.6.8 or later without a signature are refused.
中文
管理界面
- 导航收敛:相关页面合并为带标签页的页面,侧边栏从 39 项减到 27 项,旧地址自动跳转;手机抽屉分组可折叠。
- 全局搜索:Ctrl/⌘+K 搜索页面、标签页、站点域名、端口转发规则、DDNS 记录与证书。
- 首次使用:全新安装改密后选择使用场景(发布网站、端口转发/打洞、动态域名、组网、文件共享、VPS 入口或全部),按场景开启模块;总览顶部的「开始使用」清单按实际配置打勾。
- 快速建站向导:三步发布一个站点:域名、后端地址(带连通性测试与 Home Assistant、Jellyfin、Emby、Vaultwarden、Nextcloud、Immich、Proxmox VE、群晖、飞牛等模板)、HTTP 或 HTTPS(就地申请证书)。
- 空列表模板:端口转发与 DDNS 的空列表提供常见场景模板。
- 其他:HTTPS 站点行显示所匹配证书的剩余天数;表单保存前检查必填项;列表加载失败显示原因与重试;手机端按钮与顶栏改进,顶栏显示当前页面名;页面标题链接到官网文档;状态色对比度与无障碍改进。
导入
- Nginx Proxy Manager:nginx 导入直接支持 NPM 配置,
set变量代入proxy_pass与跳转目标,Force SSL、Cache Assets 等映射为 Gately 设置。 - Sun-Panel:导航面板可导入 Sun-Panel 1.x(.sun-panel.json)与 2.x(.zip)导出,新建面板或合并到已有面板。
导航面板
- 布局:每个面板可选卡片或桌面应用图标两种链接样式,可调图标大小、每行数量(宽屏与手机分别设置)、间距与内容宽度,访客可切换样式。
- 地址选择器:带其他访问方式的链接点击后弹出地址选择(桌面为浮层、手机为底部弹层,支持键盘),不可用地址划线显示。
- 开关:分组数量与多地址角标(默认关闭);「登录以查看更多链接」只在页面原本为空时显示。
入侵防护与访问控制
- 诱饵端口与扫描检测只对完成 TCP 握手的来源计数封禁,不再因伪造源地址的 SYN 误封。
- 管理员登录成功后的免封只覆盖诱饵端口与端口扫描;日志规则、路径探测、TLS、敲门与文件服务封禁照常生效。
- WebDAV/FTP/SMB 登录失败发布
fileauth.failed事件,附规则模板。 - 封禁表上限 32768 条,满时先淘汰过期与最早的临时自动封禁,永久与手动封禁不淘汰。
端口转发与协议分流
- 每个 TCP 端口限制单一来源(IPv4 或 IPv6 /64)的并发连接,默认为端口上限的一半,可按规则与全局设置调整;回环与内网来源不受限。
- 双方在首包超时(默认 60 秒)内都不发数据的 TCP 连接会被关闭。
- 目标地址写成 host:port 时界面即时提示。
frp、DNS 与 WAF
- frps 可监听 KCP 与 QUIC(UDP 端口),frpc/frps 可调 QUIC 参数,frps 可自动放行防火墙。
- 自定义 DNS:首选服务器 1 秒无结果或失败时并行查询下一台,取最先返回的结果。
- 动态域名:主机记录统一小写,Porkbun 找不到记录时回退为列出全域(#99);A/AAAA 按地址比较,展开写法的 IPv6 不再被当成变化。
- WAF:正则预过滤默认开启(可关)。
日志与性能
- 新增日志级别设置(默认 info,可用
GATELY_LOG_LEVEL),端口转发与协议分流的逐连接记录默认不再写入。 - 日志与翻译、反向代理、封禁表、DNS 查询、端口转发等热路径减少分配与锁竞争;管理界面按需加载组件与语言包,首屏更小。
其他
- 演示模式:
-demo/GATELY_DEMO=1启动只读公开实例,一键只读登录,数据每小时重置(deploy/demo)。 - 使用问题请先到 GitHub Discussions 的 Q&A,Telegram 群用于即时交流。
升级提示
- 站点用户密码改为 bcrypt 哈希保存,接口只返回掩码;旧版本保存的明文照常可用,在所在监听下次保存时转换。
- 日志级别默认为 info:需要端口转发逐连接记录时,在设置中改为 debug。
- 指向配置目录本身或其子目录的存储挂载、静态站点与文件服务目录升级后不再提供服务,日志中会列出。
更新说明:https://gately.cn/news/v0.6.8
English
Admin UI
- Leaner navigation: related pages are merged into tabbed pages and the sidebar goes from 39 to 27 entries; old addresses redirect. Sidebar groups fold in the phone drawer.
- Global search: Ctrl/⌘+K searches pages, tabs, site domains, port forwarding rules, DDNS records and certificates.
- First run: after the password change a fresh install asks what Gately will be used for (publishing sites, port forwarding / hole punching, dynamic DNS, mesh networking, file sharing, VPS entry point, or everything) and turns on the matching modules; a Getting started checklist on the overview ticks steps off from the actual configuration.
- Quick site wizard: publish a site in three steps: domain, backend address (with a reachability test and templates for Home Assistant, Jellyfin, Emby, Vaultwarden, Nextcloud, Immich, Proxmox VE, Synology DSM and fnOS), then HTTP or HTTPS with a certificate requested on the spot.
- Empty-list templates: port forwarding and DDNS offer common scenario templates when empty.
- Also: HTTPS site rows show the remaining days of the matched certificate; forms check required fields before saving; lists show the failure reason with a Retry button; better phone buttons and a top bar with the current page name; page headers link to the docs; contrast and accessibility fixes.
Import
- Nginx Proxy Manager: the nginx import reads NPM configs directly, substitutes
setvariables intoproxy_passand redirect targets, and maps Force SSL, Cache Assets and other NPM options to Gately settings. - Sun-Panel: navigation panels import Sun-Panel 1.x (.sun-panel.json) and 2.x (.zip) exports into a new panel or an existing one.
Navigation panels
- Layout: per panel, links as cards or desktop-app icons, icon size, links per row (wide screens and phones separately), spacing and content width; visitors can switch the style.
- Address chooser: links with other ways to open show an address chooser on click (a popover on desktop, a bottom sheet on phones, keyboard friendly), with unavailable addresses struck through.
- Switches: group counts and an address-count badge (both off by default); the "sign in to see more" hint only shows on an otherwise empty page.
Intrusion prevention and access control
- Decoy ports and scan detection count only sources that complete the TCP handshake, so forged SYNs no longer cause bans.
- A successful admin sign-in now exempts the address only from decoy-port and port-scan bans; log rules, web probing, TLS, knock and file-service bans still apply.
- WebDAV/FTP/SMB sign-in failures publish a
fileauth.failedevent with a rule template. - The ban table is capped at 32768 entries; when full, expired and the oldest temporary automatic bans are evicted first, never permanent or manual ones.
Port forwarding and protocol routing
- Each TCP port limits concurrent connections from a single source (IPv4 address or IPv6 /64), by default half of the port's limit, adjustable per rule and globally; loopback and private sources are exempt.
- TCP connections where neither side sends data within the first data timeout (60 seconds by default) are closed.
- The form warns right away when a target address is written as host:port.
frp, DNS and WAF
- frps can listen for KCP and QUIC on UDP ports, frpc/frps get QUIC tuning, and frps can open the firewall automatically.
- Custom DNS: when the preferred server fails or gives no answer within 1 second, the next one is queried in parallel and the first answer wins.
- Dynamic DNS: host records are lower-cased and Porkbun falls back to listing the whole domain when a record is not found (#99); A/AAAA values are compared as addresses, so an expanded IPv6 no longer counts as a change.
- WAF: the regex pre-filter is on by default (can be turned off).
Logs and performance
- New log level setting (default info, also
GATELY_LOG_LEVEL); per-connection records of port forwarding and protocol routing are no longer written by default. - Fewer allocations and less lock contention on the logging, translation, reverse proxy, ban table, DNS and port forwarding hot paths; the admin UI loads components and language packs on demand for a smaller first load.
Also
- Demo mode:
-demo/GATELY_DEMO=1starts a read-only public instance with one-click read-only sign-in and hourly data reset (deploy/demo). - Usage questions go to GitHub Discussions Q&A first; the Telegram group is for chat.
Upgrade notes
- Site user passwords are stored as bcrypt hashes and the API only returns masks; plaintext passwords saved by earlier versions keep working and are converted the next time their listener is saved.
- The log level defaults to info; set it to debug in Settings to get per-connection port forwarding records.
- Storage mounts, static sites and file service directories pointing at the config directory itself or inside it stop being served after the upgrade and are listed in the logs.
Release notes: https://gately.cn/en/news/v0.6.8
v0.6.6.6
中文
导航面板(#97)
- 搜索:访客页搜索框可选搜索引擎(最多 12 个,内置常用预设,地址中用
{q}表示关键词),回车在新标签页搜索,输入时仍筛选页面上的链接;可设置默认搜索范围。 - 仅登录可见:链接可设为登录后可见,未登录访客的页面中不会下发其名称与地址;需要站点启用网页认证并勾选「仅对下方标记为必须认证的路径启用认证」,分享链接访客不算登录。
- 背景图:图片地址或上传图片(1 MB 以内),可调模糊与遮罩;访客可在页面设置里换成自己的背景。
- 卡片与分组:大小两种卡片尺寸,可选显示标题与描述;分组可折叠,可开启「常用」分组。
- 页面信息:自定义标签页标题、图标、页面描述与页脚;访客可切换语言,登录后显示用户菜单。
动态域名
- 新增 DNS 服务商:腾讯云 EdgeOne(含证书 DNS 验证与删除记录)、阿里云 ESA、百度智能云、火山引擎、DNS.LA、雨云、HiPM DNSMgr、时代互联 / Eranet / Tnet.hk、Vercel、NameSilo、Dynadot(仅更新已有记录)、Spaceship、Name.com、Gcore、ClouDNS、deSEC。
- TTL:TTL 填 0 时,新建记录使用服务商默认值,更新时按服务商沿用原有 TTL 或使用默认值。
- Cloudflare:「代理状态」填 true / false 时同步已有记录的代理状态,留空不管理;同名同类型多条记录保留一条改为目标值,其余旧值记录删除。
- 其他:多级公共后缀(如
com.ar、org.br)按公共后缀列表拆分;自定义回调支持{timestamp};dynv6 经 zone 更新根域地址;阿里云未指定线路时只操作默认线路。
入侵防护
- 模块登记的可信来源不触发诱饵端口与端口扫描检测(nftables / iptables 均支持),日志规则、手动封禁与访问控制照常生效。
- frps:用正确令牌登录的 frpc 来源成为可信来源,同一宽带出口下其他设备做 TCP 打洞时不再连带封掉 frpc;登录后 10 分钟内或保持连接期间有效,断开后需重新登录。
Web 服务
- 跨父域后台登录免认证改为管理员在站点上打开
/__gately_auth/admin-start(可带?next=)发起握手,普通访客不再被跳转到后台入口。 - 响应缓存:只带 Gately 自身登录 Cookie 的请求重新可以缓存(此前开启单点登录域或网页认证后缓存一直为空);其他 Cookie、其他实例签发的会话 Cookie 仍跳过缓存。
升级提示
- 使用跨父域后台登录免认证的管理员,升级后需在站点上打开
/__gately_auth/admin-start完成一次握手。 - Cloudflare 任务中同名同类型的多条旧值记录会在下次同步时合并为一条。
更新说明:https://gately.cn/news/v0.6.6.6
English
Navigation panel (#97)
- Search: the visitor page search box offers a choice of search engines (up to 12, with common presets;
{q}marks the keywords in the URL). Enter searches in a new tab while typing still filters the links; a default search scope can be set. - Sign-in-only links: links can be shown only to signed-in visitors; their name and address are not sent to anyone else. The site needs web authentication with "Require authentication only for paths marked Required below"; share-link visitors do not count as signed in.
- Background image: an image URL or an uploaded image (up to 1 MB) with blur and overlay; visitors can pick their own background in the page settings.
- Cards and groups: large and small link cards with optional title and description, folding groups and a frequent-links group.
- Page details: custom tab title, favicon, page description and footer; visitors can switch the language, and signed-in visitors get a user menu.
Dynamic DNS
- New DNS providers: Tencent Cloud EdgeOne (also certificate DNS validation and record deletion), Alibaba Cloud ESA, Baidu AI Cloud, Volcano Engine, DNS.LA, Rainyun, HiPM DNSMgr, Now.cn / Eranet / Tnet.hk, Vercel, NameSilo, Dynadot (updates existing records only), Spaceship, Name.com, Gcore, ClouDNS and deSEC.
- TTL: with TTL 0, new records get the provider default, and updates keep the existing TTL or use the default depending on the provider.
- Cloudflare: "Proxy status" set to true / false syncs the proxy status of existing records, left empty it is not managed; when several records share a name and type, one is set to the target value and the other stale ones are deleted.
- Also: hostnames under multi-level public suffixes such as
com.arandorg.brare split by the public suffix list; custom callbacks support{timestamp}; dynv6 updates the zone root through the zone; Alibaba Cloud only touches the default line when no line is set.
Intrusion prevention
- Trusted sources registered by modules skip decoy ports and scan detection (nftables and iptables); log rules, manual bans and access control are unaffected.
- frps: an frpc that signs in with the correct token becomes a trusted source, so TCP hole punching by other devices behind the same home connection no longer gets the frpc banned along with them. It stays trusted for 10 minutes after sign-in or while connected, and must sign in again after disconnecting.
Web service
- Admin sign-in bypass across parent domains now starts when an administrator opens
/__gately_auth/admin-start(optional?next=) on the site; ordinary visitors are never redirected to the admin entry. - Response cache: requests that only carry Gately's own sign-in cookies are cacheable again (previously nothing was cached once a single sign-on domain or web authentication was in use); other cookies and session cookies issued by other instances still skip the cache.
Upgrade notes
- Administrators using the cross-parent-domain admin sign-in bypass open
/__gately_auth/admin-starton the site once after upgrading. - In Cloudflare tasks, several stale same-name, same-type records are merged into one at the next sync.
Release notes: https://gately.cn/en/news/v0.6.6.6
v0.6.6.4
中文
管理后台登录安全
- 密码规则:新密码 10~72 字节,拒绝常见弱口令(含常见变形)、包含 gately 或用户名、连续或重复字符、字符种类过少的密码(16 位以上放宽),输入时实时显示强度。
- 强制修改:使用默认密码或弱密码登录后弹出无法关闭的改密对话框,改好之前服务端拒绝其他写操作;已有的弱密码在下一次密码登录时识别。
- 递增锁定:同一来源反复被锁定时,锁定时长每次翻倍,最长 24 小时。
- 陌生来源失败预算:从未登录成功过的地址 10 分钟内的密码登录失败总数达到上限(默认 20,可调整或关闭)后,陌生地址的密码登录暂时返回 429 并发出通知;常用地址与 Passkey 登录不受影响。
- 关闭密码登录:已注册 Passkey 后可以关闭密码登录;
gately reset-password会重新开启。 - 安全评分:「系统设置 → 账号与安全」顶部显示管理端安全评分,七项检查各自给出得分与修改入口。
优先拒绝名单(#95)
IP 访问控制新增「优先拒绝名单」(手填地址与网段,或引用订阅的 IP 列表):命中的来源一律拒绝,先于白名单、黑名单判断,与访问控制模式无关,路径规则也不能覆盖。Web 站点、端口转发、协议分流、STUN 内置转发与 frps 实例都可使用;订阅列表刷新后立即生效,被引用的列表不能删除。
Web 服务
- 敲门准入与登录后放行:站点可以要求来源持有某条端口敲门规则的有效授权才能访问;也可以作为放行入口,访客通过站点认证后为其来源 IP(IPv6 默认按 /64)登记授权,引用该规则的站点、端口转发与系统防火墙随即放行。入口页
/__gately_knock可查看与撤销放行,支持双栈探测;退出登录、用户被删除或改密码时自动撤销。敲门规则不开防火墙拦截时端口可以留空,只用于网页登录放行。 - 后台登录免认证:已登录 Gately 管理后台的管理员访问开启该选项的站点时不再需要站点认证;同一父域经单点登录域生效,跨父域时经「后台入口地址」一次性票据握手。凭据绑定后台会话,登出、退出所有设备或改密码后立即失效,不会转发给后端。
- 共享用户 Passkey 登录:共享用户可在站点的
/__gately_auth/passkey页面注册 Passkey,之后一键登录,免输入密码和动态验证码;只在站点的精确域名与 OIDC 签发者域名上提供,管理员修改用户的密码或 TOTP 密钥后该用户的 Passkey 一并删除。 - 明文 HTTP/2 后端:站点选项「http:// 后端使用明文 HTTP/2(h2c)」用于只监听明文端口的 gRPC 服务(如 NetBird 管理/信令),同一端口上的 WebSocket 请求自动改用 HTTP/1.1。
入侵防护
内核层的诱饵端口与端口扫描检测封禁时,封禁原因、日志与通知带上命中的端口;内核或 nftables 不支持时自动跳过,其余规则照常生效。
其他
- 打开对话框、确认框或抽屉时滚动不再带动下方页面,终端与编辑器在弹出层中仍可正常滚动。
- 卡片与分组列表、排序栏、标签页之间的间距统一。
升级提示
- 管理员密码过弱时,升级后下一次用密码登录会要求修改密码。
- 陌生来源失败预算默认开启(20 次 / 10 分钟),只影响从未登录成功过的地址。
更新说明:https://gately.cn/news/v0.6.6.4
English
Admin sign-in security
- Password rules: new passwords are 10 to 72 bytes and may not be common weak passwords (including common variations), contain gately or the username, consist of sequences or repeats, or use too few character kinds (relaxed from 16 characters); strength is shown as you type.
- Forced change: signing in with the default or a weak password opens a password change dialog that cannot be closed, and the server refuses other write operations until the password is changed; existing weak passwords are detected at the next password sign-in.
- Escalating lockout: a source that is locked again and again gets twice the lock time each time, up to 24 hours.
- Unknown-source failure budget: once password sign-in failures from addresses that never signed in successfully reach the limit within 10 minutes (20 by default, adjustable or off), password sign-ins from unknown addresses return 429 for a while and a notification is sent; known addresses and Passkey sign-ins are not affected.
- Turn off password sign-in: once a Passkey is registered, password sign-in can be turned off;
gately reset-passwordturns it back on. - Security score: the top of "Settings → Account & security" shows the admin security score with seven checks, each with its points and a link to fix it.
Always-deny list (#95)
IP access control adds an "always-deny list" (addresses and ranges, or subscribed IP lists): matching sources are always rejected, before the allowlist or blocklist, regardless of the access mode, and path rules cannot override it. It is available for web sites, port forwarding, protocol routing, STUN forwarding and frps instances; subscribed lists apply as soon as they refresh, and lists in use cannot be deleted.
Web service
- Knock admission and login release: a site can require a valid grant of a port knocking rule before any access, or act as a release entry: visitors who pass the site's authentication get their source IP (IPv6 /64 by default) granted, and sites, port forwards and the system firewall that use the rule let it in. The
/__gately_knockpage shows and revokes grants and probes the other address family; signing out, deleting a user or changing their password revokes them. Knock rules without firewall blocking may leave ports empty and serve web login release only. - Admin sign-in bypass: administrators signed in to the Gately admin skip the authentication of sites with this option, through the single sign-on domain under the same parent domain, or through a one-time ticket handshake with the "admin entry URL" across parent domains. The credential is bound to the admin session, stops working on sign-out, sign-out of all devices or password change, and is never forwarded to backends.
- Shared user Passkey sign-in: shared users register Passkeys on the site's
/__gately_auth/passkeypage and then sign in with one tap, without password or one-time code; offered only on a site's exact domains and the OIDC issuer domain, and an administrator changing a user's password or TOTP secret deletes that user's Passkeys. - Cleartext HTTP/2 backends: the site option "Use cleartext HTTP/2 (h2c) for http:// backends" serves gRPC services that only listen on a plain port (such as the NetBird management and signal services); WebSocket requests on the same port automatically use HTTP/1.1.
Intrusion prevention
Kernel-level trap port and port scan bans now include the ports that were hit in the ban reason, logs and notifications; when the kernel or nftables cannot record ports, this is skipped and the other rules work as before.
Other
- Scrolling inside dialogs, message boxes and drawers no longer moves the page behind them, while terminals and editors in them still scroll.
- Consistent spacing between cards and grouped lists, sort bars and tabs.
Upgrade notes
- If the admin password is weak, the next password sign-in after upgrading asks you to change it.
- The unknown-source failure budget is on by default (20 per 10 minutes) and only affects addresses that never signed in successfully.
Release notes: https://gately.cn/en/news/v0.6.6.4
v0.6.6.2
中文
EasyTier 组网
「组网与穿透」新增 EasyTier:托管 easytier-core 进程,把本机加入 EasyTier 组网,优先 P2P 打洞直连,打不通时经公共节点或自建节点中继。
- 多实例:每个实例是独立的进程,同一台机器可以分别加入不同的组网;
- 在线安装、更新与回滚,Windows 安装包自带 wintun.dll 等依赖;
- 网络密钥经环境变量传给进程,不出现在命令行,日志中打码;共享本地网段或允许作为出口节点时必须设置密钥;
- 实例卡片显示虚拟 IP、监听地址与节点列表(直连 / 中继、延迟、连接协议),TUN 网卡无法创建或进程启动即退出时显示原因;
- 同时启用的实例端口、网卡名冲突时拒绝保存。
入侵防护
- TLS 握手失败规则(#90):日志规则新增来源「TLS 握手失败」,按失败类型(中途断开、重置、超时、非 TLS 或协议错误、无法协商参数、未知域名、客户端中止、其他)、监听与次数封禁;内置「TLS 异常握手」与「TLS 握手中断」两个模板,可粘贴失败原因测试归类。来源是 Web 服务「可信代理」中的地址时不计数。
- 端口扫描检测识别模块端口:各模块监听成功后立即登记为开放端口(300 毫秒内生效),包括 frps 的绑定、vhost、对外 dashboard、allowPorts 范围与 frpc 申请的远程端口,EasyTier 的监听与端口转发,Tailscale、NetBird 对外的 SOCKS5 端口;停止监听后 10 分钟内仍视为开放,frpc 掉线重连期间的正常访客不会被当成扫描封禁。
通知中心
- 新地址登录提醒(#92):新增事件
login.newip(警告级别),管理后台登录成功且来源地址此前从未登录成功过时发布;覆盖密码、Passkey、第三方与飞牛统一网关登录;第一次登录只建立基线,IPv6 按 /64 归并,最多记录 200 个来源。「安全与登录」模板已包含。
其他
- 只读账号与只读 API 令牌查看托管程序配置时,环境变量只显示变量名,额外参数整体隐藏。
- 登录页用户名或密码为空时直接提示;列表卡片操作按钮固定在底部对齐。
更新说明:https://gately.cn/news/v0.6.6.2
English
EasyTier
"Networking & Tunnels" adds EasyTier: Gately manages easytier-core to join this machine to an EasyTier network, preferring P2P hole punching and falling back to public or self-hosted relay nodes.
- Multiple instances, each its own process, so one machine can join several networks;
- Online install, update and rollback; the Windows package includes wintun.dll and other dependencies;
- The network secret is passed through an environment variable, never on the command line, and masked in logs; a secret is required when sharing local subnets or acting as an exit node;
- Instance cards show the virtual IP, listeners and peers (direct / relay, latency, tunnel protocol), plus the reason when the TUN device cannot be created or the process exits at start;
- Saving is refused when enabled instances conflict on ports or interface names.
Intrusion prevention
- TLS handshake failure jails (#90): log jails get a new source "TLS handshake failures" that bans by failure type (EOF, reset, timeout, not TLS or protocol error, cannot negotiate, unknown domain, client abort, other), listener and count, with "TLS abnormal handshake" and "TLS handshake aborted" templates and a test panel for failure reasons. Peers listed as trusted proxies in the web service are not counted.
- Scan detection knows module ports: modules register their ports as open as soon as they listen (effective within 300 ms), including frps bind, vhost, public dashboard, allowPorts ranges and the remote ports frpc requests, EasyTier listeners and port forwards, and the public SOCKS5 ports of Tailscale and NetBird. Ports stay open for 10 minutes after they stop listening, so visitors reconnecting while frpc reconnects are not banned as scanners.
Notifications
- New address sign-in alert (#92): a new
login.newipevent (warning) is published when an admin sign-in succeeds from an address that never signed in before; it covers password, Passkey, third-party and fnOS gateway logins, the first sign-in only builds the baseline, IPv6 is grouped by /64, and up to 200 sources are kept. The "Security & sign-ins" template includes it.
Other
- Read-only accounts and read-only API tokens see only variable names for managed program environment variables, and extra arguments are hidden.
- The login page warns about an empty username or password without sending a request; list card action buttons stick to the bottom and line up.
Release notes: https://gately.cn/en/news/v0.6.6.2