Go Back   DaemonForums > Miscellaneous > Guides

Guides All Guides and HOWTO's.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 8th August 2010
kallistoteles kallistoteles is offline
New User
Join Date: Jun 2010
Posts: 5
Post Chroot Noip client


I use No-ip to get a hostname for my server. It's easy and the basic functions are free. You need to create an account there first for this to work.
This is how you chroot noip client on OpenBSD.

Install no-ip client
# pkg_add no-ip
Make a directory that will be the new root for the noip2
# mkdir /var/noip2
Add a user that will run the noip2 command.
# useradd -d /var/noip2/ -s /sbin/nologin noip2
Copy the commandfile to it's new home
# mkdir /var/noip2/bin
# cp /usr/local/sbin/noip2 /var/noip2/bin/
Displays the shared objects needed to run noip2
# ldd /var/noip2/bin/noip2
        Start    End      Type Open Ref GrpRef Name
        1c000000 3c00a000 exe  1    0   0      /var/noip2/bin/noip2
        052fb000 25334000 rlib 0    1   0      /usr/lib/libc.so.53.1
        0bb09000 0bb09000 rtld 0    1   0      /usr/libexec/ld.so
Copy them to their new home
# mkdir -p /var/noip2/usr/{lib,libexec}
# cp /usr/lib/libc.so.53.1 /var/noip2/usr/lib/
# cp /usr/libexec/ld.so /var/noip2/usr/libexec/
Preparing configuration
# mkdir /var/noip2/etc
# chown noip2 /var/noip2/etc
Noip2 uses gethostbyname, that uses resolv.conf. If we don't put it there we will get an error like "Can't gethostbyname for dynupdate.no-ip.com"
# cp /etc/resolv.conf /var/noip2/etc/
Now we can create the config file
# chroot -u noip2 /var/noip2 /bin/noip2 -C
! For security we want root to own all the files and directories except /var/noip2/etc and /var/noip2/etc/no-ip2.conf !

The only thing left is to start noip2
# chroot -u noip2 /var/noip2 /bin/noip2
Reply With Quote

chroot, no-ip, noip, openbsd

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ftp jailing ftp-chroot pico OpenBSD Security 4 30th March 2010 06:44 AM
Chroot web-browsing Oko OpenBSD Security 1 29th December 2008 01:37 PM
IM Client schrodinger OpenBSD Packages and Ports 6 16th September 2008 02:09 PM
apache 2.2.8 , is it on chroot by default? superslot OpenBSD Security 9 30th June 2008 11:56 AM
scponly not working with chroot hamba FreeBSD Security 3 15th May 2008 05:18 PM

All times are GMT. The time now is 10:56 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick