Darren Spruell escreveu:
> On 2/14/07, Manuel Ravasio <[EMAIL PROTECTED]> wrote:
>> I read that creating a dhcp-range entry in /etc/dnsmasq.conf makes
>> dnsmasq start the dhcp service automatically, but alas DHCP server
>> apparently doesn't work: linux and windows clients can't grab IP
>> addresses and other IP information, and netstat doesn't show anything
>> listening on port 67/68.
>>
>> # ps -aux | grep dns
>> nobody   16166  0.0  0.3   520   648 ??  S     12:58PM    0:00.00 dnsmasq
>>
>> # netstat -an | grep tcp | grep -v tcp6
>> tcp        0      0  127.0.0.1.53           *.*                    LISTEN
>> tcp        0      0  192.168.2.11.53        *.*                    LISTEN
>> tcp        0      0  127.0.0.1.6010         *.*                    LISTEN
>> tcp        0      0  192.168.2.11.22        192.168.2.1.48605
>> ESTABLISHED
>> tcp        0      0  *.22                   *.*                    LISTEN
>>
>>
>> What am I missing?
>
> Not sure about anything else you might be missing, but DHCP uses UDP,
> not TCP.
>
> See if PF is currently blocking traffic to your service(s) also.
>
> DS
>
>

Don't know why you would prefer dnsmasq when the default installation of
OpenBSD already have both ISC dhcpd and bind daemons. I use then, rather
then having to install a package and configure it. Also, if you want a
caching nameserver only, simply putting named_flags= on
/etc/rc.conf.local and opening requests to your internal net only, on
both TCP and UDP port 53, will give a fully functional recursive dns.
And the configuration of /etc/dhcpd.conf is the same as ISC dhcpd. There
is even an example provided. Also, from the ISC dhcpd readme,
http://www.isc.org/sw/dhcp/dhcpv3-README.php#firewall, you must let
traffic coming from 0.0.0.0 port 68 udp to 255.255.255.255 port 67 for
dhcp queries and also from your internal net port 68 udp to your
firewall internal ip port 68 udp for dhcp renews. Try opening up these
ports on your internal interface.

My regards,
--
Giancarlo Razzolini
Linux User 172199
Red Hat Certified Engineer no:804006389722501
Moleque Sem Conteudo Numero #002
Slackware Current
OpenBSD Stable
Ubuntu 6.10 Edgy Eft
Snike Tecnologia em Informatica
4386 2A6F FFD4 4D5F 5842  6EA0 7ABE BBAB 9C0E 6B85

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]

Reply via email to