Question Create an Open Vpn Server on Ubuntu

GorgKhan

Reputable
Jul 21, 2020
27
1
4,530
I installed open VPN on Ubuntu by pivpn. My Ubuntu VPS has a public IPV4. I wonder if I can create an open vpn IPV6 server? I want my clients to connect to this server through tcp6/udp6. I use a tool on my client which shows the connection is established through tcp4. What I want is to establish the connection through tcp6. So Is it possible to create a tcp6/udp6 server on a machine which has a public ipv4?
 
I installed open VPN on Ubuntu by pivpn. My Ubuntu VPS has a public IPV4. I wonder if I can create an open vpn IPV6 server? I want my clients to connect to this server through tcp6/udp6. I use a tool on my client which shows the connection is established through tcp4. What I want is to establish the connection through tcp6. So Is it possible to create a tcp6/udp6 server on a machine which has a public ipv4?
If, as you've stated, you have a public IPV4 address on the server, you cannot connect to it via IPV6.
 
Aug 29, 2024
13
3
15
I installed open VPN on Ubuntu by pivpn. My Ubuntu VPS has a public IPV4. I wonder if I can create an open vpn IPV6 server? I want my clients to connect to this server through tcp6/udp6. I use a tool on my client which shows the connection is established through tcp4. What I want is to establish the connection through tcp6. So Is it possible to create a tcp6/udp6 server on a machine which has a public ipv4?
ex_bubblehead is not totally right. You can actually set up an OpenVPN server to handle IPv6 even if your VPS only has a public IPv4 address. First off, make sure your VPS provider supports IPv6. Then, you can configure your server to work with both IPv4 and IPv6 (that's called dual-stack networking). This way, your clients can connect using either protocol. Have you checked if your VPS provider offers IPv6?
 

GorgKhan

Reputable
Jul 21, 2020
27
1
4,530
If, as you've stated, you have a public IPV4 address on the server, you cannot connect to it via IPV6.
I tried a google play store vpn that established the connection through udp6/tcp6 while the remote server had an ipv4 address. I also checked myips sites to see its ipv6 but that was not available.
 

GorgKhan

Reputable
Jul 21, 2020
27
1
4,530
ex_bubblehead is not totally right. You can actually set up an OpenVPN server to handle IPv6 even if your VPS only has a public IPv4 address. First off, make sure your VPS provider supports IPv6. Then, you can configure your server to work with both IPv4 and IPv6 (that's called dual-stack networking). This way, your clients can connect using either protocol. Have you checked if your VPS provider offers IPv6?
they don't provide a public IPv6 address. I'm not sure what you mean but there are services running/listening that use tcp6.
Give me some clues so I can search through Internet.
 
  • Like
Reactions: Otto Levin

GorgKhan

Reputable
Jul 21, 2020
27
1
4,530
If you have a IPv4 address why do you want IPv6.

You can tunnel ipv6 through IPv4 but it is very rare that any application requires IPv6
as @ex_bubblehead mentioned, IPv6 is rarely blocked by ISPs. I tried some common and some custom tcp4 ports but they were blocked by my ISP. Then instead of trying all of tcp4 ports, installed a google play vpn and checked the connection was established via tcp6.
So guide me how to tunnel IPv6 through IPv4.
 
What I don't see is how this is related to your IPv4 vpn.

If for example you wanted to access a web site that uses only IPv6 (these are extremely rare) it would not work using your IPv4 vpn tunnel. You could if you work at it hard enough build a IPv6 tunnel though the IPv4 vpn tunnel. Problem is the server you are using needs to have access to a IPv6.

The blocking of ports is a reason many people use the VPN. I guess it depends on if they are blocking the vpn itself.

OPENVPN though can be configured to run on standard HTTPS (443) ports. This is part of the reason people use OPENVPN it tends to pass through all firewalls/nat etc. Now very techncially the most common implementations are not actually using true HTTPS protocols so it can be detected. This is more a China thing where they go to great effort to block VPN. There are OPENVPN implementations that do use actual HTTPS handshakes to open the session...china though claims they can detect even these. Pretty much unless you are dealing with china government, openvpn is impossible to block.

Once you use VPN all your traffic from the remote location to your server would appear as encrypted web traffic. All your actual traffic and ports would be hidden inside.
 
Aug 29, 2024
13
3
15
GorgKhan, honestly, bill001g's got it right, and I’m with him on this one. You don’t need a public IPv6 address to make things work. You can just tunnel that IPv6 traffic over your existing IPv4 connection, like slipping a note under the door. The trick here is to use something like 6in4, and bam, you’ve got IPv6 riding along your IPv4 like it's no big deal. Here is a free service to help you set up the tunnel. So, there is no need to panic about not having a native IPv6 address from your provider. So yeah, bill001g's tunneling suggestion is the way to go.