<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  
  
  <channel>
    <title>chrisjrob: ipcop</title>
    <link>https://chrisjrob.com</link>
    <atom:link href="https://chrisjrob.com/tag/ipcop/feed/index.xml" rel="self" type="application/rss+xml" />
    <description>GNU Linux, Perl and FLOSS</description>
    <language>en-gb</language>
    <pubDate>Fri, 13 Feb 2026 17:22:31 +0000</pubDate>
    <lastBuildDate>Fri, 13 Feb 2026 17:22:31 +0000</lastBuildDate>
    
    <item>
      <title>Howto | Install IPCop Firewall</title>
      <link>https://chrisjrob.com/2009/10/12/install-ipcop-firewall/</link>
      <pubDate>Mon, 12 Oct 2009 11:42:39 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2009/10/12/install-ipcop-firewall</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/ipcop_logo.png" align="right" alt="Featured Image">
         
         <p>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.</p>

<!--more-->

<h2 id="requirements">Requirements</h2>

<p><img src="/assets/msi-axis-700.jpg" class="image-right" alt="MSI Axis 700" /></p>

<ul>
  <li>MSI C7 VIA CN700 5.1 Audio Lan DDRII quicklinx:<a href="https://www.dabs4work.com/productview.aspx?Quicklinx=4FY9">4FY9WS</a></li>
  <li>D-Link DFE 580TX - network adapter - 4 ports quicklinx:<a href="https://www.dabs4work.com/productview.aspx?QuickLinx=1YH9">1YH9WS</a></li>
  <li>LG Electronics DVD ROM 16X BLACK DRIVE ONLY quicklinx:<a href="https://www.dabs4work.com/productview.aspx?QuickLinx=4N6S">4N6SWS</a></li>
  <li>Seagate Barracuda 7200.10 80GB S300 8MB quicklinx:<a href="https://www.dabs4work.com/productview.aspx?QuickLinx=4MRK">4MRKWS</a></li>
  <li>Crucial 512MB 240Pin DIMM DDR2 PC2-4200 Non-ECC quicklinx: <a href="http://www.dabs4work.com/productview.aspx?Quicklinx=36TC">36TCWS</a></li>
</ul>

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

<h2 id="key-steps">Key Steps</h2>

<ul>
  <li>Assemble above</li>
  <li>Disable “EHCP on chip” under “Integrated peripherals” in BIOS (prevents NIC being loaded correctly)</li>
  <li>Disable “ACPI” under Power Management (from memory)</li>
  <li>Download IPCop at <a href="https://sourceforge.net/project/showfiles.php?group_id=40604">IPCop.org</a> and burn to CD</li>
  <li>Boot CD</li>
  <li>Follow prompts to install (you may find this <a href="http://www.howtoforge.net/perfect_linux_firewall_ipcop">Howtoforge</a> useful)</li>
  <li>Connect to web admin page</li>
  <li>Install Copfilter (for Virus protection and more)</li>
  <li>Install Advanced Proxy (for user authentication and control)</li>
  <li>Install URL Filter (for content filtering)</li>
  <li>Install Zerina OpenVPN</li>
  <li>Configure Zerina OpenVPN</li>
</ul>

<h2 id="install-copfilter">Install Copfilter</h2>

<p><a href="http://www.copfilter.org/downloads.php">Download Copfilter</a>.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># 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
</code></pre></div></div>

<p>This should complete with a message such as this:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Copfilter ~version~ installation completed successfully!
</code></pre></div></div>

<h2 id="install-advanced-proxy">Install Advanced Proxy</h2>

<p><a href="http://www.advproxy.net/download.html">Download Advanced Proxy</a>.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># 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
</code></pre></div></div>

<h2 id="install-enhanced-proxy-log-viewer">Install Enhanced Proxy Log Viewer</h2>

<p><a href="http://www.advproxy.net/download.html">Download Advanced Proxy Log Viewer</a>.</p>

<p>This package enables the capability to show usernames within the proxy log viewer.</p>

<p>Copy the file <code class="language-plaintext highlighter-rouge">proxylog.dat</code> to the directory <code class="language-plaintext highlighter-rouge">/home/httpd/cgi-bin/logs.cgi</code> and set the file permissions to 755 (<code class="language-plaintext highlighter-rouge">rwxr-xr-x</code>).</p>

<h2 id="install-url-filter-add-on">Install URL Filter Add-on</h2>

<p><a href="http://www.urlfilter.net/download.html">Download URL Filter</a>.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># 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
</code></pre></div></div>

<h2 id="install-zerina-openvpn">Install Zerina OpenVPN</h2>

<p><a href="http://www.openvpn.eu/index.php?id=35">Zerina OpenVPN</a>.</p>

<p>If you are updating, first stop the OpenVPN Server through the GUI.</p>

<p>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.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># 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
</code></pre></div></div>

<h2 id="configure-zerina-openvpn">Configure Zerina OpenVPN</h2>

<ul>
  <li><a href="http://www.zerina.de/zerina/?q=documentation/howto-roadwarrior">Zerina OpenVPN</a></li>
</ul>

<h2 id="configure-openvpn-for-network-manager">Configure OpenVPN for Network-Manager</h2>

<p>Download and extract the ZIP file from IPCOP OpenVPN, and extract the contents into (for example <code class="language-plaintext highlighter-rouge">~/.openvpn</code>).</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ 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
</code></pre></div></div>

<p>These converted files can then be used in Network Manager.</p>

<p>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.</p>

<h2 id="static-routes">Static Routes</h2>

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

