which script will be executed when the adsl IP up
Hi all, I have use the adsl to connect the internet. As the ppp link will be disconnect, I want the gateway the send me the new IPaddress to my mail box. Could u tell me, when the ADSL link is up, which scripts will be executed. In linux that shoud be /etc/ppp/ip-up, I donnot know what is in FreeBSD. Thanks, Fred Zhang
Re: which script will be executed when the adsl IP up
On 16 Jul 2000, at 14:21, [EMAIL PROTECTED] wrote: > Hi all, > > I have use the adsl to connect the internet. > As the ppp link will be disconnect, I want the gateway the send me the new >IPaddress to my mail box. > Could u tell me, when the ADSL link is up, which scripts will be executed. > > In linux that shoud be /etc/ppp/ip-up, I donnot know what is in FreeBSD. > > > Thanks, > Fred Zhang I do not have an answer to your exact question. But several of the sites offering DNS services have got scripts that will do what I believe you want. If you download the script offered at www.zoneedit.com you will find that it will interogate your ADSL modem, save the current IP nr. in a file, update their DNS server and email you when the IP nr. changes. Hope this can be of help? Kjell To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: which script will be executed when the adsl IP up
On Sun, Jul 16, 2000 at 02:21:54PM -0700, [EMAIL PROTECTED] wrote: > I have use the adsl to connect the internet. As the ppp link > will be disconnect, I want the gateway the send me the new IPaddress > to my mail box. Could u tell me, when the ADSL link is up, which > scripts will be executed. > In linux that shoud be /etc/ppp/ip-up, I donnot know what is in > FreeBSD. You can use the /etc/ppp/ppp.linkup and /etc/ppp/ppp.linkdown files to cause commands to be executed when your link goes up or down. For instance, assuming that your ppp.conf is based on the default version, this ppp.linkup file will e-mail root an empty message with your new IP number in the subject line: # # Stuff to run when the PPP link comes up. # papchap: !bg mail -s "PPP link up IP = MYADDR" root
Re: which script will be executed when the adsl IP up
> [EMAIL PROTECTED] wrote: > > Hi all, > > I have use the adsl to connect the internet. > As the ppp link will be disconnect, I want the gateway the send me > the new IPaddress to my mail box. > Could u tell me, when the ADSL link is up, which scripts will be > executed. > > In linux that shoud be /etc/ppp/ip-up, I donnot know what is in > FreeBSD. > > > Thanks, > Fred Zhang Not quite a direct answer to your question, but... You haven't thought of using some dynamic dns that are provided by for an example DynDNS? In that way you can always refer to your computer by "name" instead of IP number. The IP number can very well change, and then DynDNS is up- dated automatically, and the "name" will allways point to the correct number. Best regards, Paul To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: which script will be executed when the adsl IP up
thanks, The reason is that: When the the adsl connection is disconnected, and a new IP address is gained. I want to the machine send me the new IP address by mail. so I can logon remotely. - Original Message - From: "Paul Everlund" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, July 14, 2002 5:09 AM Subject: Re: which script will be executed when the adsl IP up > > [EMAIL PROTECTED] wrote: > > > > Hi all, > > > > I have use the adsl to connect the internet. > > As the ppp link will be disconnect, I want the gateway the send me > > the new IPaddress to my mail box. > > Could u tell me, when the ADSL link is up, which scripts will be > > executed. > > > > In linux that shoud be /etc/ppp/ip-up, I donnot know what is in > > FreeBSD. > > > > > > Thanks, > > Fred Zhang > > Not quite a direct answer to your question, but... You haven't thought > of using some dynamic dns that are provided by for an example DynDNS? > In that way you can always refer to your computer by "name" instead of > IP number. The IP number can very well change, and then DynDNS is up- > dated automatically, and the "name" will allways point to the correct > number. > > Best regards, > Paul > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: which script will be executed when the adsl IP up
Greate! Thanks. - Original Message - From: "Matthew Seaman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, July 14, 2002 3:17 AM Subject: Re: which script will be executed when the adsl IP up > On Sun, Jul 16, 2000 at 02:21:54PM -0700, [EMAIL PROTECTED] wrote: > > > I have use the adsl to connect the internet. As the ppp link > > will be disconnect, I want the gateway the send me the new IPaddress > > to my mail box. Could u tell me, when the ADSL link is up, which > > scripts will be executed. > > > In linux that shoud be /etc/ppp/ip-up, I donnot know what is in > > FreeBSD. > > You can use the /etc/ppp/ppp.linkup and /etc/ppp/ppp.linkdown files to > cause commands to be executed when your link goes up or down. For > instance, assuming that your ppp.conf is based on the default version, > this ppp.linkup file will e-mail root an empty message with your new > IP number in the subject line: > > # > # Stuff to run when the PPP link comes up. > # > papchap: > !bg mail -s "PPP link up IP = MYADDR" root # > # That's All Folks! > # > > The special token "MYADDR" is replaced by the new IP number. The > ppp(8) man page has details of all such tokens in the description of > the `!bg' command in the extensive "PPP COMMAND LIST" section. > > Cheers, > > Matthew > > -- > Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks > Savill Way > Tel: +44 1628 476614 Marlow > Fax: +44 0870 0522645 Bucks., SL7 1TH UK > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: which script will be executed when the adsl IP up
[EMAIL PROTECTED] wrote: > > thanks, > The reason is that: > When the the adsl connection is disconnected, and a new IP address > is gained. > I want to the machine send me the new IP address by mail. so I can > logon remotely. Well, then I guess some kind of dynamic DNS is the solution. Take a look at http://www.dyndns.org/. I'm using it myself for that reason, to be able to make remote logins. Also my FTP- and HTTP-server can be accessed by "name". There are other sites as well that deals with the matter, so you could make a search at Google to find out more. Good luck! Best regards, Paul To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message