RE: script to monitor internet connection

2006-01-11 Thread Ted Mittelstaedt

Yes.  You need to set your DSL modem into Bridged mode then
setup PPP on the FreeBSD system

One big benefit is that when you do this your FreeBSD system
gets a public IP address on it, rather than the public IP
going to the outside of some NAT in your DSL modem that may
or may not work with all protocols you want to run.

Ted

>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of Brian John
>Sent: Tuesday, January 10, 2006 6:04 PM
>To: Rowdy
>Cc: freebsd-questions@freebsd.org
>Subject: Re: script to monitor internet connection
>
>
>Rowdy wrote:
>
>> Brian John wrote:
>>
>>> this is dsl.  Sorry, I should have specified that in the beginning. 
>>> Periodically my dsl modem will lose it's signal, I want to see just
>>> how often this is happening.
>>
>>
>> If your DSL uses PPPoE then the ppp.linkup and ppp.linkdown 
>scripts will
>> be triggered when the link comes up or goes down respectively.  See
>> ppp(8) for details and /usr/share/examples/ppp for examples.
>>
>> Rowdy
>>
>Mine uses PPPoA.  Is it still possible to use these scripts?
>
>Thanks for the help
>
>/Brian
>___
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to 
>"[EMAIL PROTECTED]"
>
>-- 
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.1.371 / Virus Database: 267.14.16/225 - Release 
>Date: 1/9/2006
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: script to monitor internet connection

2006-01-10 Thread Brian John

Rowdy wrote:


Brian John wrote:

this is dsl.  Sorry, I should have specified that in the beginning. 
Periodically my dsl modem will lose it's signal, I want to see just

how often this is happening.



If your DSL uses PPPoE then the ppp.linkup and ppp.linkdown scripts will
be triggered when the link comes up or goes down respectively.  See
ppp(8) for details and /usr/share/examples/ppp for examples.

Rowdy


Mine uses PPPoA.  Is it still possible to use these scripts?

Thanks for the help

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


RE: script to monitor internet connection

2006-01-09 Thread Ted Mittelstaedt

I thought it might be.

You do realize, hopefully, that this problem most likely has
absolutely nothing to do with your ISP, and if you were to change
ISP's it would probably keep happening.

I work for an ISP that is a DSL provider.  If you supply the make
and model of your DSL modem and whether your in ppp mode or not
I might be able to give you some troubleshooting
steps that would enable you to actually fix the problem.

Ted

