I am a poor linux admin, and have got only one linux box in my lab. < I heard about IPCop, one of the best Firewall Open Source Solution at this time. --- |
== Goal ==
I am a poor linux admin, and have got only one linux box in my lab, and would like to > use a real firewalling solution. I heard about IPCop, one of the best Firewall > Open Source Solution at this time. 13a17 - the IPCOP CD (or the ISO image of it) |
- mount ipcop-1.4.5.iso on /vservers/ipcop/mnt/iso (from the host vserver) |
FROM THE HOST VSERVER |
- ipcop:/mnt/iso# tar -zxvf ipcop-1.4.5.tgz -C /ipcop/ |
(this directory is the root of your ipcop vserver)
- debootstrap sid /vservers/ipcop - (this magic command will create a minimal Debian vserver into /vserver/ipcop) - mount ipcop-1.4.5.iso on /vservers/ipcop/mnt/iso (from the host vserver) IN THE IPCOP VSERVER (vserver ipcop enter) - ipcop:/mnt/iso# tar -zxvf ipcop-1.4.5.tgz -C /ipcop/ 2> /tmp/mknod-errors.txt |
- In the host server, create the missing devices: (note that I have no isdn) |
- In the host server, first create the minimal required devices to run a vserver:
<code> drwxr-xr-x root/root 0 2005-05-12 21:46:13 ipcop/dev/pts/ crw------- root/tty 136,0 2005-05-12 21:54:24 ipcop/dev/pts/0 crw crw crw crw-r crw-r crw-rw-rw- root/root 1,3 2004-10-02 22:15:48 ipcop/dev/null crw-r crw-r lrwxrwxrwx root/root 0 2005-04-18 10:46:12 ipcop/dev/MAKEDEV -> /sbin/MAKEDEV prw-r----- root/adm 0 2004-12-26 11:11:19 ipcop/dev/xconsole crw-r crw-r </code> Then, among the following devices, choose and create the ones that you > might need (Here I have no isdn, nor do I need the ipsec, ipnat and ip* > stuff. You might need them) |
Now, let's modify the apache and sshd configuration laying > into /ipcop (from inside the vserver), to suit the configuration > of your vserver (my IPROOT is 192.168.25.1) |
Now, create the right script to have your vserver start > the ipcop service from inside a chroot: > /usr/sbin/chroot /ipcop/ httpd & |