[Server-devel] pppd restarting mysteriously (Jerry Vonau)

Faaez Ul Haq ful at princeton.edu
Fri Jul 31 12:36:15 EDT 2009


Hi,

I just completed an OLPCorps deployment in Sierra Leone; we used a
GPRS modem to get internet on the school server for the XOs; just a
little addition to the previous discussion on CDMA/GPRS modem and
pppd:

The change(from eth0 to ppp0) described by Jerry in the earlier email
should be made to both the iptables.principal and
iptables.principal.cache file in the /etc/sysconfig/olpc-scripts
folder. The latter is the one used when squid or another caching
service is turned on.

Best,

Faaez Ul Haq
http://olpcsm.blogspot.com

> Message: 1
> Date: Sat, 25 Jul 2009 11:04:11 -0500
> From: Jerry Vonau <jvonau at shaw.ca>
> Subject: Re: [Server-devel] pppd restarting mysteriously
> To: Joshua N Pritikin <jpritikin at pobox.com>
> Cc: server-devel at lists.laptop.org
> Message-ID: <1248537851.6105.4.camel at f9.vonau.ca>
> Content-Type: text/plain
>
> On Fri, 2009-07-24 at 10:47 +0530, Joshua N Pritikin wrote:
>> On Fri, Jul 24, 2009 at 11:32:37AM +1000, James Cameron wrote:
>> > The symptom is that your pppd receives an LCP Configuration Request from
>> > the modem that attempts to begin authentication all over again.  pppd
>> > handles this (correctly) by shutting down the link.
>> >
>> > My analysis of this when I was observing the problem was that it was
>> > caused by packets being sent with source IP addresses that the service
>> > provider's network did not like.  It might take up to 30 seconds between
>> > the offending packet and the disconnection.
>>
>> I feel really dumb:
>>
>> # iptables -t nat -v -L
>>
>> Chain POSTROUTING (policy ACCEPT 341 packets, 24402 bytes)
>>  pkts bytes target     prot opt in     out     source
>> destination
>>     0     0 MASQUERADE  all  --  any    eth0    anywhere
>> anywhere
>>
>> Where do I change the iptables rule?
>>
>> iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
>
> edit:
> /etc/sysconfig/olpc-scripts/iptables.principal
>
> from:
> -A POSTROUTING -o eth0 -j MASQUERADE
>
> to:
> -A POSTROUTING -o ppp0 -j MASQUERADE
>
> Jerry

