Note: AstLinux 1.1.0 or OLDER is required
To use dnsmasq as a DHCP-server on the external interface (EXTIF), or if you have only one NIC (e.g. in a VM),
you need to add the following configuration:
in dnsmasq.static
as an example, assuming a network of 192.168.30.0/24 and NIC static IPv4 address of 192.168.30.10:
dhcp-authoritative read-ethers dhcp-leasefile=/var/db/dnsmasq.leases dhcp-range=ext,192.168.30.128,192.168.30.250,24h dhcp-option=ext,option:router,192.168.30.10 dhcp-option=ext,option:dns-server,192.168.30.10 dhcp-option=ext,option:tftp-server,"192.168.30.10" dhcp-option=ext,150,192.168.30.10 # TFTP server Cisco dhcp-option=ext,option:ntp-server,192.168.30.10
Firewall
If you use the firewall (AIF), you also need to add the following variable to your user.conf
:
EXTERNAL_DHCP_SERVER=1
to allow external services, you need to open the respective ports (e.g. DNS, TFTP, NTP) with “Pass EXT→Local”.
DHCP traffic is already allowed through this variable.