pppd goes down when trying to ping host

Hello. Merry Cristmas and happy NY. Have a problem, need help.

I have computer (OpenSuse 11.1) and laptop (win XP). I’m trying to connect EV-DO usb modem at the computer and share ppp0 connection with notebook. Here is stuff which does it:


y-deer:/home/mkotsur # cat ./scripts/internet_old.sh
sudo pppd /dev/ttyUSB0 115200 file /etc/ppp/peers/peoplenet_old user xxx
/usr/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
y-deer:/home/mkotsur # cat /etc/ppp/peers/peoplenet_old
debug
noipdefault
defaultroute
ipcp-accept-local
lcp-echo-interval 60
lcp-echo-failure 5
usepeerdns
nopcomp
noauth
noaccomp
nodetach
user "xxx"
connect "/usr/sbin/chat -s -S -V -t 5 -f /etc/ppp/peoplenet.chat"
y-deer:/home/mkotsur # cat /etc/ppp/peoplenet.chat
'' ''
'' 'ATZ'
'OK' 'ATI'
'OK' 'ATDT#777'
'CONNECT' 'ATO'

Script goes fine and returns

y-deer:/home/mkotsur # ./scripts/internet_old.sh
ATZ
OK
ATI
Manufacturer: QUALCOMM INCORPORATED
Model: 154
Revision: GU8A3118  1  [Apr 04 2007 12:00:00]
ESN: 0x4A10F852
+GCAP: +CIS707-A, CIS-856, +MS, +ES, +DS, +FCLASS

OK
ATDT#777
CONNECTScript /usr/sbin/chat -s -S -V -t 5 -f /etc/ppp/peoplenet.chat finished (pid 15217), status = 0x0
Serial connection established.
using channel 6
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB0
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x83e8a499> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x62d90905>]
sent [LCP ConfRej id=0x1 <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x62d90905>]
rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <auth chap MD5> <magic 0x83e8a499>]
sent [LCP ConfNak id=0x2 <auth pap>]
rcvd [LCP ConfReq id=0x3 <asyncmap 0x0> <auth pap> <magic 0x83e8a499>]
sent [LCP ConfAck id=0x3 <asyncmap 0x0> <auth pap> <magic 0x83e8a499>]
sent [LCP EchoReq id=0x0 magic=0x62d90905]
sent [PAP AuthReq id=0x1 user="80922104964@people.net.ua" password=<hidden>]
rcvd [LCP EchoRep id=0x0 magic=0x83e8a499]
rcvd [PAP AuthAck id=0x1 ""]
PAP authentication succeeded
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <addr 77.109.0.148>]
sent [IPCP ConfAck id=0x1 <addr 77.109.0.148>]
rcvd [LCP ProtRej id=0x1 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [IPCP ConfNak id=0x2 <addr 94.248.15.245> <ms-dns1 77.109.1.8> <ms-dns2 77.109.1.9>]
sent [IPCP ConfReq id=0x3 <addr 94.248.15.245> <ms-dns1 77.109.1.8> <ms-dns2 77.109.1.9>]
rcvd [IPCP ConfAck id=0x3 <addr 94.248.15.245> <ms-dns1 77.109.1.8> <ms-dns2 77.109.1.9>]
local  IP address 94.248.15.245
remote IP address 77.109.0.148
primary   DNS address 77.109.1.8
secondary DNS address 77.109.1.9
Script /etc/ppp/ip-up started (pid 15219)
Script /etc/ppp/ip-up finished (pid 15219), status = 0x0

But when i’m trying to ping any outer resource from windows laptop (computer’s IP specified as default gateway), script goes to be finished.

rcvd [LCP ConfReq id=0x4 <asyncmap 0x0> <auth chap MD5> <magic 0x83e8a499> <pcomp> <accomp>]
Connect time 2.2 minutes.
Sent 28284 bytes, received 199730 bytes.
Script /etc/ppp/ip-down started (pid 15369)

I’m completely sure that it’s dependency between trying to ping external resource from laptop and disconnect at computer because it occurs at the same time.

Any help will be appreciated, thanks in advance :wink: