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