• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

How to fix the error of Wireguard Client not being able to access the Internet when NAT twice

AnonyViet by AnonyViet
November 20, 2025
in Network
0

In case my house is NATed twice: that is, Internet model -> Network Router -> Load Balancing Router -> VPN Server. When the Client connects to Wireguard, there is traffic (bytes sent and bytes received) but the Client cannot go to the Internet.

Join the channel Telegram belong to AnonyViet 👉 Link 👈

How to fix the error of Wireguard Client not being able to access the Internet when NAT twice

Ways to fix the error of Wireguard Client not being able to access the Internet when Nating twice are as follows:

On the Wireguard server execute the command: ip -o -4 route show to default

Check the results to see what network card you are using? In my case, the result will be:

default via 192.168.1.1 dev wlan0 proto dhcp src 192.168.1.32 metric 600

So you are using the card wlan0. If your Server is another Card, remember the Card name

Next enter the following commands (replace wlan0 with your card)

# Thêm NAT cho subnet WireGuard
sudo iptables -t nat -A POSTROUTING -s 10.113.141.0/24 -o wlan0 -j MASQUERADE

# Cho phép traffic từ wg0 đi ra LAN/Internet
sudo iptables -A FORWARD -i wg0 -o wlan0 -j ACCEPT

# Cho phép traffic ngược lại (gói trả về) đi vào wg0
sudo iptables -A FORWARD -i wlan0 -o wg0 -m state --state RELATED,ESTABLISHED -j ACCEPT

10.113.141.0/24 is the IP range given to the Client by Wireguard. Please check the actual range on your computer and fill in correctly. Open the config file in the /home/USER/configs/ directory and see the line Address =  to know the IP range.

However, when rebooting the server, the configuration will be lost. To save the configuration, execute the following command:

sudo apt install iptables-persistent -y

# Thêm NAT cho subnet WireGuard
sudo iptables -t nat -A POSTROUTING -s 10.113.141.0/24 -o wlan0 -j MASQUERADE

# Cho phép traffic từ wg0 đi ra LAN/Internet
sudo iptables -A FORWARD -i wg0 -o wlan0 -j ACCEPT

# Cho phép traffic ngược lại (gói trả về) đi vào wg0
sudo iptables -A FORWARD -i wlan0 -o wg0 -m state --state RELATED,ESTABLISHED -j ACCEPT

sudo netfilter-persistent save


A little note when doing Lab, especially at home, often NAT twice when going through network Router -> Wifi Router -> PC, you need to pay attention when doing this.

Tags: accessClienterrorfixInternetNATWireguard
Previous Post

How to configure dynamic IP as static IP with Cloudflare to do Lab at home

Next Post

How to stop Facebook from tracking you completely

AnonyViet

AnonyViet

Related Posts

The website can still be interrupted when the hosting infrastructure is attacked
Network

The website can still be interrupted when the hosting infrastructure is attacked

December 1, 2026
AnonyViet LLM – Summary of 125 Prompt Jailbreak AI, Uncensored
Network

AnonyViet LLM – Summary of 125 Prompt Jailbreak AI, Uncensored

November 29, 2026
TOP 10 AI không kiểm duyệt – AI Uncensored mới nhất
Network

TOP 10 AI không kiểm duyệt – AI Uncensored mới nhất

November 28, 2026
Vietnam static residential proxy: How to choose and use the service
Network

Vietnam static residential proxy: How to choose and use the service

November 26, 2026
SSHWATCH: Dashboard to see realtime VPS attacks using Honeypot
Network

SSHWATCH: Dashboard to see realtime VPS attacks using Honeypot

November 23, 2026
Purple Team: How to verify that the monitoring system can actually detect attacks
Network

Purple Team: How to verify that the monitoring system can actually detect attacks

November 23, 2026
Next Post
How to stop Facebook from tracking you completely

How to stop Facebook from tracking you completely

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted

Recent News

Shortcut to download TikTok videos without logo to replace SnapVideo

Shortcut to download TikTok videos without logo to replace SnapVideo

December 2, 2026
Expense Note

Expense Note

December 2, 2026
Share the latest free IObit Malware Fighter 14 key 2026

Share the latest free IObit Malware Fighter 14 key 2026

December 2, 2026
Instructions on how to turn text into songs on Messenger

Instructions on how to turn text into songs on Messenger

December 1, 2026
Shortcut to download TikTok videos without logo to replace SnapVideo

Shortcut to download TikTok videos without logo to replace SnapVideo

December 2, 2026
Expense Note

Expense Note

December 2, 2026
Share the latest free IObit Malware Fighter 14 key 2026

Share the latest free IObit Malware Fighter 14 key 2026

December 2, 2026
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

Shortcut to download TikTok videos without logo to replace SnapVideo

Shortcut to download TikTok videos without logo to replace SnapVideo

December 2, 2026
Expense Note

Expense Note

December 2, 2026
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply