Skip to content

phanduykhai05/WireGuard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Script setup WireGuard VPN on ubuntu server 22.04 LTS.

Chuẩn bị 1 VPS, Cloud server ubuntu 22.04 LTS.

  1. SSH vào VPS bằng terminal hoặc các phần mềm chuyên dụng: ssh user@you-ip
  2. Cập nhật hệ thống:
    • Lệnh:
      sudo apt update && sudo apt upgrade -y && sudo apt full-upgrade -y && sudo apt autoremove -y
  3. Script cài đặt:
    • Lệnh:
      sudo apt-get install wget -y
      wget -qO- https://raw.githubusercontent.com/quangtrangvn/WireGuard/main/wireguard-install.sh -O wireguard-install.sh
      sudo bash wireguard-install.sh
  4. Để tạo nhiều client một lần thay vì tạo từng client một, bạn có thể tùy chỉnh script WireGuard để tạo nhiều cấu hình client tự động:
    • Script cài đặt WireGuard và tạo nhiều client Lưu ý: Đảm bảo rằng bạn đã cài đặt WireGuard trước khi chạy script này. Tạo file script
    • Lệnh:
      wget -qO- https://raw.githubusercontent.com/quangtrangvn/WireGuard/main/create-multiple-clients.sh -O create-multiple-clients.sh
    • Cấp quyền thực thi cho script::
      chmod +x create-multiple-clients.sh
    • Chạy script::
      sudo ./create-multiple-clients.sh

Chú ý:

  • Script sẽ tự động lấy địa chỉ IP công khai của máy chủ và điền vào file cấu hình client.
  • Đảm bảo rằng máy chủ của bạn có kết nối Internet để script có thể hoạt động đúng cách.
  • File cấu hình client sẽ được tạo tại /etc/wireguard/clients/ Bạn có thể copy file này sang thiết bị client và import vào ứng dụng WireGuard.
  • Liên hệ https://t.me/duykhairat or mail: khaicybers@gmail.com tôi sẽ giúp bạn nếu rảnh (không thu phí).

Chúc bạn thành công!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages