• 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

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

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

November 19, 2025
What is Direct Connect AWS? Benefits when businesses use Direct Connect AWS
Network

What is Direct Connect AWS? Benefits when businesses use Direct Connect AWS

October 29, 2025
Namecheap offers 3 Domains for alt=
Network

Namecheap offers 3 Domains for $0

October 7, 2025
Proxy vượt Cloudflare là gì? Giải pháp hạn chế Captcha Cloudflare bằng Proxy dân cư
Network

Proxy vượt Cloudflare là gì? Giải pháp hạn chế Captcha Cloudflare bằng Proxy dân cư

October 1, 2025
Renova Cloud – The leading AWS management service in Vietnam today
Network

Renova Cloud – The leading AWS management service in Vietnam today

August 26, 2025
Guide to self -creation socket5 on Ubuntu
Network

Guide to self -creation socket5 on Ubuntu

May 28, 2025
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
Inline Feedbacks
View all comments

Recent News

How to stop Facebook from tracking you completely

How to stop Facebook from tracking you completely

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

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

November 20, 2025
How to configure dynamic IP as static IP with Cloudflare to do Lab at home

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

November 19, 2025
How to create caricatures with ChatGPT

How to create caricatures with ChatGPT

November 19, 2025
How to stop Facebook from tracking you completely

How to stop Facebook from tracking you completely

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

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

November 20, 2025
How to configure dynamic IP as static IP with Cloudflare to do Lab at home

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

November 19, 2025
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 stop Facebook from tracking you completely

How to stop Facebook from tracking you completely

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

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

November 20, 2025
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

trang chủ f168 trang chủ qq88 nhà cái 78win

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

trang chủ f168 trang chủ qq88 nhà cái 78win

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