Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Internet #45

Open
sameerlike141 opened this issue Mar 17, 2023 · 1 comment
Open

No Internet #45

sameerlike141 opened this issue Mar 17, 2023 · 1 comment

Comments

@sameerlike141
Copy link

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

@noamansaiyed
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants