V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  wukaige  ›  全部回复第 10 页 / 共 15 页
回复总数  282
1 ... 2  3  4  5  6  7  8  9  10  11 ... 15  
2024-11-20 11:51:56 +08:00
回复了 wukaige 创建的主题 Linux 有了解 iptables 的大佬吗,需要帮助!
@Kinnice #15

有一个奇怪的情况,我开启 wifi ,然后设置 wifi 的代理为 127.0.0.1:7890 ,可以正常访问 youtueb app ,关闭 wifi 后,还是能正常访问,过一天后(可能是 dns 缓存失效时间),就访问不了了
2024-11-20 11:44:56 +08:00
回复了 wukaige 创建的主题 Linux 有了解 iptables 的大佬吗,需要帮助!
@Kinnice #15

还是不行,dns 能正常解析,就是加载不了数据
2024-11-20 11:02:15 +08:00
回复了 wukaige 创建的主题 Linux 有了解 iptables 的大佬吗,需要帮助!
@Kinnice

佬,我加了几行配置:

```
{
"query_type": "HTTPS",
"server": "dns_block"
},
...

{
"protocol": "quic",
"outbound": "REJECT"
},

```

YouTube 提示 “你没有联网,请检查网络连接”

sing-box log:
```
00 2024-11-20 10:59:09 [36mINFO [0m [ [38;5;34m776360169 [0m 0ms] router: found package name: com.google.android.youtube
+0800 2024-11-20 10:59:09 [36mINFO [0m [ [38;5;49m3105964833 [0m 0ms] inbound/tun[tun-in]: inbound packet connection from 172.18.0.1:20204
+0800 2024-11-20 10:59:09 [36mINFO [0m [ [38;5;49m3105964833 [0m 0ms] inbound/tun[tun-in]: inbound packet connection to 120.80.80.80:53
+0800 2024-11-20 10:59:09 [36mINFO [0m [ [38;5;49m3105964833 [0m 0ms] router: found package name: com.google.android.youtube
+0800 2024-11-20 10:59:09 [36mINFO [0m [ [38;5;79m2750227519 [0m 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:50334
+0800 2024-11-20 10:59:09 [36mINFO [0m [ [38;5;99m1486284115 [0m 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:50340
+0800 2024-11-20 10:59:09 [36mINFO [0m [ [38;5;79m2750227519 [0m 2ms] inbound/mixed[mixed-in]: inbound connection to youtubei.googleapis.com:443
+0800 2024-11-20 10:59:09 [36mINFO [0m [ [38;5;99m1486284115 [0m 0ms] inbound/mixed[mixed-in]: inbound connection to i.ytimg.com:443
+0800 2024-11-20 10:59:09 [36mINFO [0m [ [38;5;79m2750227519 [0m 4ms] router: found package name: com.google.android.youtube
+0800 2024-11-20 10:59:09 [36mINFO [0m [ [38;5;79m2750227519 [0m 4ms] outbound/shadowsocks[🇭🇰 香港-A-02]: outbound connection to youtubei.googleapis.com:443
+0800 2024-11-20 10:59:09 [36mINFO [0m [ [38;5;99m1486284115 [0m 6ms] router: found package name: com.google.android.youtube
+0800 2024-11-20 10:59:09 [36mINFO [0m [ [38;5;99m1486284115 [0m 7ms] outbound/shadowsocks[🇭🇰 香港-A-02]: outbound connection to i.ytimg.com:443
+0800 2024-11-20 10:59:09 [36mINFO [0m [ [38;5;49m3105964833 [0m 137ms] dns: exchanged youtubei.googleapis.com A youtubei.googleapis.com. 48 IN A 142.250.198.74
+0800 2024-11-20 10:59:09 [36mINFO [0m [ [38;5;49m3105964833 [0m 137ms] dns: exchanged youtubei.googleapis.com A youtubei.googleapis.com. 48 IN A 142.250.77.10
+0800 2024-11-20 10:59:09 [36mINFO [0m [ [38;5;49m3105964833 [0m 137ms] dns: exchanged youtubei.googleapis.com A youtubei.googleapis.com. 48 IN A 142.250.196.202
+0800 2024-11-20 10:59:09 [36mINFO [0m [ [38;5;49m3105964833 [0m 137ms] dns: exchanged youtubei.googleapis.com A youtubei.googleapis.com. 48 IN A 142.250.204.42
+0800 2024-11-20 10:59:09 [36mINFO [0m [ [38;5;49m3105964833 [0m 137ms] dns: exchanged youtubei.googleapis.com OPT OPT PSEUDOSECTION: EDNS: version 0 flags: MBZ: 0x0030, udp: 512 SUBNET: 1.0.1.0/32/24
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;150m2746803334 [0m 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:50366
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;44m2308182003 [0m 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:50372
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;150m2746803334 [0m 0ms] inbound/mixed[mixed-in]: inbound connection to redirector.googlevideo.com:443
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;44m2308182003 [0m 0ms] inbound/mixed[mixed-in]: inbound connection to redirector.googlevideo.com:443
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;80m2529361728 [0m 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:50388
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;150m2746803334 [0m 3ms] router: found package name: com.google.android.youtube
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;44m2308182003 [0m 3ms] router: found package name: com.google.android.youtube
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;150m2746803334 [0m 4ms] outbound/shadowsocks[🇭🇰 香港-A-02]: outbound connection to redirector.googlevideo.com:443
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;44m2308182003 [0m 3ms] outbound/shadowsocks[🇭🇰 香港-A-02]: outbound connection to redirector.googlevideo.com:443
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;80m2529361728 [0m 3ms] inbound/mixed[mixed-in]: inbound connection to redirector.googlevideo.com:443
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;80m2529361728 [0m 5ms] router: found package name: com.google.android.youtube
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;80m2529361728 [0m 5ms] outbound/shadowsocks[🇭🇰 香港-A-02]: outbound connection to redirector.googlevideo.com:443
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;170m2162216858 [0m 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:50390
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;170m2162216858 [0m 0ms] inbound/mixed[mixed-in]: inbound connection to rr1---sn-i3belne6.googlevideo.com:443
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;145m3191687809 [0m 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:50404
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;145m3191687809 [0m 1ms] inbound/mixed[mixed-in]: inbound connection to rr5---sn-i3b7knsl.googlevideo.com:443
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;48m2237773047 [0m 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:50408
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;48m2237773047 [0m 2ms] inbound/mixed[mixed-in]: inbound connection to rr4---sn-i3b7kns6.googlevideo.com:443
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;170m2162216858 [0m 9ms] router: found package name: com.google.android.youtube
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;145m3191687809 [0m 8ms] router: found package name: com.google.android.youtube
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;170m2162216858 [0m 9ms] outbound/shadowsocks[🇭🇰 香港-A-02]: outbound connection to rr1---sn-i3belne6.googlevideo.com:443
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;145m3191687809 [0m 8ms] outbound/shadowsocks[🇭🇰 香港-A-02]: outbound connection to rr5---sn-i3b7knsl.googlevideo.com:443
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;48m2237773047 [0m 9ms] router: found package name: com.google.android.youtube
+0800 2024-11-20 10:59:11 [36mINFO [0m [ [38;5;48m2237773047 [0m 9ms] outbound/shadowsocks[🇭🇰 香港-A-02]: outbound connection to rr4---sn-i3b7kns6.googlevideo.com:443
```
2024-11-20 09:44:10 +08:00
回复了 wukaige 创建的主题 Linux 有了解 iptables 的大佬吗,需要帮助!
@huihuimoe

