Re: configure NAT with demand dial interface?

2008-09-18 Thread Lowell Gilbert
imax36581 [EMAIL PROTECTED] writes:

 im new to freebsd.
 i want to that can i have a NAT service that using demand dial
 connection(such as dial up or pppoe connections)?
 can i configure it to disconnect when the service is idle(for saving
 bandwidth)?

ppp(8) supports this directly:
  http://www.freebsd.org/cgi/man.cgi?query=ppp
[see the -auto and -nat options]
-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: configure NAT with demand dial interface?

2008-09-18 Thread imax36581



Lowell Gilbert wrote:
 
 imax36581 [EMAIL PROTECTED] writes:
 
 im new to freebsd.
 i want to that can i have a NAT service that using demand dial
 connection(such as dial up or pppoe connections)?
 can i configure it to disconnect when the service is idle(for saving
 bandwidth)?
 
 ppp(8) supports this directly:
   http://www.freebsd.org/cgi/man.cgi?query=ppp
 [see the -auto and -nat options]
 -- 
 Lowell Gilbert, embedded/networking software engineer, Boston area
   http://be-well.ilk.org/~lowell/
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 
 
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 :)
-- 
View this message in context: 
http://www.nabble.com/configure-NAT-with-demand-dial-interface--tp19554068p19556717.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: configure NAT with demand dial interface?

2008-09-18 Thread Mel
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.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: configure NAT with demand dial interface?

2008-09-18 Thread matt donovan
On Thu, Sep 18, 2008 at 1:16 PM, Mel [EMAIL PROTECTED]wrote:

 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.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]

This might come in handy for you
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ppp-and-slip.htmlsince
the others already said the good stuff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: configure NAT with demand dial interface?

2008-09-18 Thread imax36581



matt donovan-4 wrote:
 
 On Thu, Sep 18, 2008 at 1:16 PM, Mel
 [EMAIL PROTECTED]wrote:
 
 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.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]

 This might come in handy for you
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ppp-and-slip.htmlsince
 the others already said the good stuff
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 
 
thanks my friends...
useful information
also i must do it with pppoe connection and not ppp,it seems that both are
the same,if not please inform me.
10x again .
-- 
View this message in context: 
http://www.nabble.com/configure-NAT-with-demand-dial-interface--tp19554068p19564595.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: configure NAT with demand dial interface?

2008-09-18 Thread Andrew D (Webzone)

imax36581 wrote:




--snip--




thanks my friends...
useful information
also i must do it with pppoe connection and not ppp,it seems that both are
the same,if not please inform me.


pppoe is supported by ppp, just has a slightly different config within 
/etc/ppp/ppp.conf than ppp


see
http://www.freebsd.org/doc/en/books/handbook/pppoe.html



10x again .


Cheers
cya
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]