Different dhcpd.conf options for the same networks

From: Diesis (diesis_at_despammed.com)
Date: 09/07/04


Date: Tue, 07 Sep 2004 17:53:33 +0200

Hello,

QUICK:
how do assign options to remote vpn clients that request ip address
differently from local lan clients even if they share the same subnet ?

LONG:
I have configured an host with OpenVPN in bridged mode.
Here I have:
eth0, internal, bridged with br0
eth1, external, connected to the Nat router.

On this machine runs (don't blame me) dhcpd that (please don't blame me
anymore) give leases to the internal Lan clients, and, because it must
listen on br0, to the 'remote lan' clients.

Problem: local Lan pc's must have as default gateway br0's ip address to
surf the Internet, that is:
        option routers a.b.c.d;
Naturally this couldn't be right for the VPN clients,because they will
have a different gateway already assigned, but now they receive the same
configurations.

I have thought to build a 'known clients' pool for the lan with the
gateway option, and an 'unknown clients' pool for the vpn clients
without the gateway option.

Is there another solution based on the fact that dhcp request for the
vpn clients doesn't come from the internal lan ?

I hope I've been clear enough :)

-- Diesis



Relevant Pages

  • Re: ISA Server & a WiFi Hotspot (some DHCP for good measure too)
    ... have the LAN side of the wireless router be in the 10.0.0.x ... your SBS has two nics - its WAN nic is using 10.0.0.2 ... The SBS handles DHCP for the ... The SBS firewall not only keeps the wireless clients ...
    (microsoft.public.windows.server.sbs)
  • Re: RRAS VPN &NAT
    ... getting IP addresses in the same IP subnet as the LAN machines? ... The RRAS server acts as a proxy for the remotes on ... Note that if you want to use names rather than IP addresses, the remote ... clients may need extra info to resolve names of LAN machines. ...
    (microsoft.public.windows.server.networking)
  • Re: cant browse network accessed via VPN
    ... doing tests on a test LAN on which i've got a windows server 2003 server. ... do it automatically would be to enable global broadcasts to the vpn clients. ... Only a PDC can merge browse lists ...
    (microsoft.public.windowsxp.network_web)
  • Multi-Homed TS on Win2K Server Disconnects?
    ... I've tried to run a Windows 2000 TS with Win2K Pro clients in app server ... dedicated Internet connection for inbound TS clients. ... I also deliberately hacked the TS LAN cards' settings to make sure internal ...
    (microsoft.public.windows.terminal_services)
  • Re: cant browse network accessed via VPN
    ... doing tests on a test LAN on which i've got a windows server 2003 server. ... do it automatically would be to enable global broadcasts to the vpn clients. ... Only a PDC can merge browse lists ...
    (microsoft.public.win2000.networking)