那 dns 配置怎么改比较好,指导一下
2024-11-20 09:37:46 +08:00
回复了 wukaige 创建的主题 Linux 有了解 iptables 的大佬吗,需要帮助!
@youtoshell

box for root 我试过了,一样的问题,不知道是不是我的 dns 配置有问题,我的 iptables 规则就是参考 box for root 项目的
2024-11-20 09:36:38 +08:00
回复了 wukaige 创建的主题 Linux 有了解 iptables 的大佬吗,需要帮助!
@wukaige #10

浏览器
2024-11-20 09:36:28 +08:00
回复了 wukaige 创建的主题 Linux 有了解 iptables 的大佬吗,需要帮助!
@Beebird

手机里面能访问 youtube 和 google play 的网页版,就是 app 有问题
2024-11-20 09:35:40 +08:00
回复了 wukaige 创建的主题 Linux 有了解 iptables 的大佬吗,需要帮助!
@zealot0630

手机没有 nft 命令
2024-11-20 09:35:16 +08:00
回复了 wukaige 创建的主题 Linux 有了解 iptables 的大佬吗,需要帮助!
2024-11-15 15:08:25 +08:00
回复了 syh2 创建的主题 问与答 分享你们的电话卡套餐
联通大王卡:19 月租 + 70G 通用流量 + 30G 定向流量
2024-11-15 15:03:34 +08:00
回复了 bigbugbag 创建的主题 程序员 macOS 中有 Oh My Zsh 的上位替代么?
@bigbugbag #103

可以的,开启 zmodload zsh/zprof 后,在 zsh 里面按几次回车键,再运行 zprof ,会显示函数调用次数与耗时,类似于下面这种:

2) 10 397.99 39.80 14.63% 397.99 39.80 14.63% _atuin_preexec
2024-11-14 09:39:49 +08:00
回复了 ODESZA 创建的主题 问与答 晚上入睡困难,求大家推荐一点语音类的播客节目助眠啊
早上 5 点起床,晚上 8 点多就非常困了,可以试试
2024-11-14 09:35:21 +08:00
回复了 bigbugbag 创建的主题 程序员 macOS 中有 Oh My Zsh 的上位替代么?
```
# zsh boot time report
start=$(date +%s.%N)
zmodload zsh/zprof

...

zprof | head -n 20; zmodload -u zsh/zprof
echo "Runtime was: $(echo "$(date +%s.%N) - $start" | bc)"
```

用 zprof 看看耗时的是哪些插件,然后着手优化就像,之前 zsh shell 启动需要 1s 左右,砍掉大部分耗时插件再用 zinit 延迟加载,现在只要 0.1 s 左右。
2024-11-11 17:20:57 +08:00
回复了 raycake 创建的主题 程序员 学 Golang 赚钱么,按照目前的趋势有必要学习么?
学 rust ,赌一个未来。
想赚快钱去直播吧,我弟大一,一天直播几个小时能拿几百。
2024-11-11 09:53:54 +08:00
回复了 garylikira 创建的主题 阅读 有没有好读的书籍推荐,不想无脑看小说了
《云边有个小卖部》
2024-11-11 09:50:42 +08:00
回复了 gegewu0927 创建的主题 Linux WeChat Linux 终于等到与其他的平台一起显示在官网了!
@fana

佬,为啥我的 wechat 需要 sudo 权限才能启动,我通过 wechat.desktop 启动不了 wechat ,必须在命令行 sudo wechat 才能启动,要不然就会报错:

```
zsh: segmentation fault (core dumped) wechat
[1111/095014.027099:ERROR:exception_handler_server.cc(53)] EPOLLERR: Connection reset by peer (104)
```
1 ... 2  3  4  5  6  7  8  9  10  11 ... 15  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   4479 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms · UTC 10:03 · PVG 18:03 · LAX 02:03 · JFK 05:03
♥ Do have faith in what you're doing.