<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>wireguard on Two Tigers Engineering</title>
    <link>https://blog.twotigers.xyz/tags/wireguard/</link>
    <description>Recent content in wireguard on Two Tigers Engineering</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 01 Sep 2025 00:30:08 +0800</lastBuildDate><atom:link href="https://blog.twotigers.xyz/tags/wireguard/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>wg 使用</title>
      <link>https://blog.twotigers.xyz/posts/witeguard/</link>
      <pubDate>Mon, 01 Sep 2025 00:30:08 +0800</pubDate>
      
      <guid>https://blog.twotigers.xyz/posts/witeguard/</guid>
      <description>wg-go 使用说明 项目地址: https://github.com/marlin2024/wg-go
介绍 wg-go 提供了一套工具，可以在 非 root 用户 下运行 WireGuard，并且支持通过 Cloudflare Warp 落地到指定国家或地区。 它的核心思路是把 WireGuard 封装成 SOCKS5 代理，避免直接使用 tun，这样既安全又方便，也非常适合容器环境。
特性 非 root 用户即可运行 WireGuard 提供 SOCKS5 代理接口 支持 Warp 与其他代理叠加 容器环境友好 可以搭建 wg-over-wg 这样的实验场景 使用方法 1. socks-wg 直接将 WireGuard 转换成本地 SOCKS5 代理。
go run ./socks_over_wg \ -config socks_over_wg/wg.conf \ -listen 127.0.0.1:9999 效果对比：
# 直连（本机 IP） curl https://ipinfo.io/json # 通过 socks-wg 代理（Warp IP） curl -x socks5://127.0.0.1:9999 https://ipinfo.io/json 2. socks-wg-upstream_socks 在 socks-wg 的基础上，可以指定上游 SOCKS 代理。</description>
    </item>
    
  </channel>
</rss>
