[Dnsmasq-discuss] Different IP Address range for OpenVPN clients?

Matthias Andree matthias.andree at gmx.de
Wed Aug 30 20:27:45 BST 2006


On Wed, 30 Aug 2006, Mike wrote:

> dhcp-option=1,255.255.255.0              # subnet mask
> dhcp-option=42,10.169.1.1                # NTP server
> dhcp-mac=ovpn,00:FF:*:*:*:*

> dhcp-option=ovpn,3                       # Don't send default GW to openvpn
>                                          # clients
> #
> # DHCP address range
> #
> dhcp-range=10.169.1.17,10.169.1.63,255.255.255.0,12h      # DHCP addr > range for LAN clients
> dhcp-range=ovpn,10.169.1.120,10.169.1.125,255.255.255.0,6h    # DHCP addr > range for OpenVPN clients

Well, these are all defining the ovpn network tag, but I see no
instructions to match (= use) this (that would be net:ovpn rather than
net).

But before you delve deeper into the configuration: if you do not need
to resolve the road warrior's host names, the easiest approach would be
to configure an address pool in OpenVPN 2.0 and hand out IPs from there
dynamically (well, unless you run out of IPs, they can be made static
just like they are in DHCP). Check the OpenVPN HOWTO for the "server"
(or perhaps "server-bridge" in your setup if you're using TAP) and the
ifconfig-pool-persist options.

-- 
Matthias Andree



More information about the Dnsmasq-discuss mailing list