In the /etc/rc.local file.

Below is an excertp from that file...
# cat /etc/rc.local
#       $OpenBSD: rc.local,v 1.39 2006/07/28 20:19:46 sturm Exp $

# Site-specific startup actions, daemons, and other things which
# can be done AFTER your system goes into securemode.  For actions
# which should be done BEFORE your system has gone into securemode
# please see /etc/rc.securelevel.

echo -n 'starting local daemons:'

# Add your local startup actions here.

echo '.'



  ----- Original Message -----
  From: Saulo Bozzi
  To: Marcello Cruz
  Cc: OpenBSD-Misc
  Sent: Sunday, January 17, 2010 1:21 AM
  Subject: Re: Client no-ip in the OpenBSD.


  cool, but now the no-ip binary work.

  but, where put him to run in the boot?
  rc.conf.local?


  2010/1/17 Marcello Cruz <marcello.c...@globo.com>

    Dear friend,

    There is another way to update your IP address without the use of the
no-ip client.

    I use lynx and it does just the same. Lynx is part of a regular OBSD
install. You can run it, for example, with your connection script (like
ppp.linkup) or after a reboot in the rc.local. Also, you can create a job with
crontab to run the command in a week basis, for example.

    The command line is something like that:
    # lynx -dump -accept_all_cookies -auth=mailb...@domain.com.br:\password
http://dynupdate.no-ip.com/nic/update?hostname=host.no-ip.info&myip=`ifconfig
tun0 | grep 'inet ' | awk '{print $2}'`

    In my case, I use this line within a script and I redirect the output of
this command to another file. If something goes bad, then there is a job
running every 30 minutes that tries to update the information in the NO-IP
service.

    Rgds
    Marcello Cruz

Reply via email to