<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  
  
  <channel>
    <title>chrisjrob: firewall</title>
    <link>https://chrisjrob.com</link>
    <atom:link href="https://chrisjrob.com/tag/firewall/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>Surrey LUG Bring-a-Box Meeting</title>
      <link>https://chrisjrob.com/2009/04/11/surrey-lug-bring-a-box-meeting/</link>
      <pubDate>Sat, 11 Apr 2009 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2009/04/11/surrey-lug-bring-a-box-meeting</guid>
      <description>
       <![CDATA[
         
         <p>I’ve just returned from my first <a href="http://surrey.lug.org.uk/Meetings/BringABox/Archive/20090411">Bring-a-Box meeting at Nokia in Farnborough</a>.  I found it hugely enjoyable to have people who actually want to talk about Linux.</p>

<!--more-->

<p>I was introduced to Firestarter, which is a GUI to configure a firewall and share your Internet connection, if you so wish, I’m looking forward to having a play with this.</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Mission Control - We have a Problem</title>
      <link>https://chrisjrob.com/2008/07/29/mission-control-we-have-a-problem/</link>
      <pubDate>Tue, 29 Jul 2008 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2008/07/29/mission-control-we-have-a-problem</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/ipcop_logo.png" align="right" alt="Featured Image">
         
         <p>Our ADSL connection went down yesterday morning, taking with it our websites, email and browsing.  It is amazing how cut-off you feel without Internet access.  We have a fully-managed service, so Clara.net sent out a replacement router, only to find that the problem was elsewhere and that they had to log the fault with BT.</p>

<!--more-->

<p>Thinking that our Internet access could be out for days, I decided to try and utilise my laptop’s Vodafone 3G modem.  After a little research on my Eee PC I discovered that IPCop firewall can only handle a single WAN interface, so I decided to build a temporary IPCop firewall for the purpose:</p>

<ul>
  <li><a href="/2009/10/12/install-ipcop-firewall/">Install IPCop Firewall</a></li>
</ul>


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