Help with the Onion Pi tutorial.

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
battletux
 
Posts: 3
Joined: Wed Oct 09, 2013 4:27 am

Help with the Onion Pi tutorial.

Post by battletux »

Hi All,

Having a bit of an odd issue with the onion pi tutorial. I've followed it all and for the "Pi as access point" bit it all worked fine. I could connect, get an IP and surf the web. However once I installed Tor (following the guide) and then completed the setup and rebooted I now have an issue with isc-dhcp-server no longer starting. hostapd seems fine as I can authenticate, but for some reason isc-dhcp-server will no longer start. It seems to be something to do with wlan0 not having an IP assignment in isc-dhcp-server's dhcp config. I can confirm the exact error in syslog tonight after work but I'm pretty sure that was the error).


Has anyone else had this issue? And know of a workaround?

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Help with the Onion Pi tutorial.

Post by adafruit_support_mike »

I suppose it's possible your DHCP config file got clobbered while you were installing the TOR stuff. What's in it now?

battletux
 
Posts: 3
Joined: Wed Oct 09, 2013 4:27 am

Re: Help with the Onion Pi tutorial.

Post by battletux »

It seems the dhcpd.conf is fine, all active lines are as follows:

Code: Select all

ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;
subnet 192.168.42.0 netmask 255.255.255.0 {
range 192.168.42.10 192.168.42.50;
option broadcast-address 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;
}
Now when I start the ISC DHCP Server I get the following is syslog:

Code: Select all

Oct 11 12:37:53 raspberrypi dhcpd: Internet Systems Consortium DHCP Server 4.2.2
Oct 11 12:37:53 raspberrypi dhcpd: Copyright 2004-2011 Internet Systems Consortium.
Oct 11 12:37:53 raspberrypi dhcpd: All rights reserved.
Oct 11 12:37:53 raspberrypi dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Oct 11 12:37:53 raspberrypi dhcpd: Internet Systems Consortium DHCP Server 4.2.2
Oct 11 12:37:53 raspberrypi dhcpd: Copyright 2004-2011 Internet Systems Consortium.
Oct 11 12:37:53 raspberrypi dhcpd: All rights reserved.
Oct 11 12:37:53 raspberrypi dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Oct 11 12:37:53 raspberrypi dhcpd: Wrote 1 leases to leases file.
Oct 11 12:37:53 raspberrypi dhcpd:
Oct 11 12:37:53 raspberrypi dhcpd: No subnet declaration for wlan0 (no IPv4 addresses).
Oct 11 12:37:53 raspberrypi dhcpd: ** Ignoring requests on wlan0.  If this is not what
Oct 11 12:37:53 raspberrypi dhcpd:    you want, please write a subnet declaration
Oct 11 12:37:53 raspberrypi dhcpd:    in your dhcpd.conf file for the network segment
Oct 11 12:37:53 raspberrypi dhcpd:    to which interface wlan0 is attached. **
Oct 11 12:37:53 raspberrypi dhcpd:
Oct 11 12:37:53 raspberrypi dhcpd:
Oct 11 12:37:53 raspberrypi dhcpd: Not configured to listen on any interfaces!

The only thing that has changed is that I have installed tor as per the tutorial.

battletux
 
Posts: 3
Joined: Wed Oct 09, 2013 4:27 am

Re: Help with the Onion Pi tutorial.

Post by battletux »

Also I notice for some reason wlan0 seems to now enable monitor mode?

Code: Select all

pi@raspberrypi ~ $ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          inet addr:10.0.0.48  Bcast:10.0.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:216 errors:0 dropped:0 overruns:0 frame:0
          TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:20843 (20.3 KiB)  TX bytes:32112 (31.3 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

mon.wlan0 Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1796 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:401805 (392.3 KiB)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Help with the Onion Pi tutorial.

Post by adafruit_support_mike »

Just to double check, what do you have in your /etc/network/interfaces file?

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”