Koozali.org: home of the SME Server

Changing connect times in sme 5.1.2

Ray Mitchell

Changing connect times in sme 5.1.2
« on: February 20, 2002, 06:10:41 AM »
Dear All
Can anyone advise me how to change the default setting for dial up connection times eg when configuring the choices are short, medium, long or continuous.

The long setting of 20 minutes is a bit short, but continuous is too long, I would like something in between.

I guess these settings may be in a template and I should add a custom template, but which one ??

Thanks
Ray Mitchell

Brett

Re: Changing connect times in sme 5.1.2
« Reply #1 on: February 20, 2002, 11:46:02 AM »
Ray,

I need a similar thing. I want it to come up on demand but i don't care about it disconnecting (dedicated phone line but a non dedicated ISP account that tends to be up for 3 or four days before they kick me off). When I am disconnected I won't bother to re-connect until someone wants to use the net.

I'm looking into the diald.* templates and the diald man page. If i figure it out I'll get back to you.

Brett.

Ray Mitchell wrote:
>
> Dear All
> Can anyone advise me how to change the default setting for
> dial up connection times eg when configuring the choices are
> short, medium, long or continuous.
>
> The long setting of 20 minutes is a bit short, but continuous
> is too long, I would like something in between.
>
> I guess these settings may be in a template and I should add
> a custom template, but which one ??
>
> Thanks
> Ray Mitchell

Brett

Re: Changing connect times in sme 5.1.2
« Reply #2 on: February 21, 2002, 03:34:31 AM »
Hey Ray,

I'm just new at this (2 evenings) so there may be a better way.....

Log on as root and copy the diald.template to the custom template area.

mkdir -p /etc/e-smith/templates-custom/etc/diald.filter
cd /etc/e-smith/templates-custom/etc/diald.filter
cp /etc/e-smith/templates/etc/diald.filter/* .

We won't be changing the end and beginning so delete them.

rm template-*

Vi the remaining files and change the "$httpHold = 1200;" and "$otherHold = 600;" lines that appear after the "$policy -eq "long" condition to reflect the new times you require.

I chose 172800 for 48 hours and 86400 for 12 hours. If you're neat and tidy you'll also change the comment line to reflect the new times.

Go to the console of your server and choose 2 to configure it.
Hit enter, enter, enter... to keep everything the same. You will have to change at least one thing to force a re-configure. Reboot and you should be done.

Look at the log file "diald/accounting.log" which can be accessed thru the server-manager to check that things are behaving the way you want it to.

Hope this helps.

Brett.

PS. I'm still trying to figure out if I can bring it up on demand and just leave it up.
I think this is different to continuous as which will bring it back up after being booted whether I need the connection or not. Can anyone help?

Ray Mitchell

Re: Changing connect times in sme 5.1.2
« Reply #3 on: February 21, 2002, 05:05:05 AM »
Dear Brett
Thanks for your feedback so far. I will have a look at your suggestions.
There are some rpm's developed by Stehen Noble which deal with a similar requirement. These may be of use to you. I'm not sure yet if they are what I need.

To test your connection times after the changes you made, just access the internet using a web browser, then the count down to disconnect will begin.

Have a look at
e-smith-dialin-0.3-1.noarch.rpm
e-smith-isp-0.2-3.noarch.rpm
e-smith-linkstatus-0.1-1.noarch.rpm

also at e-smith.org links to
contributed RPMs
contributed HOWTOs

Regards
Ray

stephen noble

Re: Changing connect times in sme 5.1.2
« Reply #4 on: February 21, 2002, 05:22:23 AM »
> Have a look at
> e-smith-dialin-0.3-1.noarch.rpm
> e-smith-isp-0.2-3.noarch.rpm
> e-smith-linkstatus-0.1-1.noarch.rpm

where do you guys get these from ?
they are really old

regards
stephen noble
dungog.net/sme

Ray Mitchell

Re: Changing connect times in sme 5.1.2
« Reply #5 on: February 21, 2002, 06:00:42 AM »
Stephen & Brett

Yes they are a bit old, those file versions were something I had downloaded last year, and were sitting on my hard drive.
Good policy to always check for latest versions on the web site.
Ray

Ray Mitchell

Re: Changing connect times in sme 5.1.2
« Reply #6 on: February 28, 2002, 02:27:46 PM »
Brett
I modified the custom template as you suggested and it worked perfectly.
Problem was my ISP was disconnecting me after 20 minutes of idle time so I still got disconnected.

My solution was to set up a batch file on a workstation and just ping web sites every 15 minutes using Task Scheduler, holds the line open just fine.

To save the console I believe the following command will do the job rather than manually changing the configuration from the console panel
/sbin/e-smith/signal-event console-save

Thanks for your help
Ray Mitchell