Howto | Install IPCop Firewall

This document is for the purpose of building in IPCop Firewall onto a MSI Axis 700 barebones PC. The firewall will also be used as a NTP time-server, Content-filtering proxy server and OpenVPN server.


MSI Axis 700

N.B. I believe 512mb is insufficient and I would recommend purchasing Kingston Memory - KVR667D2NG/1G

Key Steps

Install Copfilter

Download Copfilter.

# scp -P 222 copfilter-version.tgz root@ipcop_green_address:/root
# ssh -p 222 -l root ipcop_green_address
# cd /root
# tar xzvf copfilter-version.tgz
# cd copfilter-version
# ./install

This should complete with a message such as this:

Copfilter ~version~ installation completed successfully!

Install Advanced Proxy

Download Advanced Proxy.

# scp -P 222 ipcop-advproxy-version.tar.gz root@ipcop_green_address:/root
# ssh -p 222 -l root ipcop_green_address
# tar -xzf ipcop-advproxy-version.tar.gz
# ipcop-advproxy/install

Install Enhanced Proxy Log Viewer

Download Advanced Proxy Log Viewer.

This package enables the capability to show usernames within the proxy log viewer.

Copy the file proxylog.dat to the directory /home/httpd/cgi-bin/logs.cgi and set the file permissions to 755 (rwxr-xr-x).

Install URL Filter Add-on

Download URL Filter.

# scp -P 222 ipcop-urlfilter-version.tar.gz root@ipcop_green_address:/root
# ssh -p 222 -l root ipcop_green_address
# tar -xzf ipcop-urlfilter-version.tar.gz
# ipcop-urlfilter/install

Install Zerina OpenVPN

Zerina OpenVPN.

If you are updating, first stop the OpenVPN Server through the GUI.

These instruction include a dangerous bodge to arbitrarily alter the IPCop version requirement, only proceed if you are happy to accept the inherent risk in so doing.

# scp -P 222 ZERINA-version-Installer.tar.gz root@ipcop_green_address:/root
# ssh -p 222 -l root ipcop_green_address
# mkdir /root/zerina
# mv ZERINA-version-Installer.tar.gz /root/zerina/
# cd /root/zerina
# tar -xzvf ZERINA-version-Installer.tar.gz
# sed -i s/1\.4\.18/1.4.21/ install
# ./install

Configure Zerina OpenVPN

Configure OpenVPN for Network-Manager

Download and extract the ZIP file from IPCOP OpenVPN, and extract the contents into (for example ~/.openvpn).

$ sudo apt-get install network-manager-openvpn
$ cd ~/.openvpn
$ sudo su
# openssl pkcs12 -nocerts -in default.p12 -out key.pem
# openssl pkcs12 -nokeys -clcerts -in default.p12 -out cert.pem
# openssl pkcs12 -nokeys -cacerts -in default.p12 -out ca.pem
# exit

These converted files can then be used in Network Manager.

If you’re struggling to connect to OpenVPN with Network Manager, consider that you need to ensure that the settings are mirrored on both IPCop and on the client’s Network Manager, for example I struggled to connect until I realised that LZO Compression was switched on on IPCop but off in Network Manager.

Static Routes

There is no way to set this in the GUI, so connect via SSH (see above):

In /etc/rc.d/rc.netaddress.up add:

if [ "$1" != "NOTGREEN" ]; then
if [ "$GREEN_DEV" != "" ]; then

    route add -net netmask gw

Identifying Network Interfaces in Linux

If your network card supports it, you can blink the LED on the specified network interface in Linux like this:

# ethtool -p eth# 5

This blinks the LED on the interface for five seconds-without interrupting network traffic.

Flushing the DNS Cache

There may be times that you wish to flush the DNS cache. IPCop uses dnsmasq, log onto ipcop using root and run the following:

# ps -ef | grep dnsmasq
# kill -s SIGHUP <PID> (replacing <PID> with the PID shown by the previous command)


comments powered by Disqus