Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Sep 2008 19:16:38 +0200
From:      Mel <fbsd.questions@rachie.is-a-geek.net>
To:        freebsd-questions@freebsd.org
Cc:        imax36581 <imannapelon@yahoo.com>
Subject:   Re: configure NAT with demand dial interface?
Message-ID:  <200809181916.39743.fbsd.questions@rachie.is-a-geek.net>
In-Reply-To: <19556717.post@talk.nabble.com>
References:  <19554068.post@talk.nabble.com> <44k5d9bis5.fsf@be-well.ilk.org> <19556717.post@talk.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 18 September 2008 18:23:30 imax36581 wrote:

> thanks Lowell Gilbert,it will be useful for me soon....
> but another question....
> on that page i cant find anything that can help me to scheduling
> connections....
> for example i have two account (pppoe),i want to use second account during
> 3 util 7 am and use the first account in other times
> do you have another article that help me do this?
> thanks in advance :)

Properly setup ppp profiles, using /etc/defaults/rc.conf (search for ppp) as a 
guide. Also read up on rc.conf(5), very useful info.

Then use 2 crontabs at the appropreate times, as simple as:
0 3 * * * /etc/rc.d/ppp stop <dayprofile>; /etc/rc.d/ppp start <nightprofile>
0 7 * * * /etc/rc.d/ppp stop <nightprofile>; /etc/rc.d/ppp start <dayprofile>

-- 
Mel

Problem with today's modular software: they start with the modules
    and never get to the software part.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809181916.39743.fbsd.questions>