OpenVPN - custom Private Network?

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
stormy
OpenVpn Newbie
Posts: 3
Joined: Wed Nov 02, 2022 9:23 pm

OpenVPN - custom Private Network?

Post by stormy » Wed Nov 02, 2022 9:29 pm

Noticed that upon connection to VPN a message appears, and this interface is created:

Unknown adapter OpenVPN TAP-Windows6:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::64f6:7204:c55d:25f3%45
IPv4 Address. . . . . . . . . . . : 10.8.8.6
Subnet Mask . . . . . . . . . . . : 255.255.255.0

the question, how does one change the subnet range from 10.* to something in 172.16.*?

As described here: https://openvpn.net/community-resources ... e-subnets/
there are 3 ranges, I've got many conflicts on the 10.* and 192.168, so would like to see if the TAP interface can be configured to 172.16.*?

Thanks.

User avatar
Pippin
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: OpenVPN - custom Private Network?

Post by Pippin » Wed Nov 02, 2022 9:40 pm

The adapter is configured by the server configuration.
It is the tunnel subnet (10.8.8.0/24 in your case) as depicted here:
https://community.openvpn.net/openvpn/w ... gConflicts
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

stormy
OpenVpn Newbie
Posts: 3
Joined: Wed Nov 02, 2022 9:23 pm

Re: OpenVPN - custom Private Network?

Post by stormy » Thu Nov 03, 2022 12:04 am

Does that mean I need/at the mercy of the VPN Service provider(s)? I looked at the vpn client config script, could not find it there.

Do they "transmit" the tunnel subnet to be used and it is outside of my direct control at the client/OS side? Very strange that the server will force a subnet onto the Client side.... what if not all clients want the same subnet? shouldn't that control be at the hands of client?

If so, what should I say to a VPN provider to change this private subnet?

Does anyone know if there are VPN providers that allow such selection? (not sure if company names are allowed to be discussed, maybe PM if that is not allowed)

Thanks.
Stormy.

User avatar
ordex
OpenVPN Inc.
Posts: 444
Joined: Wed Dec 28, 2016 2:32 am
Location: IRC #openvpn-devel @ libera.chat

Re: OpenVPN - custom Private Network?

Post by ordex » Thu Nov 03, 2022 12:45 pm

Yeah, basically this is controlled by who runs the server (the provider). To be honest I hardly believe they will change the subnet just for one customer, but it's worth asking. The chosen subnet is normally hooked into technical decisions made by the provider so, I don't think this can be "selectable".

Are you using the 10.8.8.0/24 subnet somewhere else?

stormy
OpenVpn Newbie
Posts: 3
Joined: Wed Nov 02, 2022 9:23 pm

Re: OpenVPN - custom Private Network?

Post by stormy » Fri Nov 04, 2022 2:35 pm

it seems the 10.8.* changes over time, so not same number, sometimes 10.14, etc.

I have (many) 10.* routes to another network on same PC just different NIC, was thinking that split-tunnel would allow running both and keeping traffic separate..

however, looking further it seems that issue is probably more DNS related, in that the Split-Tunnel splits the (udp/tcp) traffic, BUT, all the DNS requests are going on to the VPN as well, as such name resolution for other networks are not possible!! I think I need something like "split dns"? so that if a name does not resolve in the VPN it would go to the other defined DNSs.. OR, only certain apps would use the vpn-dns, all others will use other dns's on the server.

Thanks for any tips...
Stormy.

Post Reply