[Dnsmasq-discuss] ?: ADSL gateway

Simon Kelley simon@thekelleys.org.uk
Mon, 04 Apr 2005 08:56:52 +0100


Pasi Mustalahti (ptmusta@utu.fi) wrote:
> PTM: In the begining: many thanks for the dnsmsq. It is simple and fast. 
> I hope the development will continue and the product get more wind !
> It has MUCH to give.
> ---------------
> 
> Question:
> -One Win98 (Sabrina) all dynamic, connected straight to the ADSL
> -one Linux (Jeeves, 10.1.2.250 hardcoded IP) with dnsmasq, connected 
> straight to the ADSL, apche.
> -one external ADSL modem (10.1.2.240 hardcoded IP) (Zyxel 660HW) working 
> as a firewall.
> 
> 1. I make Jeeves the only DHCP server -> Sabrina gets all parameters OK, 
> except gateway = 10.1.2.250. Sabrina CAN'T SURF EXTERNAL WEB but surfs 
> internal WEB fine, Jeeves can surf internal and external web fine.
> 
> 2. I make Zyxel the only DHCP server -> Sabrina gets even the gateway 
> right (10.1.2.240) and can surf internal and external
> 
> How to set the gateway address ?

dhcp-option=3,10.1.2.240

(3 is the dhcp-option number for "default gateway")

> 
> --------------
> 
> Some comments about Dsnmaq: (not negative, but visions. Sorry I have no 
> time to write the script just now.)
> 
> I have gone thru the normal way: first our family about 15 Windows 
> clients connected straight to the ADSL-modem, then Linux server with 
> BIND and now dsnmsq which seems to be the best.
> 
> The best part of  dsnmsq is the simple structure and easy configuration. 
> Still I started to think about a simple script for the beginner (and 
> maybe later a GUI), showing the old walues to be changed or approved  by 
> Enter:
> 
> -Filename of basic values
> -Name of your domain
> -Netmask
> -Name and address of DNS server for this domain
> -Name and address of DHCP for this domain
> -Address of DNSs of the ISP
> -Address of your gateway
> -Dynamic addresses space
> -List of clients: MAC, IP, Name, keys, comment
> 
> This script could write a file /etc/dnsmasq.conf.$TIME (including some 
> comments) for the Root to check and copy/paste over the original with 
> her editor. Or use it 'as is'.
> For the advanced users and special needs there could be a 'Advanced' 
> part in the script.
> 
> Could the client config file be a excel or .CMS table:
> MAC,IP, NAME, keys, comments
> MAC,IP, NAME, keys, comments
> MAC,IP, NAME, keys, comments
> 
> The Leases -file could be in the same format
> 
> The 'keys' part could include DHCP, uNSx for upper name servers, sNSx 
> for slave name servers, GWx for gateways,....
> 

Good idea: any volunteers? (There's also a need for a Dnsmasq HOWTO, if 
anyone feels like making a start on that.)


Cheers,

Simon.