Openvpn and dhcp client
From FreeBSDwiki
Revision as of 18:09, 29 June 2008 by 79.31.207.14 (Talk)
Introduction
We will modify the configuration in AccessPoint in order to make work the clients pull the dns server(/etc/resolv.conf),the ip address and the default route via dhcpd
Dnsmasq configuration
here's the modified dnsmasq configuration:
# filter what we send upstream domain-needed bogus-priv filterwin2k localise-queries # allow /etc/hosts and dhcp lookups via *.lan local=/lan/ domain=workgroup expand-hosts dhcp-hostsfile=/etc/hosts.dnsmasq #resolv-file=/tmp/resolv.conf.auto dhcp-mac=ovpn,00:FF:*:*:*:* dhcp-authoritative dhcp-leasefile=/tmp/dhcp.leases # use /etc/ethers for static hosts; same format as --dhcp-host # <hwaddr> <ipaddr> read-ethers # other useful options: # default route(s): dhcp-option=#ovpn,3,192.168.1.1 dhcp-option=ovpn,3,10.0.0.1 # dns server(s): dhcp-option=#ovpn,6,192.168.1.1 dhcp-option=ovpn,6,10.0.0.1 dhcp-range=net:#ovpn,192.168.1.100,192.168.1.199,255.255.255.0,48h dhcp-range=net:ovpn,10.0.0.100,10.0.0.199,255.255.255.0,48h