Re: Problems with PPP on boot



On Mon, Jun 26, 2006 at 06:39:25PM +0200, Tomaz Solc wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi everyone

I have a server running Sarge that is connected to the internet through
PPPoE (I have a DSL line). I'm running several services, including DNS
(bind 8.4.6-1) and ntpd.

When machine boots, it seems that sometimes daemons will start before
pppd manages to establish a connection. For some services like Apache
this presents no problem. But Bind and NTP will not listen for
connections coming from the internet, because the ppp0 network device
didn't exist when they were starting. This is quite a problem, because
the machine is crippled after a reboot until I manually restart Bind and
NTP.

I have my PPP connection configured in /etc/network/interfaces like this:

auto ppp0
iface ppp0 inet ppp
pre-up ifconfig eth1 up
post-up waitfor ppp0 30
post-down ifconfig eth1 down
provider dsl-provider-2.4

"waitfor" is a script that waits for ppp0 device to become available.
This was one of my failed attempts to try to halt the boot process until
the internet connection is established.


My understanding is that the init scripts (in /etc/init.d/) are
run in sequence and that the two-digit number in the names of
the symbolic links in /etc/rc1.d/, /etc/rc2.d/, etc determines the
order in which the scripts in /etc/init.d/ are run. For example,
S13gdm would be started before S14ppp.

Take a look at these:

http://www.debian.org/doc/manuals/reference/ch-system.en.html#s-boot
http://www.debian.org/doc/debian-policy/ch-opersys#s-sysvinit
http://www.debian.org/doc/debian-policy/ch-opersys#s-/etc/init.d

And, by the way, using Debian tools such as update-rc.d will help
you manage those symbolic links.

I use RoaringPenguin PPPoE, so I have my own init script (one I
wrote; OK, I copied another script in /etc/init./ and made minor
modifications), which brings up the PPPoE link and starts my
firewall script.

In your case, is Bind being started by an init script in
/etc/init.d/? If so, perhaps you could add a new init script that
brings up the PPPoE connection. Then, using update-rc.d, add the
symbolic links to your script with a number that causes your PPPoE
init script to be run before the Bind init script and any others
that require the PPPoE link.

Did I understand your problem correctly?

Dave

[snip]

--
Dave Kuhlman
http://www.rexx.com/~dkuhlman


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • IP traffic figures on PPPoE connection
    ... I have a PPPoE connection on my Red Hat 8.0 ... It brings up PPP0, but when trying to ... Try the new Yahoo! ...
    (RedHat)
  • Re: sending message to PC that is offline
    ... this is a characteristic of PPPoE. ... not all DSL connections use PPPoE or PPPoA; ... the user isn't actively using the Internet connection). ... hardware (such as a conventional dial-in modem and phone line). ...
    (microsoft.public.win32.programmer.tapi)
  • Re: ISA 2004 - Microsoft Firewall Event ID 14147
    ... PPPoE connection also isn't available till late in the boot process (which ... only those ports I want open are forwarded to the server. ... The 3COM NIC for Bellsouth connects directly to the DSL modem, ...
    (microsoft.public.windows.server.sbs)
  • Re: How make ISA on SBS 2003 Premium dial on startup
    ... manually to use the the PPPoE dialup connection. ... When you complete the CEICW, the PPPoE ... I suggest you to remove the dial up entry in the ISA 2000 and follow the KB article to re-run the CEICW. ...
    (microsoft.public.windows.server.sbs)
  • Re: verizon FIOS +linux
    ... wo we temporarily hooked the Verizon ... router and activated the service. ... If pppoe, I'd need a phone line, which I ... many interruptions - seems like my connection works according to the ...
    (comp.os.linux.misc)