Hello!
I have some random and some unrandom questions about Pound. First of all how
do you acctually create a working chrootjail for it? I did some work in the
area and found this out:
Install pound in some way (yum install pound, apt-get install pound etc).
Create the folder for the chrootjail:
mkdir /var/pound/
Create a structure for pound to work within:
mkdir /var/pound/etc/
mkdir /var/pound/dev/
mkdir /var/pound/log/
mkdir /var/pound/lib/
Then copy the libs needed (it is here I'm not sure!)
cp /lib/libgcc_s* /var/pound/lib
cp /lib/libnss_dns* /var/pound/lib
Create the following devices (I'm not sure on the "log" device)
mknod -m 0644 /var/pound/dev/random c 1 8
mknod -m 0644 /var/pound/dev/urandom c 1 9
mknod -m 0666 /var/pound/dev/null c 1 3
Move the default config
mv /etc/pound.cfg /var/pound/etc
ln -s /var/pound/etc/pound.cfg /etc/pound.cfg
Optional create a foundation for some random stuff
mkdir /var/pound/var
touch /var/pound/var/err500.html
touch /var/pound/var/err503.html
touch /var/pound/var/err414.html
edit the config
RootJail /var/pound
User "nobody"
Group "nobody"
Control "/var/pound/pound.ctl"
LogFacility local1
LogLevel 0
TimeOut 60
Alive 10
DynScale 1
========
Now to some problems:
Im getting segfaults when running poundctl
poundctl -c /var/run/pound.ctl
0. http Listener 0.0.0.0:0 a
0. Service active (0)
0. Backend (UNKNOWN):0 active (0 0.000 sec) DEAD
Segmentation fault
The main pound works fine but the poundctl is giving me trouble.
kernel: poundctl[14473]: segfault at 0000000000000000 rip 0000000000000000
rsp 00007fff6435dff0 error 14
What did I do wrong :D?
Also is there a more comperhensive guide on howto create a chrootjail for
pound? I think I did get it to work but there are no good reading in that
area.