Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pppd with LTModem hangup problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
shell_ramix
n00b
n00b


Joined: 03 Mar 2003
Posts: 17
Location: Mexico

PostPosted: Sun Apr 27, 2003 3:25 am    Post subject: pppd with LTModem hangup problems Reply with quote

Hi, I am experimenting a very extrange behaivor with my ppp modem connection.

I was searching on forums, google and mailing lists about this strange problems, but find no good answer.

My kernel is a gentoo-source 2.4.20-r3 (the problem persist either witn 2.4.20-r1 and r2) with pppd 2.4.1 and the LTmodem driver is ltmodem-8.26_alpha9-r1.

Some Config files:

wvdial.conf
Code:

[Modem0]
Modem = /dev/ttySLT0
Baud = 56600
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Auto DNS = off
ISDN = 0
Modem Type = Analog Modem

[Dialer info]
Init9 = AT&V

[Dialer noreconect]
Auto Reconnect = off

[Dialer via_networks]
Stupid Mode = on
Idle Seconds = 0
Dial Attempts = 0
Phone = 51234567
Username = xxxxxxx
Password = xxxxx
Inherits = Modem0


/etc/ppp/options
Code:

lock
persist
idle 0
maxfail 0
debug


/etc/ppp/peers/via_networks
Code:

noauth
name wvdial
connect '/usr/bin/wvdial --chat via_networks'


/etc/conf.d/net.ppp0
Code:

# /etc/conf.d/net.ppp0:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net.ppp0,v 1.3 2002/11/18 19:39:22 azara
h Exp $

# Config file for /etc/init.d/net.ppp0


PEER="via_networks"             # Define peer (aka ISP)
DEBUG="yes"                     # Turn on debugging
PERSIST="yes"                   # Redial after being dropped
ONDEMAND="no"                   # Only bring the interface up on demand?
MODEMPORT="/dev/modem"          # TTY device modem is connected to
LINESPEED="56600"              # Speed pppd should try to connect at
INITSTRING=""                   # Extra init string for the modem
DEFROUTE="yes"                  # Must pppd set the default route?
HARDFLOWCTL="yes"               # Use hardware flow control?
ESCAPECHARS="yes"               # Use escape caracters ?
PPPOPTIONS=""                   # Extra options for pppd
USERNAME="xxxxx"              # The PAP/CHAP username
PASSWORD="xxxx"               # Your password/secret.  Ugly I know, but i
                                # will work on something more secure later
                                # on.  700 permission on /etc/init.d/net.ppp0
                                # should be enouth for now.
NUMBER="12345678"                # The telephone number of your ISP
REMIP=""                        # The ip of the remote box if it should be set
NETMASK=""                      # Netmask
IPADDR=""                       # Our IP if we have a static one
MRU="1500"                       # Sets the MRU
MTU="1500"                       # Sets the MTU
RETRYTIMEOUT="2"                # Retry timeout for when ONDEMAND="yes" or
                                # PERSIST="yes"
IDLETIMEOUT="0"                 # Idle timeout for when ONDEMAND="yes"
PEERDNS="no"                    # Should pppd set the peer dns?

# This does not currently work due to a bug in pppd (I think)
FWSCRIPT="/etc/init.d/firewall" # Optional FW script that pppd should start
                                # and stop when the link comes up or drop.
                                # It should be a script that takes one
                                # argument, namely the action that should
                                # be taken (start|stop).  The name of the
                                # external interface on which the firewall
                                # should be activated, should be hardcoded
                                # into the script (you will tipically have
                                # fw.ppp0, fw.ppp1, etc if you have more than
                                # one ppp interface).
                                #
                                # called: ${FWSCRIPT} [start|stop]

AUTOCFGFILES="no"              # By default this scripts will generate
                                # /etc/ppp/chat-isp, /etc/ppp/chap-secrets,
                                # /etc/ppp/pap-secrets and /etc/ppp/peers/isp
                                # automagically.  Set to "no" if you experience
                                # problems, or need specialized scripts.  You
                                # will have to create these files by hand then.
                                # Also, the FWSCRIPT feature will not work.


# Directory where the templates is stored
TEMPLATEDIR=/etc/ppp



Now, the problem is: The modem dials to my ISP quite well, and pppd do the authentication without a problem. As you can see, I am setting the modem to do a PERSIST connection 24*7. Aparently everything goes right, until, it hangs the connection with an average timing of 230.0 minutes. Here are some logs:

Code:

Apr 24 21:54:21 [pppd] Connect time 240.1 minutes.
Apr 24 22:35:28 [pppd] Connect time 40.5 minutes.
Apr 25 09:58:25 [pppd] Connect time 6.5 minutes.
Apr 25 15:52:16 [pppd] Connect time 26.7 minutes.
Apr 25 16:16:54 [pppd] Connect time -30.0 minutes.
Apr 25 18:57:31 [pppd] Connect time 160.0 minutes.


Now, the outup of the running process shows this line:
Code:

/usr/sbin/pppd lock debug persist holdoff 2 defaultroute modem crtscts asyncmap 00000000 mru 1500 mtu 1500 user xxxxxx remotename via_networks /dev/modem 56600 ipparam ppp0 linkname ppp0 call via_networks noauth


This box was running RedCrap 7.3 with the same hardware and the Persist configuration used to work well without a problem.

The people using this server machine, are very angry about the situation because the phone bill will be huge.!

Please Help me !

Cheers !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum