Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
terraguard — 🛡️ 🔒 本项目的目标是简单创建和销毁你自己的基于WireGuard的VPN服务。 | Kitploit
工具/GitHubGitHub/p0ssuidao/terraguard
云基础设施安全网络安全DevSecOps
GitHubp0ssuidao/terraguard

terraguard

🛡️ 🔒 本项目的目标是简单创建和销毁你自己的基于WireGuard的VPN服务。

查看仓库
6391142年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

关于项目

本项目的目标是利用 WireGuard 简单创建和销毁你自己的 VPN 服务。

前提条件

  • Terraform >= 1.0.0
  • Ansible >= 2.10.5

如何部署

Terraform

需要使用 sudo 运行,因为我们需要本地主机权限来安装软件包、配置网络接口和启动进程。

选择你的云提供商 AWS、DigitalOcean、GCP,然后打开对应目录

你可以在 variable.tf 中更改区域或密钥名称。

  • 初始化 Terraform
root@kitploit:~
sudo terraform init
  • 预览我们的修改
root@kitploit:~
sudo terraform plan
  • 应用更改
root@kitploit:~
sudo terraform apply
  • 对于 Digital Ocean,你需要在 variable.tf 或命令行中声明你的令牌 (do_token):
root@kitploit:~
sudo terraform plan -var "do_token=value"
sudo terraform apply -var "do_token=value"
  • 对于 GCP,你需要在 variable.tf 或命令行中声明你的项目 ID (project_id):
root@kitploit:~
sudo terraform plan -var "project_id=value"
sudo terraform apply -var "project_id=value"

你通过环境变量 GOOGLE_APPLICATION_CREDENTIALS 向 Terraform 提供密钥:

root@kitploit:~
export GOOGLE_APPLICATION_CREDENTIALS=path
  • 对于 AWS,你需要使用以下命令配置凭证:
root@kitploit:~
sudo aws configure

或者你可以使用环境变量作为凭证:

root@kitploit:~
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=

测试 - 检查 IP

  • 测试无 VPN 时的连接
root@kitploit:~
curl ipinfo.io/ip
  • 启动 VPN
root@kitploit:~
sudo systemctl start wg-quick@wg0
  • 测试有 VPN 时的连接
root@kitploit:~
curl ipinfo.io/ip

移动客户端

如果你需要额外的移动客户端,你需要更改 variable.tf 或命令行中的变量 mobile 的值:

root@kitploit:~
sudo terraform plan -var "mobile=true"
sudo terraform apply -var "mobile=true"

如果启用该变量,则会安装 qrencode 软件包,用于生成二维码,其中包含可在移动设备上配置的配置信息。

执行后,Terraform 的标准输出会生成一个二维码,只需在移动设备上扫描即可。

已在 Android WireGuard 客户端 上测试

🧹 清理

  • 只需运行:
root@kitploit:~
sudo terraform destroy

☁️ 云提供商

  • AWS
  • Digital Ocean
  • GCP
  • Azure
  • OCI

🤝 贡献

欢迎贡献、提交问题和功能请求!
请随时查看 issues 页面。

🛣️ 路线图

  • 工作🤣
  • Linux 客户端 (Debian、RedHat 和 Arch 基系)
  • 使用 Terraform 在 AWS 上部署服务器
  • 移动客户端
  • Mac 客户端
  • 添加其他云提供商

作者

👤 João Freire

  • Twitter: @p0ssuidao
下载工具