[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pppd has its own will?
well, the detail level is not sufficient to determine what has happened
there. probably, you connection was terminated by the peer and pppd
reinitiated it.
you might want 'debug' option to be in /etc/ppp/options, then your
/var/log/ppp.log will fill quicker, as pppd will log all LCP/Auth/IPCP
messages, but then you can see what really is happening.
if you'd see a line like:
Feb 19 10:32:53 hermit pppd[24453]: rcvd [LCP TermReq id=0x2]
that means your ppp got LCP termination request and all it has to do is
just acknowledge it. then (depends upon the pppd's configuration) it may
reinit the link, but in most parameters IPCP parameters like your end's
IP address, will change.
this should not be a big problem (besides some dieing TCP connections,
and some services that are bound to the IP address, they would need to
reinit as well).
just tune your /etc/ppp/ip-up and [probably] /etc/ppp/ip-down to
do some work like, dropping states in pf, [possibly] changing rules
(e.g. ip-down installs other rules, that rejects all packets to go
outside), reinit your dyndns records (in /etc/ppp/ip-up) etc.
On Thu, Jan 02, 2003 at 10:15:38PM +0100, Matteo Cavalleri wrote:
> i'va an adsl connection, an alcatel speed touch home and of course
> openbsd 3.2 :) i connect using pptp from the ports.
>
> today pppd changed my ip with no apparent reason, with the consequence
> that 1) all my connections dropped, 2) some of my pf rules were "out of
> date", 3) my dyndns account pointed to a wrong ip
>
> this seems very strange, and after googling a bit and asking to my
> friends i still can't understand why it happened...
>
> this is from /var/log/messages
>
> Jan 2 12:00:01 meshuggah NTP: Thu Jan 2 12:00:05 CET 2003
> Jan 2 12:00:01 meshuggah NTP: rdate: adjust local clock by 3.389761 seconds
> Jan 2 14:00:02 meshuggah syslogd: restart
> Jan 2 14:40:00 meshuggah pppd[27798]: local IP address 217.133.238.201
> Jan 2 14:40:00 meshuggah pppd[27798]: remote IP address 195.130.236.117
> Jan 2 18:00:01 meshuggah syslogd: restart
>
> this is from /var/log/ppp.log
>
> Jan 1 18:16:07 meshuggah pppd[27798]: Connect: ppp0 <--> /dev/ttyp0
> Jan 1 18:16:34 meshuggah pppd[27798]: Remote message:
> Jan 1 18:16:34 meshuggah pppd[27798]: local IP address 217.133.228.22
> Jan 1 18:16:34 meshuggah pppd[27798]: remote IP address 195.130.236.117
> Jan 1 18:16:35 meshuggah adsl[9645]: Connection successful.
> Jan 2 14:40:00 meshuggah pppd[27798]: Remote message:
> Jan 2 14:40:00 meshuggah pppd[27798]: local IP address 217.133.238.201
> Jan 2 14:40:00 meshuggah pppd[27798]: remote IP address 195.130.236.117
>
> any idea?
--
Denis A. Doroshenko, GPRS engineer, d.doroshenko@omnitel.net, +37069863486
Omnitel Ltd., Muitines Str. 35, LT-2600 Vilnius, Lithuania; www.omnitel.lt