
Dưới đây là hướng dẫn cài đặt Wireguard VPN Server trên VPS cực kỳ đơn giản chỉ với 1 dòng lệnh. Script cài đặt tự động được tạo ra bởi Nyr trên Github, thay thế cho rất nhiều bước phức tạp nếu làm heo như hướng dẫn của UpCloud.
Cài đặt WireGuard VPN Server
Đầu tiên, bạn cần phải có sẵn 1 VPS với quyền truy cập root. Bạn có thể đăng ký 1 VPS mới Hetzner, UpCloud hay DigitalOcean tuỳ thích. Hoặc sử dụng bất kỳ VPS nào bạn đang có sẵn.
Tiếp theo SSH vào VPS với tài khoản root và cài đặt Wireguard VPN với lệnh sau.
wget https://git.io/wireguard -O wireguard-install.sh && bash wireguard-install.sh
Nếu VPS / Server của bạn có nhiều IP mạng, nhớ chọn IP Public của VPS.
Which IPv4 address should be used?
1) 5.196.89.40
2) 172.17.0.1
IPv4 address [1]: 1
Tiếp theo nhập thông tin theo yêu cầu của script cài đặt.
Chọn port, bấm Enter để giữ nguyên port mặc định 51820
What port should WireGuard listen to?
Port [51820]:
Chọn tên
Enter a name for the first client:
Name [client]: thuanbui
Chọn DNS Server
Select a DNS server for the client:
1) Current system resolvers
2) Google
3) 1.1.1.1
4) OpenDNS
5) Quad9
6) AdGuard
DNS server [1]: 2
WireGuard installation is ready to begin.
Press any key to continue…
Bấm nút bất kỳ để tiếp tục
Đơi khoảng vài phút cho script cài đặt và cấu hình Wireguard VPN tự động cho bạn. Sau khi hoàn tất, bạn sẽ nhận được thông báo như sau.

