惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

MongoDB | Blog
MongoDB | Blog
宝玉的分享
宝玉的分享
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
罗磊的独立博客
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
SegmentFault 最新的问题
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
博客园 - 司徒正美
博客园 - 叶小钗
T
Tailwind CSS Blog
博客园 - Franky
V
V2EX
有赞技术团队
有赞技术团队
美团技术团队
雷峰网
雷峰网
爱范儿
爱范儿
Jina AI
Jina AI
D
DataBreaches.Net
H
Help Net Security
酷 壳 – CoolShell
酷 壳 – CoolShell

运维开发绿皮书

OBS虚拟摄像头重命名 Ubuntu备份为LiveOS 使用Powershell卸载windows默认程序 Cisco路由器OSPF配置 汽车的分类和特点 Windows11跳过TPM2.0 HTTPS 双向认证与 USB 加密锁配置实战 SSL 证书工具 字数统计 BMI 计算 颜色转换 Hash 生成器 JSON 格式化 JWT 解码 房贷计算 时间戳转换 URL 编码 UUID 生成 牛马时钟 二维码批量生成器 CKS Simulator Kubernetes 1.25 FRP TOTP验证码生成器 direct-ssh-passthrough-nat 脚本使用说明 Python软件授权 Linux命令行百度网盘 为 Containerd 配置 Harbor 无证书镜像站 Docker一键部署Meta和MetacubexD面板 必应搜索屏蔽垃圾网站 VMware的ubuntu完整安装vm-tools支持粘贴板
Ubuntu隐私优化-关闭公共门户连接检查
Paper-Dragon · 2024-08-14 · via 运维开发绿皮书

Ubuntu隐私优化-关闭公共门户连接检查

在研究 Ubuntu 的连接检查功能之前,让我们首先了解一下 Captive Portals。当尝试访问咖啡店、机场、商务中心、酒店大堂等处的 Wifi 设施时,我们发现自己登陆了一个要求身份验证、付款和/或接受协议条款的网页。只有当我们提供所需的信息时,我们才能访问 Wifi 设施。这种登录页面称为强制门户。

在 Ubuntu 17.10 及更高版本中,每当检测到强制门户时,您都会在网络状态中看到一个问号。这项新功能的工作原理是不时 ping http://connectivity-check.ubuntu.com URL,以检测强制门户。

为了更好的保证隐私,我将这个进行禁用。

通过命令行禁用连接检查

通过 /var/lib/NetworkManager/NetworkManager-intern.conf 文件更改此功能的配置。

# Internal configuration file. This file is written and read
# by NetworkManager and its configuration values are merged
# with the configuration from 'NetworkManager.conf'.
#
# Keys with a ".set." prefix specify the value to set.
# A corresponding key with a ".was." prefix records the value
# of the user configuration at the time of storing the file.
# The value from internal configuration is rejected if the corresponding
# ".was." key no longer matches the configuration from 'NetworkManager.conf'.
# That means, if you modify a value in 'NetworkManager.conf', the internal
# overwrite no longer matches and is ignored.
#
# Certain sections can only be overwritten whole, not on a per key basis.
# Such sections are marked with a ".was" key that records the user configuration
# at the time of writing.
#
# Internal sections of the form [.intern.*] cannot
# be set by user configuration.
#
# CHANGES TO THIS FILE WILL BE OVERWRITTEN
#

# ------ 添加下面的字段 ------- #
[connectivity]
.set.enabled=false
# ------ 添加上面的字段 ------- #

重启网络服务

systemctl restart NetworkManager.service

更新日志

  • 382d8-Ubuntu隐私优化-关闭公共门户连接检查