<p>In <code class="language-plaintext highlighter-rouge">/etc/rc.d/rc.netaddress.up</code> add:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>if [ "$1" != "NOTGREEN" ]; then
if [ "$GREEN_DEV" != "" ]; then
    ifconfig $GREEN_DEV $GREEN_ADDRESS netmask $GREEN_NETMASK broadcast $GREEN_BROADCAST up

    ####CUSTOM EDIT FOR STATIC ROUTE####
    route add -net 10.100.1.0 netmask 255.255.255.0 gw 10.2.0.1
    ####CUSTOM EDIT FOR STATIC ROUTE####
</code></pre></div></div>

<h2 id="identifying-network-interfaces-in-linux">Identifying Network Interfaces in Linux</h2>

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

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># ethtool -p eth# 5
</code></pre></div></div>

<p>This blinks the LED on the interface for five seconds-without interrupting network traffic.</p>

<ul>
  <li><a href="http://www.coolcommands.com/index.php?option=com_cc&amp;task=display&amp;id=1287">Cool Command</a></li>
</ul>

<h2 id="flushing-the-dns-cache">Flushing the DNS Cache</h2>

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

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># ps -ef | grep dnsmasq
# kill -s SIGHUP &amp;lt;PID&amp;gt; (replacing &amp;lt;PID&amp;gt; with the PID shown by the previous command)
</code></pre></div></div>

<h2 id="references">References</h2>

<ul>
  <li><a href="http://ipcop.org/">IPCop.org</a>
    <ul>
      <li><a href="http://marc.info/?l=ipcop-user">User forum</a></li>
    </ul>
  </li>
  <li><a href="http://www.howtoforge.net/perfect_linux_firewall_ipcop">Howtoforge</a>
    <ul>
      <li><a href="http://howtoforge.net/perfect_linux_firewall_ipcop_p2">Continued…</a></li>
    </ul>
  </li>
  <li><a href="http://firewalladdons.sourceforge.net/cop.html">Addons</a></li>
  <li><a href="http://dansguardian.org/">DansGuardian</a></li>
  <li><a href="http://en.wikipedia.org/wiki/Iptables">IPTables on Wikipedia</a></li>
  <li><a href="http://www.securityfocus.com/infocus/1556">IPCop Review</a></li>
  <li><a href="http://www.snort.org/">Snort</a></li>
  <li><a href="http://ipcop.org/index.php?module=pnWikka&amp;tag=OpenVPNHowto">Installing OpenVPN</a></li>
  <li><a href="http://copfilter.endlich-mail.de/viewtopic.php?t=1069&amp;highlight=havp+dansguardian">Resolving add-on conflicts</a></li>
</ul>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Howto | Huawei E220 3G USB Modem</title>
      <link>https://chrisjrob.com/2009/05/11/install-huawei-e220-3g-usb-modem/</link>
      <pubDate>Mon, 11 May 2009 08:34:15 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2009/05/11/install-huawei-e220-3g-usb-modem</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/huawei-e220.jpg" align="right" alt="Featured Image">
         
         <h2 id="introduction">Introduction</h2>

<p>Following a failure of our Internet connection, I hastily cobbled together a new proxy server using my 3G modem.  The reason I did not simply add the modem to our existing IPCop solution, was because IPCop currently only supports a single Red/WAN interface.  The IPCop FAQs specifically warn against attempting multiple interfaces.</p>

<!--more-->

<p>There were many instructions on the Internet, but in reality it proved to be quite straightforward.  I followed these instructions, varying them slightly for Vodafone:</p>

<ul>
  <li><a href="http://www.richs.me.uk/content/view/132/51/">http://www.richs.me.uk/content/view/132/51/</a></li>
</ul>

<p>This was tested on IPCOP version 1.4.18, older versions may not work.</p>

<h2 id="warning">Warning</h2>

<p>These are my own personal notes, they relate to a UK Vodafone install, you would need to alter instructions for your location and telco.</p>

<h2 id="configure-kernel-modules">Configure Kernel modules</h2>

<p>When building your IPCOP, you need to set the IPCOP to use a network adaptor for the Green Interface and a Modem to use as the Red Interface.</p>

<p>From the command prompt logged on as root on the IPCOP you need to edit the /etc/modules.conf file.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># nano /etc/modules.conf
</code></pre></div></div>

<p>Add the following lines at the bottom:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>alias char-major-188 usbserial
options usbserial vendor=0x12d1 product=0x1003 maxSize=4096
</code></pre></div></div>

<p>Then save the file and access (Press CTRL + O and press enter then press CTRL + X).</p>

<h2 id="web-console---modem">Web Console - Modem</h2>

<p>Log onto the web console and choose the Network menu and Modems.  Change INIT to:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>AT+CGDCONT=16,"IP","internet"
</code></pre></div></div>

<h2 id="web-console---dial-up">Web Console - Dial-up</h2>

<p>Now select Dial-Up.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Interface = "Modem on USB0"
Enter Number = "*99#"
Username = internet
Password = internet
Authentication method = PAP
DNS = Automatic
Profile name = Vodafone
</code></pre></div></div>

<p>Press “Save”.</p>

<h2 id="test">Test</h2>

<p>Connect your 3G modem into the IPCOP box and reboot.</p>

<p>You should now be able to connect to the net using your 3G dongle.</p>

<h2 id="references">References</h2>

<ul>
  <li><a href="http://www.richs.me.uk/content/view/132/51/">http://www.richs.me.uk/content/view/132/51/</a></li>
</ul>

<h2 id="conclusion">Conclusion</h2>

<p>Amazingly it only took a couple of hours, including building a new PC, and it worked beautifully.  Unfortunately, or perhaps that’s fortunately, no-one will ever know how good it was, because our Internet connection started working again about 15-minutes after I had completed it!</p>


       ]]>
      </description>
    </item>
    
  </channel> 
</rss>
