Files
nexus/wiki/sources/Ubuntu-Server科学上网配置.md

38 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Ubuntu Server科学上网"
type: source
tags: [ubuntu, v2rayn, proxychains, 科学上网, docker]
date: 2025-12-29
---
## Source File
- [[raw/Home Office/Ubuntu Server科学上网.md]]
## Summary
- 核心主题Ubuntu Server上配置V2RayN代理实现科学上网
- 问题域:如何在无图形界面的服务器上通过代理访问外网
- 方法/机制安装V2RayN → 配置proxychains → curl测试 → Docker代理配置
- 结论/价值服务器端代理配置比桌面端更复杂需要注意DNS和代理协议配置
## Key Claims
- V2RayN在服务器上通过命令行运行参考3X-UI Xray安装
- curl测试代理curl -x socks5h://127.0.0.1:10808 -v https://www.google.com
- -x socks5h://的h表示让代理服务器解析域名防止DNS污染
- Docker代理配置/etc/systemd/system/pkg-ContainerManager-dockerd.service.d/http-proxy.conf
## Key Concepts
- [[V2RayN]][TODO] 代理客户端
- [[proxychains]]:强制特定程序走代理的工具
- [[SOCKS5代理]]:一种代理协议
## Key Entities
- [[V2RayN]]:代理客户端
- [[Ubuntu]]:服务器操作系统
## Connections
- [[V2RayN]] ← 代理客户端 ← 科学上网
- [[proxychains]] ← 代理强制工具 ← Ubuntu
## Contradictions
- 无明显冲突