TUN without a separate IP address range

This forum is for general conversation and user-user networking.

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

Post Reply
rdiez
OpenVpn Newbie
Posts: 2
Joined: Wed Dec 08, 2021 10:42 am

TUN without a separate IP address range

Post by rdiez » Wed Dec 08, 2021 10:44 am

Hi all:

I have been using OpenVPN in TAP mode for years, so that remote workers can connect to the office LAN.

Say I have an address range like 192.168.123.xxx . If DHCP uses the range .100 to .200, I can simply tell OpenVPN to use .201 to .220 for the clients (this is a small office).

But now I am investigating the TUN mode, because most mobile phones do not support TAP, at least without some head scratching.

Normally, you are told to use a separate range like 10.8.0.0/24 for OpenVPN clients. Then you must enable IP routing at the OS level, and configure the appropriate IP forwarding rules on the router.

The trouble is, network routing configuration is not easy, and the Internet router is a non-standard monster that is hard to understand.

Is it possible to keep using the same IP address range 192.168.123.[201-220] for the clients in TUN mode? This way, I would only need to reconfigure the server that OpenVPN is running on.

Thanks in advance,
rdiez

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: TUN without a separate IP address range

Post by TinCanTech » Wed Dec 08, 2021 2:34 pm

rdiez wrote:
Wed Dec 08, 2021 10:44 am
Is it possible to keep using the same IP address range 192.168.123.[201-220] for the clients in TUN mode?
The same ones that you DHCP ..
rdiez wrote:
Wed Dec 08, 2021 10:44 am
network routing configuration is not easy, and the Internet router is a non-standard monster that is hard to understand
If you require professional assistance with your networking infra-structure then I am available for hire.
tincantech at protonmail dot com

Post Reply