>-Original Message-
>From: Brian John [mailto:[EMAIL PROTECTED]
>Sent: Monday, January 09, 2006 10:57 AM
>To: Ted Mittelstaedt; freebsd-questions@freebsd.org
>Subject: RE: script to monitor internet connection
>
>
>this is dsl.  Sorry, I should have specified that in the beginning. 
>Periodically my dsl modem will lose it's signal, I want to see just how
>often this is happening.
>
>
>- Original Message -
>
>> what is this, dsl, cable, dialup modem?
>>
>> Ted
>>
>> >-Original Message-
>> >From: [EMAIL PROTECTED]
>> >[mailto:[EMAIL PROTECTED] Behalf Of Brian John
>> >Sent: Friday, January 06, 2006 5:23 AM
>> >To: freebsd-questions@freebsd.org
>> >Subject: script to monitor internet connection
>> >
>> >
>> >Hello,
>> >I would like to write a script to monitor my internet
>> >connection status.
>> >My home connection goes down fairly often and I would like to
>> >get an idea
>> >for just how often it goes down and if possible how long it
>> >goes down for.
>> > Could someone help me write a script that will check my
>> >connection to the
>> >internet and log whenever it goes down and possibly how long it
>> >goes down
>> >for?  I want to have some evidence to give to my ISP that my
>> >connection is
>> >going down.
>> >
>> >Thanks
>> >
>> >/Brian
>> >___
>> >freebsd-questions@freebsd.org mailing list
>> >http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> >To unsubscribe, send any mail to
>> >"[EMAIL PROTECTED]"
>> >
>> >--
>> >No virus found in this incoming message.
>> >Checked by AVG Free Edition.
>> >Version: 7.1.371 / Virus Database: 267.14.15/223 - Release
>> >Date: 1/6/2006
>> >
>>
>>
>>
>
>-- 
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.1.371 / Virus Database: 267.14.15/223 - Release 
>Date: 1/6/2006
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: script to monitor internet connection

2006-01-09 Thread Rowdy

Brian John wrote:
this is dsl.  Sorry, I should have specified that in the beginning. 
Periodically my dsl modem will lose it's signal, I want to see just

how often this is happening.


If your DSL uses PPPoE then the ppp.linkup and ppp.linkdown scripts will
be triggered when the link comes up or goes down respectively.  See
ppp(8) for details and /usr/share/examples/ppp for examples.

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


RE: script to monitor internet connection

2006-01-09 Thread Brian John
this is dsl.  Sorry, I should have specified that in the beginning. 
Periodically my dsl modem will lose it's signal, I want to see just how
often this is happening.


- Original Message -

> what is this, dsl, cable, dialup modem?
>
> Ted
>
> >-Original Message-
> >From: [EMAIL PROTECTED]
> >[mailto:[EMAIL PROTECTED] Behalf Of Brian John
> >Sent: Friday, January 06, 2006 5:23 AM
> >To: freebsd-questions@freebsd.org
> >Subject: script to monitor internet connection
> >
> >
> >Hello,
> >I would like to write a script to monitor my internet
> >connection status.
> >My home connection goes down fairly often and I would like to
> >get an idea
> >for just how often it goes down and if possible how long it
> >goes down for.
> > Could someone help me write a script that will check my
> >connection to the
> >internet and log whenever it goes down and possibly how long it
> >goes down
> >for?  I want to have some evidence to give to my ISP that my
> >connection is
> >going down.
> >
> >Thanks
> >
> >/Brian
> >___
> >freebsd-questions@freebsd.org mailing list
> >http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >To unsubscribe, send any mail to
> >"[EMAIL PROTECTED]"
> >
> >--
> >No virus found in this incoming message.
> >Checked by AVG Free Edition.
> >Version: 7.1.371 / Virus Database: 267.14.15/223 - Release
> >Date: 1/6/2006
> >
>
>
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: script to monitor internet connection

2006-01-07 Thread Ted Mittelstaedt

what is this, dsl, cable, dialup modem?

Ted

>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of Brian John
>Sent: Friday, January 06, 2006 5:23 AM
>To: freebsd-questions@freebsd.org
>Subject: script to monitor internet connection
>
>
>Hello,
>I would like to write a script to monitor my internet 
>connection status. 
>My home connection goes down fairly often and I would like to 
>get an idea
>for just how often it goes down and if possible how long it 
>goes down for.
> Could someone help me write a script that will check my 
>connection to the
>internet and log whenever it goes down and possibly how long it 
>goes down
>for?  I want to have some evidence to give to my ISP that my 
>connection is
>going down.
>
>Thanks
>
>/Brian
>___
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to 
>"[EMAIL PROTECTED]"
>
>-- 
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.1.371 / Virus Database: 267.14.15/223 - Release 
>Date: 1/6/2006
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: script to monitor internet connection

2006-01-06 Thread Micah

Brian John wrote:

Hello,
I would like to write a script to monitor my internet connection status. 
My home connection goes down fairly often and I would like to get an idea

for just how often it goes down and if possible how long it goes down for.
 Could someone help me write a script that will check my connection to the
internet and log whenever it goes down and possibly how long it goes down
for?  I want to have some evidence to give to my ISP that my connection is
going down.

Thanks

/Brian


If there really is nothing in the ports collection or google, you might 
start with pinging from a cron job.  Something like:

#!/bin/sh
ping -c 1 my.isps.main.server.example.com 2> /dev/null > /dev/null
echo `date`: Ping returned $? >> /var/log/ispevidence.log

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


Re: script to monitor internet connection

2006-01-06 Thread Rowdy

Brian John wrote:

Hello, I would like to write a script to monitor my internet
connection status. My home connection goes down fairly often and I
would like to get an idea for just how often it goes down and if
possible how long it goes down for. Could someone help me write a
script that will check my connection to the internet and log whenever
it goes down and possibly how long it goes down for?  I want to have
some evidence to give to my ISP that my connection is going down.

Thanks

/Brian


Assuming it is a PPP connection, type 'man ppp' and read about the files
/etc/ppp/ppp.linkup and /etc/ppp/ppp.linkdown - they should allow you to
echo a line to a log file of your own devising.

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


script to monitor internet connection

2006-01-06 Thread Brian John
Hello,
I would like to write a script to monitor my internet connection status. 
My home connection goes down fairly often and I would like to get an idea
for just how often it goes down and if possible how long it goes down for.
 Could someone help me write a script that will check my connection to the
internet and log whenever it goes down and possibly how long it goes down
for?  I want to have some evidence to give to my ISP that my connection is
going down.

Thanks

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