[GH-ISSUE #45] No Internet #34

Open
opened 2026-02-25 20:30:20 +03:00 by kerem · 1 comment
Owner

Originally created by @sameerlike141 on GitHub (Mar 17, 2023).
Original GitHub issue: https://github.com/adamwalach/openvpn-web-ui/issues/45

Vpn is connected but internet is not working can you please tell me what is the issue

Originally created by @sameerlike141 on GitHub (Mar 17, 2023). Original GitHub issue: https://github.com/adamwalach/openvpn-web-ui/issues/45 Vpn is connected but internet is not working can you please tell me what is the issue
Author
Owner

@noamansaiyed commented on GitHub (Aug 8, 2023):

The initial issue of the VPN connection remaining active but not transmitting any data was resolved by incorporating a masquerade rule within the openvpn container. This was achieved by accessing the openvpn container using the command and then implementing the following iptables rules:

docker exec -it openvpn /bin/bash
iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 172.16.0.0/12 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.0.0/16 -j MASQUERADE

These rules effectively resolved the connectivity issue and allowed the desired traffic to flow through the VPN connection successfully.

<!-- gh-comment-id:1669741744 --> @noamansaiyed commented on GitHub (Aug 8, 2023): The initial issue of the VPN connection remaining active but not transmitting any data was resolved by incorporating a masquerade rule within the openvpn container. This was achieved by accessing the openvpn container using the command and then implementing the following iptables rules: ```bash docker exec -it openvpn /bin/bash iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -j MASQUERADE iptables -t nat -A POSTROUTING -s 172.16.0.0/12 -j MASQUERADE iptables -t nat -A POSTROUTING -s 192.168.0.0/16 -j MASQUERADE ``` These rules effectively resolved the connectivity issue and allowed the desired traffic to flow through the VPN connection successfully.
kerem changed title from [GH-ISSUE #45] No Internet to [GH-ISSUE #45] No Internet 2026-02-28 12:08:37 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/openvpn-web-ui#34
No description provided.