On 7/26/09, server-devel-request at lists.laptop.org
<server-devel-request at lists.laptop.org> wrote:
> Send Server-devel mailing list submissions to
> 	server-devel at lists.laptop.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.laptop.org/listinfo/server-devel
> or, via email, send a message with subject or body 'help' to
> 	server-devel-request at lists.laptop.org
>
> You can reach the person managing the list at
> 	server-devel-owner at lists.laptop.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Server-devel digest..."
>
>
> Today's Topics:
>
>    1. Re: pppd restarting mysteriously (Jerry Vonau)
>    2. can I groupinstall 'X Window System'? (Joshua N Pritikin)
>    3. Re: the "first user is admin" moodle policy (Joshua N Pritikin)
>    4. Re: the "first user is admin" moodle policy (Sameer Verma)
>    5. Re: can I groupinstall 'X Window System'? (Martin Langhoff)
>    6. Re: the "first user is admin" moodle policy (Joshua N Pritikin)
>    7. Re: the "first user is admin" moodle policy (Martin Langhoff)
>    8. Re: the "first user is admin" moodle policy (Sameer Verma)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 25 Jul 2009 11:04:11 -0500
> From: Jerry Vonau <jvonau at shaw.ca>
> Subject: Re: [Server-devel] pppd restarting mysteriously
> To: Joshua N Pritikin <jpritikin at pobox.com>
> Cc: server-devel at lists.laptop.org
> Message-ID: <1248537851.6105.4.camel at f9.vonau.ca>
> Content-Type: text/plain
>
> On Fri, 2009-07-24 at 10:47 +0530, Joshua N Pritikin wrote:
>> On Fri, Jul 24, 2009 at 11:32:37AM +1000, James Cameron wrote:
>> > The symptom is that your pppd receives an LCP Configuration Request from
>> > the modem that attempts to begin authentication all over again.  pppd
>> > handles this (correctly) by shutting down the link.
>> >
>> > My analysis of this when I was observing the problem was that it was
>> > caused by packets being sent with source IP addresses that the service
>> > provider's network did not like.  It might take up to 30 seconds between
>> > the offending packet and the disconnection.
>>
>> I feel really dumb:
>>
>> # iptables -t nat -v -L
>>
>> Chain POSTROUTING (policy ACCEPT 341 packets, 24402 bytes)
>>  pkts bytes target     prot opt in     out     source
>> destination
>>     0     0 MASQUERADE  all  --  any    eth0    anywhere
>> anywhere
>>
>> Where do I change the iptables rule?
>>
>> iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
>
> edit:
> /etc/sysconfig/olpc-scripts/iptables.principal
>
> from:
> -A POSTROUTING -o eth0 -j MASQUERADE
>
> to:
> -A POSTROUTING -o ppp0 -j MASQUERADE
>
> Jerry
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sun, 26 Jul 2009 08:03:53 +0530
> From: Joshua N Pritikin <jpritikin at pobox.com>
> Subject: [Server-devel] can I groupinstall 'X Window System'?
> To: server-devel at lists.laptop.org
> Message-ID: <20090726023353.GN15239 at localhost>
> Content-Type: text/plain; charset=us-ascii
>
> We have an LCD projector. Since we don't have a USB->VGA adapter yet, I
> would like to drive projector with the schoolserver (using VNCLauncher &
> ssvnc).
>
> The groupinstall includes dnsmasq and NetworkManager. Is it safe to
> install these packages or am I asking for trouble?
>
> --
> American? Vote on the National Initiative for Democracy, http://votep2.us
>
>
> ------------------------------
>
> Message: 3
> Date: Sun, 26 Jul 2009 08:21:33 +0530
> From: Joshua N Pritikin <jpritikin at pobox.com>
> Subject: Re: [Server-devel] the "first user is admin" moodle policy
> To: Martin Langhoff <martin.langhoff at gmail.com>
> Cc: server-devel at lists.laptop.org
> Message-ID: <20090726024657.GO15239 at localhost>
> Content-Type: text/plain; charset=iso-8859-1
>
> On Fri, Jul 24, 2009 at 08:50:22PM +0200, Martin Langhoff wrote:
>> On Wed, Jun 17, 2009 at 6:00 PM, Martin
>> Langhoff<martin.langhoff at gmail.com> wrote:
>> > ?- add the /etc/moodle/coursecreators support so that
>> > ? - if it exists, even if empty, magic "first come is CC" is disabled
>> > ? - it reads /etc/moodle/coursecreators looking for matching SNs (one
>> > SN per line)
>
> I must be missing something really obvious.
>
> I upgraded to the latest stuff using the olpcxs-testing repo.
>
> I took an XO laptop and registered it with the schoolserver. This is the
> first laptop to register.
>
> I browsed to http://school/. I got the moodle login screen. Isn't there
> suppose to be some kind of autologin mechanism?
>
> I added the XO's serial number to /etc/moodle/coursecreators. I tried
> browsing to http://school/ again. I got the some moodle login screen.
>
> Can somebody give me a clue?
>
>
> ------------------------------
>
> Message: 4
> Date: Sat, 25 Jul 2009 21:41:43 -0700
> From: Sameer Verma <sverma at sfsu.edu>
> Subject: Re: [Server-devel] the "first user is admin" moodle policy
> To: Joshua N Pritikin <jpritikin at pobox.com>
> Cc: server-devel at lists.laptop.org
> Message-ID:
> 	<5fb387c70907252141l71aafecdmcfff4bb26c04bdc7 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Sat, Jul 25, 2009 at 7:51 PM, Joshua N Pritikin
> <jpritikin at pobox.com>wrote:
>
>> On Fri, Jul 24, 2009 at 08:50:22PM +0200, Martin Langhoff wrote:
>> > On Wed, Jun 17, 2009 at 6:00 PM, Martin Langhoff<
>> martin.langhoff at gmail.com> wrote:
>> > >  - add the /etc/moodle/coursecreators support so that
>> > >   - if it exists, even if empty, magic "first come is CC" is disabled
>> > >   - it reads /etc/moodle/coursecreators looking for matching SNs (one
>> > > SN per line)
>>
>> I must be missing something really obvious.
>>
>> I upgraded to the latest stuff using the olpcxs-testing repo.
>>
>> I took an XO laptop and registered it with the schoolserver. This is the
>> first laptop to register.
>>
>> I browsed to http://school/. I got the moodle login screen. Isn't there
>> suppose to be some kind of autologin mechanism?
>>
>> I added the XO's serial number to /etc/moodle/coursecreators. I tried
>> browsing to http://school/ again. I got the some moodle login screen.
>>
>> Can somebody give me a clue?
>> _______________________________________________
>> Server-devel mailing list
>> Server-devel at lists.laptop.org
>> http://lists.laptop.org/listinfo/server-devel
>>
>
> Make sure you update your Browse version to 102. This version has all the
> bits needed to do seamless login. Do this via the Control Panel | Software
> Update
>
> Sameer
> --
> Dr. Sameer Verma, Ph.D.
> Associate Professor of Information Systems
> San Francisco State University
> San Francisco CA 94132 USA
> http://verma.sfsu.edu/
> http://opensource.sfsu.edu/
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.laptop.org/pipermail/server-devel/attachments/20090725/cfd34c2c/attachment-0001.htm
>
> ------------------------------
>
> Message: 5
> Date: Sun, 26 Jul 2009 11:10:34 +0200
> From: Martin Langhoff <martin.langhoff at gmail.com>
> Subject: Re: [Server-devel] can I groupinstall 'X Window System'?
> To: Joshua N Pritikin <jpritikin at pobox.com>
> Cc: server-devel at lists.laptop.org
> Message-ID:
> 	<46a038f90907260210m42f15a8ajef3ef044e56c4eee at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Sun, Jul 26, 2009 at 4:33 AM, Joshua N Pritikin<jpritikin at pobox.com>
> wrote:
>> We have an LCD projector. Since we don't have a USB->VGA adapter yet, I
>> would like to drive projector with the schoolserver (using VNCLauncher &
>> ssvnc).
>>
>> The groupinstall includes dnsmasq and NetworkManager. Is it safe to
>> install these packages or am I asking for trouble?
>
> Dunno, but just use yum to install X with a simple WM.
>
>
> m
> --
>  martin.langhoff at gmail.com
>  martin at laptop.org -- School Server Architect
>  - ask interesting questions
>  - don't get distracted with shiny stuff  - working code first
>  - http://wiki.laptop.org/go/User:Martinlanghoff
>
>
> ------------------------------
>
> Message: 6
> Date: Sun, 26 Jul 2009 17:07:36 +0530
> From: Joshua N Pritikin <jpritikin at pobox.com>
> Subject: Re: [Server-devel] the "first user is admin" moodle policy
> To: Sameer Verma <sverma at sfsu.edu>
> Cc: server-devel at lists.laptop.org
> Message-ID: <20090726113736.GR15239 at localhost>
> Content-Type: text/plain; charset=us-ascii
>
> On Sat, Jul 25, 2009 at 09:41:43PM -0700, Sameer Verma wrote:
>> Make sure you update your Browse version to 102. This version has all the
>> bits needed to do seamless login. Do this via the Control Panel | Software
>> Update
>
> I updated to Browse-102 from activities.sugarlabs.org using a
> customization key. I am still not getting autologin. This is build 802
> sugar 0.82.1 firmware Q2E41.
>
> I'm suspicious about Browse because there are only 3 tabs: Activity,
> Browse, and View. Where is the Edit tab?
>
> /home/olpc/Activities/Browse.activity/activity/activity.info reports
> version 102.
>
> Control Panel | Software Update suggested that everything was
> up-to-date.
>
> How do I further debug this?
>
>
> ------------------------------
>
> Message: 7
> Date: Sun, 26 Jul 2009 15:49:56 +0200
> From: Martin Langhoff <martin.langhoff at gmail.com>
> Subject: Re: [Server-devel] the "first user is admin" moodle policy
> To: Joshua N Pritikin <jpritikin at pobox.com>
> Cc: server-devel at lists.laptop.org
> Message-ID:
> 	<46a038f90907260649r204210b2vd40b83e111efa13c at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Sun, Jul 26, 2009 at 1:37 PM, Joshua N Pritikin<jpritikin at pobox.com>
> wrote:
>> How do I further debug this?
>
> On the client side:
>
>  - find the cookies.sqlite file (which will be in one of the
> 'isolation' dirs rainbow makes). Open it with sqlite3 and you should
> find it has 1 table, and that table has a some cookies for the FQDN of
> the XS, one of them is very obviously the authentication one, and
> should have the SN of the XO.
>
> On the XS side.
>
>  - there is a script -- I think /home/idmgr/list_registrations -- that
> will show you who's registered successfully
>
>  - /var/log/moodle/cron.php should show interesting output (like the
> creation of the acct in Moodle, but that happens right after
> registration so you may have lost that). Any errors there may be
> interesting.
>
>  - /var/log/httpd/error_log -- any errors there may be interesting...
>
> cheers,
>
>
>
> m
> --
>  martin.langhoff at gmail.com
>  martin at laptop.org -- School Server Architect
>  - ask interesting questions
>  - don't get distracted with shiny stuff  - working code first
>  - http://wiki.laptop.org/go/User:Martinlanghoff
>
>
> ------------------------------
>
> Message: 8
> Date: Sun, 26 Jul 2009 08:42:10 -0700
> From: Sameer Verma <sverma at sfsu.edu>
> Subject: Re: [Server-devel] the "first user is admin" moodle policy
> To: Joshua N Pritikin <jpritikin at pobox.com>
> Cc: server-devel at lists.laptop.org
> Message-ID:
> 	<5fb387c70907260842o5576df94paa082ad7ecf64d9d at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Sun, Jul 26, 2009 at 4:37 AM, Joshua N Pritikin
> <jpritikin at pobox.com>wrote:
>
>> On Sat, Jul 25, 2009 at 09:41:43PM -0700, Sameer Verma wrote:
>> > Make sure you update your Browse version to 102. This version has all
>> > the
>> > bits needed to do seamless login. Do this via the Control Panel |
>> Software
>> > Update
>>
>> I updated to Browse-102 from activities.sugarlabs.org using a
>> customization key. I am still not getting autologin. This is build 802
>> sugar 0.82.1 firmware Q2E41.
>>
>
> Hmm. I vaguely remember that there was some confusion as to which copy of
> Browse was going to be 102. I hope that was resolved. I use the 102 that
> comes via the Control Panel's update process and my control panel update
> points to the G1G1 repo. Maybe that makes the difference?
>
>
>
>>
>> I'm suspicious about Browse because there are only 3 tabs: Activity,
>> Browse, and View. Where is the Edit tab?
>>
>
> I have all four tabs.
>
> Sameer
>
>
>>
>> /home/olpc/Activities/Browse.activity/activity/activity.info reports
>> version 102.
>>
>> Control Panel | Software Update suggested that everything was
>> up-to-date.
>>
>> How do I further debug this?
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.laptop.org/pipermail/server-devel/attachments/20090726/05fdae02/attachment-0001.htm
>
> ------------------------------
>
> _______________________________________________
> Server-devel mailing list
> Server-devel at lists.laptop.org
> http://lists.laptop.org/listinfo/server-devel
>
>
> End of Server-devel Digest, Vol 27, Issue 29
> ********************************************
>


More information about the Server-devel mailing list