thảo luận Tổng hợp các cách lấy file cấu hình WireGuard của các dịch vụ VPN như NordVPN, SurfShark VPN.....để cài lên router Mikroitk

Đệt config tùm lum con openwrt nên chạy ngon nord netflix sling disney hbo :D.
 

Attachments

  • IMG_20230112_152845.jpg
    IMG_20230112_152845.jpg
    237.3 KB · Views: 30
  • IMG_20230112_152827.jpg
    IMG_20230112_152827.jpg
    273.7 KB · Views: 26
  • IMG_20230112_152811.jpg
    IMG_20230112_152811.jpg
    245.8 KB · Views: 30
có cách nào chọn sever location theo ý mình ko ạ ? thấy nó nhảy sever tự động ko ạ ?
Anh xem thử bài này ạ:

https://voz.vn/p/19018268/

Em đang dùng như sau:

nordvpn_find.ps1:

Code:
$nordservers = Invoke-WebRequest -Uri https://nordvpn.com/api/server -UseBasicParsing -Method GET | ConvertFrom-Json; $nordservers | export-csv -Path C:\Downloads\nordvpn-All_$(get-date -f yyyyMMdd_%H%m%s).csv;
$nordservers | where country -eq 'Singapore' | select ip_address,domain,load,features | Sort-Object -Property load | export-csv -Path C:\Downloads\nordvpn-Sing_$(get-date -f yyyyMMdd_%H%m%s).csv;
$nordservers | where country -eq 'United States' | select ip_address,domain,load,features | Sort-Object -Property load | export-csv -Path C:\Downloads\nordvpn-US_$(get-date -f yyyyMMdd_%H%m%s).csv;
$nordservers | where country -eq 'Hong Kong' | select ip_address,domain,load,features | Sort-Object -Property load | export-csv -Path C:\Downloads\nordvpn-HK_$(get-date -f yyyyMMdd_%H%m%s).csv;
$nordservers | where country -eq 'Vietnam' | select ip_address,domain,load,features | Sort-Object -Property load | export-csv -Path C:\Downloads\nordvpn-VN_$(get-date -f yyyyMMdd_%H%m%s).csv;
 
Hướng dẫn lấy file cấu hình SurfShark VPN

1. Cài ứng dụng chính chủ SurfShark VPN

https://surfshark.com/download/windows

2. Đăng nhập tài khoản SurfShark, và vào mục Settings trên phần mềm, chọn giao thức WireGuard và ấn Connect.

3. Download và copy file tạo file WireGuard vào thư mục cài đặt SurfShark chính chủ ở bước 1

https://github.com/PolicyPuma4/surfshark-wireguard-tunnel-generator/releases/tag/v1.0

4. Ấn chuột phải chọn Run as Administrator, và sẽ sinh ra 1 thư mục wireguard-tunnels, và tất cả file WireGuard của những quốc gia có server hỗ trợ sẽ ở đó.

5. Thích quốc gia nào muốn VPN tới thì chú file có viết tắt của tên quốc gia đó, ví dụ Singaporlà sg-.... nếu là server có IP động thì có thêm ký hiệu st

Khi tích hợp với Mikrotik, thì do phần Listen Port trong file cấu hình không có, và có thể thay đổi, nên tải ứng dụng WireGuard chính chủ.

Nếu ngại cài WireGuard thì có thể thử Listen Port 58923, còn không thì bắt buộc phải cài WireGuard xem thông số Listen Port của server quốc gia đó.

Phần Keealive để 00:00:25 giây.


https://www.wireguard.com/install/

Để xem Listen Port rồi mới điền vào thông số trong Mikrotik.

File config sẽ có định dạng:

[Interface]
PrivateKey = abc
Address = 10.14.0.2/16
DNS = 162.252.172.57, 149.154.159.92

[Peer]
PublicKey = xyz
AllowedIps = 0.0.0.0/0
Endpoint = sg-sng.prod.surfshark.com:51820

và phần thứ 3 trong file config thì sẽ không sử dụng

[Peer]
PublicKey = không dùng
AllowedIPs = 172.16.0.36/32
Endpoint = 92.249.38.1:51820
Cho em hỏi sao phần Listen Port hiện giờ không thể xem trong wireguard chính chủ ạ?
 
Back
Top