[Dnsmasq-discuss] 2 Nics, 2 domains, dhcp, trouble

JP M jpm_tmp2@yahoo.com
Thu, 16 Dec 2004 08:30:44 -0800 (PST)


Hi, list.
I have enjoyed using dnsmasq for a while now. Really
great, IMO.

I have a rather complicated setup, running on debian
2.6. It *used to work ok*, and now -after reckless
updates- fails with "address already in use" :
- 3 nics, shorewall firewall : eth0, br0, br1
- OpenVPN tunnels running on br0 (VPN zone) and br1
(LAN zone).
- Dnsmasq running on br0 (domain vpn.mynet) and br1
(domain lan.mynet), using both dns and dhcp features.

To achieve the Dnsmasq part, I used a split conf, and
start 2 daemons.
The one for the Lan is setup like:
domain=lan.mynet
local=/lan.mynet/
listen-address=127.0.0.1
listen-address=192.168.1.1 <- this is br1
bind-interfaces
expand-hosts
domain-suffix=lan.mynet
dhcp-range=192.168.1.11,192.168.1.254,10h
dhcp-option=6,192.168.1.1

The one for the VPN is setup like this:
domain=vpn.mynet
local=/vpn.mynet/
#listen-address=127.0.0.1
listen-address=192.168.2.1 <- this is br0
bind-interfaces
expand-hosts
domain-suffix=vpn.mynet
dhcp-range=192.168.2.100,192.168.2.253,1h
dhcp-option=6,192.168.2.1

At some point in time (early 2.x versions) this setup
was working ok.
Right now, when I start the Lan instance, I can see
this:
/etc/init.d/dnsmasq start
Starting DNS forwarder and DHCP server: dnsmasq.
flaky:~# netstat -an  
...
udp        0      0 127.0.0.1:53            0.0.0.0:* 
                        
udp        0      0 192.168.1.1:53          0.0.0.0:* 
                        
udp        0      0 0.0.0.0:67              0.0.0.0:* 
                        
...

and starting the VPN instance fails:
/usr/sbin/dnsmasq -C /etc/dnsmasq-vpn.conf
dnsmasq: failed to bind DHCP server socket: Address
already in use

Is there something obvious I am missing to make
dnsmasq tie dhcp to a specific interface ? 
I know I could define 2 networks in one config file,
but would like to keep the 2 instances totally
separate.

Thanks in advance for your advice,

--JP




		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250