[Server-devel] pppd restarting mysteriously

Jerry Vonau jvonau at shaw.ca
Sat Jul 25 12:04:11 EDT 2009


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



More information about the Server-devel mailing list