sgtsmg
Posts: 1
Joined: Sat Feb 01, 2014 9:09 pm

isc-dhcp-server wont boot on startup

Sat Feb 01, 2014 9:24 pm

Hi, I'm absolutely desperate for a solution for this. Im making my Pi into a Tor router using the tutorial on adafruit. Ive managed to get the wireless access point set up but i have to load the isc-dchp-server file manually after boot. This is no good as i want everything to work automatically. I think the problem stems from the file attempting to boot before the wlan interface is set up or something. Ive already used this command to run the file at startup;
sudo update-rc.d isc-dhcp-server enable
Is there anything i can add to that command to possibly delay running the fill for a few minutes?

Any help is appreciated and i can provide more info if needed.

Learntofly
Posts: 15
Joined: Sun Dec 02, 2012 12:29 am

Re: isc-dhcp-server wont boot on startup

Wed Feb 05, 2014 2:18 am

Discard Adafruit's instructions

I flagged a while ago to them that isc-dhcp-server simply didn't work for me.. I Use dnsmasq instead

I wrote the following script ( http://pastebin.com/raw.php?i=rLA4F2tJ )to automate the OnionPi setup, modified for dnsmasq in response to https://github.com/grugq/PORTALofPi/issues/6

You need to start with a fresh copy of raspbian

Code: Select all

sudo wget http://pastebin.com/raw.php?i=rLA4F2tJ

Code: Select all

ls -al
(to get the correct name of the script that's downloaded, on my ipad so can't check what wget names it as)

Code: Select all

sudo chmod 755 nameofdownloadedscript

Code: Select all

sudo su

Code: Select all

./nameofdownloadedscript
Give it 10 minutes or so to run.. The raspberry pi will be assigned an IP address of 10.0.0.100 on reboot.. Just browse throughout the pastebin link and you will be able to see the names I've assigned to the SSID / Password etc etc

--
Regards

Return to “Networking and servers”