• 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

Cách hạn chế Synology NAS bị Ransomware .L0CK3D: Cách khắc phục
Network

Cách hạn chế Synology NAS bị Ransomware .L0CK3D: Cách khắc phục

October 30, 2026
Instructions for updating PHP to avoid PHP2Shell
Network

Instructions for updating PHP to avoid PHP2Shell

October 22, 2026
Instructions for detecting network vulnerabilities: How to check the system for data leaks (IP/DNS)
Network

Instructions for detecting network vulnerabilities: How to check the system for data leaks (IP/DNS)

October 9, 2026
Is Renting a Cheap VPS to Run Docker Really Effective?
Network

Is Renting a Cheap VPS to Run Docker Really Effective?

July 2, 2026
How to get a free domain for 1 year from Gravatar
Network

How to get a free domain for 1 year from Gravatar

June 23, 2026
Cloud Infrastructure Resilience: Mitigating Advanced Layer 7 Vulnerabilities and Securing High-Throughput Database Handshakes
Network

Cloud Infrastructure Resilience: Mitigating Advanced Layer 7 Vulnerabilities and Securing High-Throughput Database Handshakes

June 20, 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

How to create a virtual Android phone with US IP for free forever

How to create a virtual Android phone with US IP for free forever

November 17, 2026
Instructions for buying a free .com domain name on Checkdomain

Instructions for buying a free .com domain name on Checkdomain

November 16, 2026
Instructions on how to restore Word files that were accidentally turned off without being saved

Instructions on how to restore Word files that were accidentally turned off without being saved

November 16, 2026
Test how well ChatGPT understands you with the box

Test how well ChatGPT understands you with the box

November 15, 2026
How to create a virtual Android phone with US IP for free forever

How to create a virtual Android phone with US IP for free forever

November 17, 2026
Instructions for buying a free .com domain name on Checkdomain

Instructions for buying a free .com domain name on Checkdomain

November 16, 2026
Instructions on how to restore Word files that were accidentally turned off without being saved

Instructions on how to restore Word files that were accidentally turned off without being saved

November 16, 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

How to create a virtual Android phone with US IP for free forever

How to create a virtual Android phone with US IP for free forever

November 17, 2026
Instructions for buying a free .com domain name on Checkdomain

Instructions for buying a free .com domain name on Checkdomain

November 16, 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