Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-21-2001, 02:07 PM   #1
Senior Member
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
How to stay connected

I connect to my ISP via a modem. I become disconnected after an idle time of not more then five minutes of idle connection. Consequently, I am often disconnected when e.g. writing a message to a forum - which is quite annoying, and, it also involves painful dotation to my phone company.
I did not set anywhere that my connection should be disconnected after a certain time. Is it a default? How can I change it?
If it is not a system setting, how can I simulate traffic so as not to be disconnected?
Old 11-21-2001, 02:39 PM   #2
Registered: Jun 2001
Location: Centralia, WA
Posts: 274

Rep: Reputation: 31
This is a not a setting you can change on your local machine, it is a policy set by your ISP. You can however simulate traffic. If you set up a mail account somewhere (not an account you actually are going to use), write a script with a specific subject line title in it, then write a filter on the e-mail account which automatically deletes the message.


# ISP check scrript
while true
mail -s "ISP check" {} < /dev/null
sleep 240 #240 seconds = 4 minutes

Then just have your external e-mail filter for "ISP check" and delete it.

Hope this helps.
Old 11-21-2001, 03:55 PM   #3
Registered: Nov 2001
Location: Hi Hat KY USA
Distribution: RedHat, Mandrake
Posts: 63

Rep: Reputation: 15
This is defintely something set by your ISP (God, I love working for an ISP). The only thing that you can do is to emulate activity. Anoter option instead of the email script thing is to create an html page that sits somewhere and add the line <meta http-equiv="refresh" content="60">. All this does is refresh itself every minute. Thus providing the activity that is needed. This was a little trick that I created when I was with a different ISP and it met with moderate success. It didn't always work but then I wasn't getting disconnected as much as I was before.
The other thing to check is if you are using kppp then make sure that the option to recconect if disconnected is checked. This won't keep you from getting disconnected but it will connect you back up once the connection goes down. If you are using an $ifup ifcfg-ppp0 then setup a cron-job to bring it up if it's down.
Hope this helps.
Old 11-22-2001, 12:25 PM   #4
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
what i used to do is have my mail client open (or have it set in fetchmail) and have it check my mail every minute. worked for me.

Old 11-22-2001, 03:25 PM   #5
Senior Member
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
How to stay connected

Thanks for your tips, I will try them.
I have some other questions:
In the kppp statistics I find that vjcomp in and vjcomp out is 0.
Does it mean that no data compression is used on the line between me and my ISP?
Can I speed up my slow connection by setting my system somehow to use compression?
If so, how to do it?
(And also: would the modem on the ISP side automatically accept compressed transmission?)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
scan for networks and stay connected wireless soleblaze Linux - Software 0 08-03-2005 06:04 AM
Limit connected items connected to my router andersh3 Linux - Newbie 1 03-16-2004 11:10 AM
I can't get or stay connected to the mysql server. cevjr Linux - Software 1 12-04-2003 12:29 PM
Why wont you stay connected? phreakazoid Linux - Networking 1 07-22-2003 03:28 AM
help plz! cannot seem to stay connected tonyh Linux - General 7 05-23-2002 02:04 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration