Atualmente estou trabalhando em um projeto de fazer um roteador altamente seguro com meu RaspberryPi para navegar anonimamente na rede. No entanto, não consigo configurar corretamente o daemon para finalizar a conexão wifi à Internet com o novo servidor:
De fato, quando eu faço:
:~ $ sudo service isc-dhcp-server start
Eu recebo:
Job for isc-dhcp-server.service failed. See 'systemctl status isc-dhcp-server.service' and 'journalctl -xn' for details.
Aqui estão as minhas /etc/dhcp/dhcpd.conf
configurações
authoritative;
#added
subnet 192.168.42.0 netmask 255.255.255.0{
range 192.168.42.10 192.168.42.50;
option broadcast-adress 192.168.42.255;
option routers 192.168.42.1;
default-lease-time 600;
max-lease-time 7200;
option domain-name "local";
option domain-name-servers 8.8.8.8, 8.8.4.4;
}
E aqui estão minhas configurações de /etc/network/interfaces
:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet manual
allow-hotplug wlan0
iface wlan0 inet static
adress 192.168.42.1
netmask 255.255.255.0
iface wlan0 inet dhcp
iface eth0 inet manual
allow-hotplug wlan0
iface wlan0 inet static
adress 192.168.42.1
netmask 255.255.255.0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
up iptables-restore < /etc/iptables.ipv4.nat
Minha RaspberryPi está conectada, mas tem um dongle de Wi-Fi
Aqui está o systemctl status isc-dhcp-server.service
:~ $ systemctl status isc-dhcp-server.service
● isc-dhcp-server.service - LSB: DHCP server
Loaded: loaded (/etc/init.d/isc-dhcp-server)
Active: failed (Result: exit-code) since Tue 2016-06-07 00:13:45 CEST; 53s ago
Process: 18098 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, status=1/FAILURE)
Algumas partes são escritas com um assustador vermelho ...
e aqui está o journalctl
-- Logs begin at Mon 2016-06-06 21:17:01 CEST, end at Tue 2016-06-07 00:18:32 CEST. --
Jun 07 00:13:45 raspberrypi isc-dhcp-server[18098]: than a configuration issue please read the section on submitting
Jun 07 00:13:45 raspberrypi isc-dhcp-server[18098]: bugs on either our web page at www.isc.org or in the README file
Jun 07 00:13:45 raspberrypi isc-dhcp-server[18098]: before submitting a bug. These pages explain the proper
Jun 07 00:13:45 raspberrypi isc-dhcp-server[18098]: process and the information we find helpful for debugging..
Jun 07 00:13:45 raspberrypi isc-dhcp-server[18098]: exiting.
Jun 07 00:17:01 raspberrypi CRON[18118]: pam_unix(cron:session): session opened for user root by (uid=0)
Jun 07 00:17:01 raspberrypi CRON[18122]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 07 00:17:01 raspberrypi CRON[18118]: pam_unix(cron:session): session closed for user root
Jun 07 00:18:32 raspberrypi sudo[18139]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/bin/journalctl -xn
Jun 07 00:18:32 raspberrypi sudo[18139]: pam_unix(sudo:session): session opened for user root by pi(uid=0)