V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  fenglala  ›  全部回复第 1 页 / 共 6 页
回复总数  117
1  2  3  4  5  6  
❮ ❯
11 月 26 日
回复了 JCZ2MkKb5S8ZX9pq 创建的主题 › 华为 › 请问鸿蒙系统怎么科学上网?

鸿蒙系统使用时需要导入根证书,我的证书是 lets encrypt 签发的,根是 YE1,你自己用的啥证书你自己找 ai 问搞定就行,整体步骤:
先导入证书,点这个链接下载证书:
https://letsencrypt.org/certs/gen-y/root-ye.pem

然后导入,手机设置:
华为鸿蒙 5 及以上手机:隐私和安全>高级>证书与凭据>从存储设备安装>CA 证书>安装,选刚才下载的 root-ye.pem

然后手机网络设置,添加 VPN
华为鸿蒙 5 及以上手机:移动网络>VPN>添加 VPN 网络
1.名称随便写
2.类型选 IKEv2/IPSec MSCHAPv2
3.服务器地址填
你的域名
4.IPSec 标识符跟服务器地址一样,也是
你的域名
5.IPSec CA 证书选刚才导入的 Root YE
6.填用户名、密码,连接就行了

11 月 26 日
回复了 JCZ2MkKb5S8ZX9pq 创建的主题 › 华为 › 请问鸿蒙系统怎么科学上网?

鸿蒙系统原生支持 设置 移动网络 VPN 添加 VPN 网络 类型 IKEv2/IPSec MSCHAPv2 等类型,我是自建了 IKEv2/IPSec MSCHAPv2 连到家里,连到家里之后流量怎么走就随你了。我的部分 docker 配置可以参考,没贴出来的部分你自己让 ai 自建你自己的就行


cat docker-compose.yml
++ cat docker-compose.yml
services:
  省略
  ddns-go:
    image: jeessy/ddns-go:latest
    container_name: ddns-go
    restart: always
    ports:
      - "0.0.0.0:9876:9876"
    volumes:
      - ./ddns-go-data:/root
  省略
  # 9. IKEv2 / IPSec VPN 服务
  ikev2-vpn:
    build: ./ikev2-vpn
    container_name: ikev2-vpn
    restart: always
    ports:
      - "0.0.0.0:500:500/udp"    # IKEv2 协商端口
      - "0.0.0.0:4500:4500/udp"  # NAT-T 端口
    sysctls:
      - net.ipv4.ip_forward=1     # 由 Docker 在容器 netns 初始化时设置
    cap_add:
      - NET_ADMIN
      - NET_RAW          # bridge 模式下需要,用于 raw socket 操作
    volumes:
      - ./ikev2-vpn/swanctl/swanctl.conf:/etc/swanctl/swanctl.conf
      # 1. 把 acme.sh 自动生成的中间CA映射进容器CA目录
      - ./ssl/你的域名_ecc/ca.cer:/etc/swanctl/x509ca/letsencrypt-ca.cer:ro
      # 2. 直接映射 acme.sh 自动生成的完整证书链(叶子+中间CA)作为服务端证书
      - ./ssl/你的域名_ecc/fullchain.cer:/etc/swanctl/x509/cert.pem:ro
      # 3. 直接将私钥映射到容器内的 ecdsa 密钥目录
      - ./ssl/你的域名_ecc/你的域名.key:/etc/swanctl/ecdsa/privkey.pem:ro

  # 防止 acme 容器被清理
  acme-holder:
    image: neilpang/acme.sh:latest
    container_name: acme-holder
    restart: unless-stopped
    entrypoint: ["sleep", "infinity"]
cat ikev2-vpn/Dockerfile
++ cat ikev2-vpn/Dockerfile
FROM debian:bookworm-slim

RUN apt-get update && apt-get install -y --no-install-recommends \
    strongswan \
    strongswan-swanctl \
    strongswan-pki \
    charon-systemd \
    libcharon-extra-plugins \
    libcharon-extauth-plugins \
    libstrongswan-extra-plugins \
    libstrongswan-standard-plugins \
    iptables \
    iproute2 \
    ca-certificates \
    curl \
    && rm -rf /var/lib/apt/lists/*

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

CMD ["/entrypoint.sh"]cat ikev2-vpn/entrypoint.sh
++ cat ikev2-vpn/entrypoint.sh
#!/bin/bash
set -evx

# 后台启动 charon
/usr/lib/ipsec/charon &
CHARON_PID=$!

# 等待 vici 接口就绪
for i in $(seq 1 30); do
    if swanctl --stats >/dev/null 2>&1; then
        echo "charon vici ready, loading swanctl config..."
        break
    fi
    sleep 1
done

# 加载所有 swanctl 配置(连接、证书、密钥、pool、secrets)
swanctl --load-all

iptables 命令省略

# 保持容器前台运行
wait $CHARON_PID
cat ikev2-vpn/swanctl/swanctl.conf | sed '/eap-.*{/,/}/ { s/eap-[^{ ]*/eap-打码/; s/id = .*/id = 打码/; s/secret = .*/secret = "打码"/ }'
++ cat ikev2-vpn/swanctl/swanctl.conf
++ sed '/eap-.*{/,/}/ { s/eap-[^{ ]*/eap-打码/; s/id = .*/id = 打码/; s/secret = .*/secret = "打码"/ }'
connections {
    ikev2-mschapv2 {
        version = 2
        proposals = default
        rekey_time = 0s
        fragmentation = yes
        encap = yes
        send_cert = always

        local {
            auth = pubkey
            certs = cert.pem
            id = 你的域名
        }

        remote {
            auth = eap-mschapv2
            eap_id = %any
        }

        children {
            ikev2-child {
                local_ts = 0.0.0.0/0
                rekey_time = 0s
            }
        }

        pools = vpn_pool
    }
}