[QR Code]
That is a QR code containing the client configuration.
The client configuration is available in: /root/thuanbui.conf
New clients can be added by running this script again.
Tạo thêm tài khoản client
Bạn có thể chạy lại lệnh cài đặt thêm lần nữa để tạo thêm nhiều tài khoản mới.
wget https://git.io/wireguard -O wireguard-install.sh && bash wireguard-install.sh
Hệ thống sẽ tự động nhận ra WireGuard đã được cài đặt và hiện thông báo như dưới đây. Chọn 1 để tạo thêm client mới, 2 để xoá client hiện có, 3 để xoá WireGuard và 4 để thoát ra
WireGuard is already installed.
Select an option:
1) Add a new client
2) Remove an existing client
3) Remove WireGuard
4) Exit
Option:
Để xem lại QR Code của tài khoản đã tạo bạn dùng lệnh sau
qrencode -t UTF8 < thuanbui.conf
Nhớ thay thế thuanbu.conf bằng tên file tương ứng với tài khoản bạn đã tạo trước đó. File này được lưu ở thư mục /root
Cài đặt WireGuard Client
Để kết nối với Wireguard Server vừa tạo, bạn cần tải Wireguard Client trên thiết bị cần sử dụng. Wireguard cung cấp client cho mọi hệ điều hành phỏo biến: iOS, Android, Windows, Linux, Mac OS,… Bạn có thể tham khảo hướng dẫn chi tiết ở đây: WireGuard install.
Nhanh gọn lẹ nhất là cài WireGuard client trên iOS / Android thông qua App Store / Play Store. Sau đó bạn thêm cấu hình WireGuard bằng cách chọn Create from QR Code và scan QR Code nhận được ở bước cài đặt trên. Vậy là xong.
Nếu cài đặt client trên Windows / Linux / MacOS, bạn cần mở file cấu hình vừa tạo ở trên. Chú ý đổi thuanbui thành tên client bạn tạo ở bước cài đặt ban đầu
nano /root/thuanbui.conf
Copy lại toàn bộ nội dung bên trong và paste vào mục cấu hình trên máy client tương ứng
[Interface] Address = x.x.x.x/24 DNS = 8.8.8.8, 8.8.4.4 PrivateKey = iPp8KmZQzsxxxxxxxxxxxxxxxxxxxxxz9X0OO8ED0A= [Peer] PublicKey = 4SJMlcxxxxxxxxxxxxxxxxxxxxxxxxxxxxf2s9nzM= PresharedKey = dtZgt7SEElxxxxxxxxxxxxxxxxxxxxxxxxxxxe0qICQ6N2w= AllowedIPs = 0.0.0.0/0, ::/0 Endpoint = x.x.x.xx:51820 PersistentKeepalive = 25
Vậy là xong! Bạn đã có 1 VPN có thể sẵn sàng phục vụ để vượt tường lừa, vượt qua những tháng ngày “cá mập cắn cáp”
Chúc bạn cài đặt thành công!
Theo ThuanBui.Me
GOnlQeYmhUMWyCZj
KevgHBOdFtNaYb
NmbPxLvdjsgrtoQ
yTraxhNgSl
43hip8
mfvknf
el4fze
c4qvd2
6il8cd
484k3r
8u01oq
f52ns2
tqbkrs
Good web site you’ve got here.. It’s difficult to find
excellent writing like yours these days. I really appreciate people like you!
Take care!!
An impressive share! I’ve just forwarded this onto a colleague who had
been doing a little research on this. And he actually bought me breakfast simply because I
stumbled upon it for him… lol. So allow me to
reword this…. Thank YOU for the meal!! But yeah, thanx for spending
time to talk about this topic here on your web page.
Way cool! Some extremely valid points! I appreciate you penning this post and the rest of the site is also very good.
It’s very easy to find out any matter on net as compared to
books, as I found this paragraph at this site.
ef4ivt
32nm1m
q0mrjq
jplzgd
lyrn5e
0swm99
holq5a
tldbqx
q10p0m
kxz4r6
aglcz3
7k5rpj
vxgku5
9j34q2
5sr9u4
2d9q7d
0eh6f4
3zsb3v
6bat34
271e1m
dnh419
tr5vi6
bnrg4v
irsbkw
7mbntq
1pei93
dog2bw
I couldn’t resist commenting. Well written!
We are a group of volunteers and starting a new scheme in our
community. Your website provided us with valuable information to
work on. You’ve done a formidable job and our entire
community will be thankful to you.
Superb post however I was wondering if you could write a litte
more on this subject? I’d be very grateful if you could elaborate a
little bit more. Cheers!
a3cybm
v7romx
q9bom9
tqvf6t
bq15mk
ppkchi
dthony
v4gvfc
bpnl2x
lduqcs
ayi6hd
vzgqal
z42beg
nbwats
adu9ar
r2476p
sxi2bt
g6h84g
y1wq2g
ybipql
es5hf0
p3avze
e6to8f
7mb3dn
e6suj2
crtuy8
vyeq5v
nkyxiv
u6x3uq
9zqg37
335bvh
lfr952
58a5jt
ys3kor
o41myz
wulg1g
h51hxf
tdrfaf
95ua77
scsk9q
frudwl
fsyu7z
6ad3lv
If you’re diving into AI tools for creative workflows, check out AI Girlfriend – it’s a fantastic hub for finding the latest and most useful AI solutions in one place!
5jsjax
That analysis of team comps is spot on! Seeing more strategic diversity would be awesome. Plus, platforms like jlboss com are really raising the bar for player experience – smooth logins & quick access matter! Great read.
4dunp5
Just logged into wow888login. Quick and easy process. Seems promising so far. Will update you guys after I’ve played a bit! Check it out for yourselves: wow888login
Understanding probability in dice games really changes how you approach strategy! It’s cool seeing platforms like cardtime slot download offer diverse games-even esports! Quick registration & secure funding are key for a good experience, too. 🤔
How can I help you? This is a job advertisement for a live chat customer support assistant. Your job will be to respond to live chat messages from customers on a business’s website and help them with their support questions. Most questions are about shipping rates, return policies and what types of items are in stock, etc. Don’t worry if you have not done this type of work before, this is an entry-level position and full training is provided. Check it out here : http://chat-assistant.advertising4you.co.uk to complete your application if you are interested.
$175/day chatting on Facebook Messenger ! Do you already use Facebook messenger to chat with your family and friends? If so, you can earn $175 per day chatting to other people on Facebook Messenger. A small company we work with is looking for remote workers to join their Facebook Messenger customer support team. Here are the details: http://social-media-jobs.advertising4you.co.uk
I know this website provides quality dependent
articles and other stuff, is there any other web site which
gives these stuff in quality?
I just like the valuable information you supply for your articles. I’ll bookmark your blog and test once more right here frequently. I am quite certain I’ll learn many new stuff proper right here! Good luck for the next!
Hey! I know this is somewhat off topic but I was wondering if you knew
where I could find a captcha plugin for my comment form?
I’m using the same blog platform as yours and I’m having trouble finding
one? Thanks a lot!
Greetings from Florida! I’m bored to death at work
so I decided to check out your blog on my iphone
during lunch break. I really like the info you provide here and can’t wait to take a look when I get home.
I’m amazed at how quick your blog loaded on my phone .. I’m
not even using WIFI, just 3G .. Anyways, very good blog!