Use Remote Internet Access
-
- OpenVpn Newbie
- Posts: 1
- Joined: Mon Sep 26, 2022 3:25 pm
Use Remote Internet Access
How to use Remote Internet Access instead of Local Internet Access when connecting to an OpenVPN cloud?
- openvpn_inc
- OpenVPN Inc.
- Posts: 1332
- Joined: Tue Feb 16, 2021 10:41 am
Re: Use Remote Internet Access
Hello RR13,
OpenVPN Cloud only provides a private-only internal network. It does not provide an egress point where Internet traffic from connected VPN clients can reach out to the Internet. But you can add such an egress point yourself, and send VPN client traffic through there to the Internet.
This guide describes this:
https://openvpn.net/cloud-docs/secure-i ... min-guide/
Kind regards,
Johan
OpenVPN Cloud only provides a private-only internal network. It does not provide an egress point where Internet traffic from connected VPN clients can reach out to the Internet. But you can add such an egress point yourself, and send VPN client traffic through there to the Internet.
This guide describes this:
https://openvpn.net/cloud-docs/secure-i ... min-guide/
Kind regards,
Johan
OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support
-
- OpenVpn Newbie
- Posts: 4
- Joined: Mon Oct 31, 2022 9:54 am
Re: Use Remote Internet Access
Hi Johan,openvpn_inc wrote: ↑Tue Sep 27, 2022 8:32 amHello RR13,
OpenVPN Cloud only provides a private-only internal network. It does not provide an egress point where Internet traffic from connected VPN clients can reach out to the Internet. But you can add such an egress point yourself, and send VPN client traffic through there to the Internet.
This guide describes this:
https://openvpn.net/cloud-docs/secure-i ... min-guide/
Kind regards,
Johan
I have followed your instruction to successfully access Internet from within the OpentVPN Cloud network. My connector is Ubuntu 20.04 which is a VPS provided by kamatera. My own machine is Windows 10 PC.
Everything works great so far. Web browsing and so on.
But I can not ping www.google.com.
ping command complains
> Destination net unreachable.
Do you have a clue how to solve this issue?
- openvpn_inc
- OpenVPN Inc.
- Posts: 1332
- Joined: Tue Feb 16, 2021 10:41 am
Re: Use Remote Internet Access
Hello krave,
After discussing with a colleague of mine, we think it's probably a misconfiguration on the Connector that is providing Internet access to OpenVPN Cloud. Can you verify that IP forwarding for IPv6 is enabled on this node that provides Internet access?
Here's for example how a Linux node configured as a Connector can provide IPv4 and IPv6 access;
# Allow IPv4 and IPv6 packet forwarding
sudo sed -i 's/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/g' /etc/sysctl.conf
sudo sed -i 's/#net.ipv6.conf.all.forwarding=1/net.ipv6.conf.all.forwarding=1/g' /etc/sysctl.conf
sudo sysctl -p
# NAT all IPv4 and IPv6 traffic via Default interface
IF=$(ip route | grep default | awk '{print $5}')
sudo iptables -t nat -A POSTROUTING -o $IF -j MASQUERADE
sudo ip6tables -t nat -A POSTROUTING -o $IF -j MASQUERADE
Perhaps it is simply this that's blocking IPv6 while IPv4 may be working normally.
It's also possible that there's a firewall installed in or around the node that provides Internet access, and that that's blocking IPv6. So I suggest you check these things and see if you can get things working properly then.
Kind regards,
Johan
After discussing with a colleague of mine, we think it's probably a misconfiguration on the Connector that is providing Internet access to OpenVPN Cloud. Can you verify that IP forwarding for IPv6 is enabled on this node that provides Internet access?
Here's for example how a Linux node configured as a Connector can provide IPv4 and IPv6 access;
# Allow IPv4 and IPv6 packet forwarding
sudo sed -i 's/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/g' /etc/sysctl.conf
sudo sed -i 's/#net.ipv6.conf.all.forwarding=1/net.ipv6.conf.all.forwarding=1/g' /etc/sysctl.conf
sudo sysctl -p
# NAT all IPv4 and IPv6 traffic via Default interface
IF=$(ip route | grep default | awk '{print $5}')
sudo iptables -t nat -A POSTROUTING -o $IF -j MASQUERADE
sudo ip6tables -t nat -A POSTROUTING -o $IF -j MASQUERADE
Perhaps it is simply this that's blocking IPv6 while IPv4 may be working normally.
It's also possible that there's a firewall installed in or around the node that provides Internet access, and that that's blocking IPv6. So I suggest you check these things and see if you can get things working properly then.
Kind regards,
Johan
OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support
-
- OpenVpn Newbie
- Posts: 4
- Joined: Mon Oct 31, 2022 9:54 am
Re: Use Remote Internet Access
Hello Johan,
Thank you for your prompt reply!
I have double checked with the connector provider.
They have confirmed with me that their node doesn't work with IPv6.
Thanks for your help!
Thank you for your prompt reply!
I have double checked with the connector provider.
They have confirmed with me that their node doesn't work with IPv6.
Thanks for your help!
- openvpn_inc
- OpenVPN Inc.
- Posts: 1332
- Joined: Tue Feb 16, 2021 10:41 am
Re: Use Remote Internet Access
Hello krave,
Oh, well, that explains that then, haha.
Alright then, have a nice day,
Johan
Oh, well, that explains that then, haha.
Alright then, have a nice day,
Johan
OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support