Buenas estoy en kali linux intentado crear un AP falso(para practicar) y estuve configurando un servidor DHCP que se llama isc-dhcp-server, pero al momento de iniciarlo me tira el siguiente error:
Citar@kali (https://underc0de.org/foro/index.php?action=profile;u=42200):~# /etc/init.d/isc-dhcp-server start
[....] Starting isc-dhcp-server (via systemctl): isc-dhcp-server.serviceJob for isc-dhcp-server.service failed because the control process exited with error code.
See "systemctl status isc-dhcp-server.service" and "journalctl -xe" for details.
failed!
cuando ejecuto el comando status me dice lo siguiente:
Citarroot@kali (https://underc0de.org/foro/index.php?action=profile;u=42200):~# /etc/init.d/isc-dhcp-server status
● isc-dhcp-server.service - LSB: DHCP server
Loaded: loaded (/etc/init.d/isc-dhcp-server; generated; vendor preset: disabled)
Active: failed (Result: exit-code) since lun 2016-08-22 05:05:43 ART; 4min 9s ago
Docs: man:systemd-sysv-generator(8)
Process: 3091 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, status=1/FAILURE)
ago 22 05:05:43 kali isc-dhcp-server[3091]: If you think you have receive...r
ago 22 05:05:43 kali isc-dhcp-server[3091]: than a configuration issue pl...g
ago 22 05:05:43 kali isc-dhcp-server[3091]: bugs on either our web page a...e
ago 22 05:05:43 kali isc-dhcp-server[3091]: before submitting a bug. The...r
ago 22 05:05:43 kali isc-dhcp-server[3091]: process and the information w....
ago 22 05:05:43 kali isc-dhcp-server[3091]: exiting.
ago 22 05:05:43 kali systemd[1]: isc-dhcp-server.service: Control proces...=1
ago 22 05:05:43 kali systemd[1]: Failed to start LSB: DHCP server.
ago 22 05:05:43 kali systemd[1]: isc-dhcp-server.service: Unit entered f...e.
ago 22 05:05:43 kali systemd[1]: isc-dhcp-server.service: Failed with re...'.
Hint: Some lines were ellipsized, use -l to show in full.
que puede ser?, les dejo la configuracion que realize
el archivo dhcpd.conf contiene lo siguiente:
Citar
ddns-update-style ad-hoc;
default-lease-time 600;
default-lease-time 7200;
authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option domain-name "duridia";
option domain-name-servers 192.168.1.1;
range 192.168.1.230 192.168.1.210;
}
y el archivo isc-dhcp-server
Citar# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid
# Additional options to start dhcpd with.
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="eth0 wlan0"
INTERFACESv6=""
ya intente haciendo apt-get upgrade, apt-get update y sigue tirandome el mismo error, que puede estar fallando?
Desde ya gracias
¿Has modificado el archivo dhcpd.conf? Ejemplo de los parámetros a modificar:
subnet 192.168.100.0 netmask 255.255.255.0 { # mascara de red de la subred
range 192.168.100.2 192.168.100.250; # rango de direcciones que entregará el servidor
option domain-name-servers ns1.internal.example.org; #
option domain-name "internal.example.org";
option routers 192.168.56.1;
option broadcast-address 192.168.100.255; # esta es la dirección de broadcast
default-lease-time 600;
max-lease-time 7200;
}
Finalmente reinicia el servicio para que los cambios tengan efecto:
/etc/init.d/isc-dhcp-server restart
You are not allowed to view links.
You are not allowed to view links.
Register or Login or You are not allowed to view links.
Register or Login
¿Has modificado el archivo dhcpd.conf? Ejemplo de los parámetros a modificar:
subnet 192.168.100.0 netmask 255.255.255.0 { # mascara de red de la subred
range 192.168.100.2 192.168.100.250; # rango de direcciones que entregará el servidor
option domain-name-servers ns1.internal.example.org; #
option domain-name "internal.example.org";
option routers 192.168.56.1;
option broadcast-address 192.168.100.255; # esta es la dirección de broadcast
default-lease-time 600;
max-lease-time 7200;
}
Finalmente reinicia el servicio para que los cambios tengan efecto:
/etc/init.d/isc-dhcp-server restart
si modifique el archivo dhcpd.conf quedo asi
Citarddns-update-style ad-hoc;
default-lease-time 600;
default-lease-time 7200;
authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option domain-name "duridia";
option domain-name-servers 192.168.1.1;
range 192.168.1.230 192.168.1.210;
}
y cuando pongo /etc/init.d/isc-dhcp-server restart me aparece lo siguiente
Citarroot@kali:~# /etc/init.d/isc-dhcp-server restart
[....] Restarting isc-dhcp-server (via systemctl): isc-dhcp-server.serviceJob for isc-dhcp-server.service failed because the control process exited with error code.
See "systemctl status isc-dhcp-server.service" and "journalctl -xe" for details.
failed!
El problema puede venir de aquí:
range 192.168.1.230 192.168.1.210;
Dejalo de esta forma:
range 192.168.1.21 192.168.1.254;
A ver...
Justo como dice @Stiuvert (https://underc0de.org/foro/index.php?action=profile;u=3790) el rango de direcciones no esta muy flexible, es decir de:
192.168.1.230
192.168.1.210
Tienes un pool de solamente 20 direcciones, y a saber que lo correcto es configurarlo en orden de menor a mayor.
Asegúrate también de que la interfaz que recibirá los request, es la misma que tienes configurada en tu isc-dhcp-server
Por ejemplo: (linea 17)
# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid
# Additional options to start dhcpd with.
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="eth0 wlan0"
INTERFACESv6=""
Pon todas las cosas en orden, comparte el .conf y el archivo isc-dhcp-server.
Saludos.
You are not allowed to view links.
You are not allowed to view links.
Register or Login or You are not allowed to view links.
Register or Login
A ver...
Justo como dice @Stiuvert (https://underc0de.org/foro/index.php?action=profile;u=3790) el rango de direcciones no esta muy flexible, es decir de:
192.168.1.230
192.168.1.210
Tienes un pool de solamente 20 direcciones, y a saber que lo correcto es configurarlo en orden de menor a mayor.
Asegúrate también de que la interfaz que recibirá los request, es la misma que tienes configurada en tu isc-dhcp-server
Por ejemplo: (linea 17)
# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid
# Additional options to start dhcpd with.
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="eth0 wlan0"
INTERFACESv6=""
Pon todas las cosas en orden, comparte el .conf y el archivo isc-dhcp-server.
Saludos.
ya cambie el rango como me dijeron y me sigue tirando el mismo error,estos son los archivos :
este es el isc-dhcp-server
Citar# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid
# Additional options to start dhcpd with.
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="eth0 wlan0"
INTERFACESv6=""
la interfaz eth0 es de la tarjeta de red y wlan0 es el adaptador wifi usb
el archivo dhcpd.conf es el siguiente:
Citarddns-update-style ad-hoc;
default-lease-time 600;
default-lease-time 7200;
authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option domain-name "duridia";
option domain-name-servers 192.168.1.1;
range 192.168.1.21 192.168.1.254;
}
este es el error que me tira cuando ejecuto el comando restart
Citarroot@kali:~# /etc/init.d/isc-dhcp-server restart
[....] Restarting isc-dhcp-server (via systemctl): isc-dhcp-server.serviceJob for isc-dhcp-server.service failed because the control process exited with error code.
See "systemctl status isc-dhcp-server.service" and "journalctl -xe" for details.
failed!
Que te sale con journalctl -xe?
Pero en cuál interfaz es que pretende recibir las peticiones dhcp?
Enviado desde mi iPhone utilizando Tapatalk
You are not allowed to view links.
You are not allowed to view links.
Register or Login or You are not allowed to view links.
Register or Login
Pero en cuál interfaz es que pretende recibir las peticiones dhcp?
Enviado desde mi iPhone utilizando Tapatalk
por la inferfaz wlan0
You are not allowed to view links.
You are not allowed to view links.
Register or Login or You are not allowed to view links.
Register or Login
You are not allowed to view links.
You are not allowed to view links.
Register or Login or You are not allowed to view links.
Register or Login
Pero en cuál interfaz es que pretende recibir las peticiones dhcp?
Enviado desde mi iPhone utilizando Tapatalk
por la inferfaz wlan0
Entonces elimina el "eth0" y deja solamente "wlan0" en el archivo isc-dhcp-server.
You are not allowed to view links.
You are not allowed to view links.
Register or Login or You are not allowed to view links.
Register or Login
Entonces elimina el "eth0" y deja solamente "wlan0" en el archivo isc-dhcp-server.
ya probe en hacer eso pero me sigue tirando el mismo error=S