pools {
    vpn_pool {
        addrs = 10.10.10.2-10.10.10.254
        dns = 10.10.10.1
    }
}

secrets {
    eap-打码 {
        id = 打码
        secret = "打码"
    }

    eap-打码 {
        id = 打码
        secret = "打码"
    }
}


crontab -l | sed "s/Ali_Key=[^ ]*/Ali_Key=\"打码\"/; s/Ali_Secret=[^ ]*/Ali_Secret=\"打码\"/"
++ crontab -l
++ sed 's/Ali_Key=[^ ]*/Ali_Key="打码"/; s/Ali_Secret=[^ ]*/Ali_Secret="打码"/'
# Edit this file to introduce tasks to be run by cron.
# 
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
# 
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').
# 
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
# 
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
# 
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
# 
# For more information see the manual pages of crontab(5) and cron(8)
# 
# m h  dom mon dow   command
0 3 * * * /usr/bin/docker run --rm -v /opt/remote-gateway/ssl:/acme.sh -e Ali_Key="打码" -e Ali_Secret="打码" neilpang/acme.sh --cron --home /acme.sh >> /opt/remote-gateway/acme_cron.log 2>&1 && /usr/bin/docker exec nginx nginx -s reload >> /opt/remote-gateway/acme_cron.log 2>&1 && /usr/bin/docker exec ikev2-vpn swanctl --load-all >> /opt/remote-gateway/acme_cron.log 2>&1
购物网站搜索 透气网格坐垫,20 块钱搞定
重新来了一边,又有 renew 选项了,可以关了
我这边下单的时候没有 renew 的选项了,也没有说明是不是会自动续费,提交后会自动续费吗
(⊙o⊙)…我们从金桥搬到青浦西岑,70km ,接受不了的搬之前就跑路了,但是没听说谁额外补偿的
5 月 5 日
回复了 lionest1229 创建的主题 › 宽带症候群 › 机场专用客户端如何抓取节点
尝试抓包,获取到了订阅链接和 UA ,但是在 mihomo 或 sing-box 中订阅,还是会提示使用非官方客户端
--->
写个云函数绕过一下?客户端访问你的云函数,云函数用官方客户端的 UA 去请求订阅链接,这样就相当于用非官方客户端仿造了官方客户端?
@airtee 我发俩了链接,上边那个是 macOS 可用的
介绍一下以下两个都是开源的

Target Platforms: Linux, BSD, Unix-like systems; macOS
https://github.com/shundhammer/qdirstat


Compatibility
WinDirStat 2.x has been developed for and tested on the following operating systems. They may work on older or newer operating systems but are not supported.

Windows 8
Windows 8.1
Windows 10
Windows 11
Windows Server 2012
Windows Server 2012 R2
Windows Server 2016
Windows Server 2019
Windows Server 2022
Windows Server 2025

https://github.com/windirstat/windirstat
因为体积小
2025 年 12 月 30 日
回复了 smdbh 创建的主题 › 问与答 › win 有什么 git 客户端,可以管理 Linux 上的 git 项目
猜你想问:x11 转发?使用 mobaxterm 或类似工具 ssh 连过去直接在 shell 里执行 linux 的 ui 程序就可以了,这个符合你的诉求吗?
2025 年 12 月 8 日
回复了 simple2025 创建的主题 › 生活 › 残念,我的蚊帐还要买吗?
@simple2025 可以网购买呀,你唯一需要做的就是从窗户通一个烟道就可以了。
2025 年 12 月 8 日
回复了 simple2025 创建的主题 › 生活 › 残念,我的蚊帐还要买吗?
@simple2025 如果你在农村的话,可以用炉子(火炉、煤球炉、碳炉等),或者自己修建一个炕都是可以的,炉子或炕可以用蜂窝煤、煤块、木头生活取暖,这些我都用过,都是非常便宜的加热措施。睡前烧炕,整个屋子一晚上都是暖和的。
2025 年 12 月 6 日
回复了 simple2025 创建的主题 › 生活 › 残念,我的蚊帐还要买吗?
@simple2025 #57 如果你住的不是公寓的话,晚上大部分时间是谷电,一个月下来我 11 月用电 548 千瓦时,其中 287 千瓦时占 52.37%都是谷电,电费账单 249.1 元,比春秋不开空调的电费 40 远左右贵了两百,两百块钱一个月的暖气费已经非常便宜了。之前在北京的时候租六环外的公寓,集体供暖的地暖,一个月还要 300 块钱的。供暖本来就比制冷成本要高,这个价格供暖已经是舒适性里成本较低的选择了。
2025 年 12 月 6 日
回复了 simple2025 创建的主题 › 生活 › 残念,我的蚊帐还要买吗?
@simple2025 你自己已经把答案说出来了,为啥不能自己买个暖气呢?电油汀暖气,或者踢脚线暖气,都可以啊,我也在上海,现在都是整夜开暖气呀,也是自己买的暖气。
2025 年 11 月 29 日
回复了 qviqvi 创建的主题 › App Store › 有没有所有墙内镜像汇总的网站
2025 年 11 月 19 日
回复了 blackbookbj277 创建的主题 › 宽带症候群 › ipv6 直连速度确实挺快的
你们单位竟然有 IPv6 +1
1  2  3  4  5  6  
❮ ❯
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4604 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms · UTC 01:16 · PVG 09:16 · LAX 17:16 · JFK 20:16
♥ Do have faith in what you're doing.