检查当前机器是不是虚拟机并确认底层虚拟化技术

要确定当前运行的系统是否在虚拟机(VM)中,并了解底层虚拟化技术,可以使用一些命令和工具进行检查。以下是几种方法: 使用 dmidecode 命令: dmidecode 是一个用于获...

May 1, 2023 · 2 分钟 · 533 字 · Tianlun Song

Surge 从零开始配置

Surge for macOS 基于 这份 修改。 # Surge 的规则配置手册: https://manual.nssurge.com/ [General] loglevel = notify # 从 Surge iOS 4 / Surge Mac 3.3.0 起,工具开始支持 DoH doh-server = https://doh.pub/dns-query, https://dns.alidns.com/dns-query # https://dns.alidns.com/dns-query, https://13800000000.rubyfish.cn/, https://doh.360.cn/dns-query, https://dns.google/dns-query dns-server = 223.5.5.5, 114.114.114.114 tun-excluded-routes = 0.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.0.0/24, 192.0.2.0/24, 192.168.0.0/16, 192.88.99.0/24, 198.51.100.0/24, 203.0.113.0/24,...

May 1, 2023 · 1 分钟 · 448 字 · Tianlun Song

dnsmasq 多网卡分网段配置

在 dnsmasq 的配置文件 /etc/dnsmasq.conf 中使用类似下面的配置: bind-interfaces dhcp-range=eth1,10.192.10.50,10.192.10.200,12h dhcp-range=eth2,10.192.20.50,10.192.20.200,12h dhcp-range=eth3,10.192.30.50,10.192.30.200,12h dhcp-option=option:dns-server,119.29.29.29 接口实现一个 dnsmasq 实例,同时在多张网卡启动 DHCP 服务,并分配不同网段的 IP 地址。

May 1, 2023 · 1 分钟 · 59 字 · Tianlun Song

apt 查看软件库中软件包所有可用版本

要查看软件库中现有的所有可用版本,您可以使用以下命令: apt-cache madison <package-name> 将 <package-name> 替换为您要查看版本信息的软件包名称。此命令将显示所有可用版本的软件包及其详细...

May 1, 2023 · 1 分钟 · 275 字 · Tianlun Song

判断 IP 或端口被封(墙)

IP 检测 命令行方式 最简单的是在命令行窗口上测试 $ ping x.x.x.x. 在线方式 可使用网站 Ping检测 进行测试 判断 如果国内和国外都 ping 不通,则是海外服务器的问题 如果...

May 1, 2023 · 1 分钟 · 329 字 · Tianlun Song