IPCOP FAQ
Version 0.6.6


September 19, 2008
PDF Version: http://ipcops.com/faq/ipcop_faq.pdf

Contents

1 FAQ
 1.1 IPCOP Setup Issues
  1.1.1 I just downloaded IPCOP but it will not install. Help!
  1.1.2 I am trying to use IPCOP in a testing environment but I can not access the Internet. What is wrong?
  1.1.3 I have a Red-Blue-Green setup but I can not access computer on Blue from Green. Help!
  1.1.4 I have a Red-Orange-Green setup connected by a switch. None of my computers can access the Internet, why?
  1.1.5 Is there any way I can disable NAT on IPCOP?
  1.1.6 IPCOP will not recognize all of my NICs, what do I do?
  1.1.7 How do I SSH into IPCOP?
  1.1.8 How can I remotely access the web interface?
  1.1.9 I have enabled remote access to the web interface but I can’t connect. What’s wrong?
  1.1.10 How do I change my SSL port for the web interface?
  1.1.11 How do I change my setup type after install?
  1.1.12 My NIC won’t work, what do I do? (PCI IRQ Conflicts)
  1.1.13 I want to use Gigabit ethernet NICs. Does IPCOP support Gigabit ethernet NICs?
  1.1.14 I have added a second subnet/LAN to IPCOP. How do I get the web proxy to allow web request?
  1.1.15 How do I setup Dynamic DNS on IPCOP?
 1.2 Administrating IPCOP
  1.2.1 What is the difference between Port Forwarding and External Access?
  1.2.2 I just looked at my status page and noticed I am running a web server. What is it and how do I stop it?
  1.2.3 My consumer router has UPNP, how do I enable it on IPCOP?
  1.2.4 My consumer router has Port Triggering, how do I enable it on IPCOP?
  1.2.5 I have multiple IP addresses from my ISP. How do I configure IPCOP to respond to all of them?
  1.2.6 I have added IP addresses to the Alias page but all of my requests come from one IP address. How do I change this?
  1.2.7 How do I copy a file over to IPCOP?
  1.2.8 How do I test port forwarding, external access, and/or my firewall for open ports?
  1.2.9 When I do a port scan, IPCOP shows port 113 is closed. How do I make port 113 unreplied?
  1.2.10 What traffic is allowed between interfaces?
  1.2.11 My traffic graphs are not updating, what do I do?
  1.2.12 I am trying to update IPCOP, do I have to apply all patches in order?
  1.2.13 How do I edit files on IPCOP?
  1.2.14 How do I change the http and https ports IPCOP uses?
  1.2.15 How do I set multiple public IP addresses with my PPPoE/PPPoA connection?
  1.2.16 How do I login to IPCOP?
  1.2.17 How do I change the port IPCOP uses for SSH?
  1.2.18 I am receiving the following error message when trying to change settings in the web GUI: ’Invalid referer: doesn’t match servername!’
  1.2.19 I don’t like the builtin graphs, where can I get better graphs?
 1.3 Using IPCOP
  1.3.1 I just installed IPCOP and I can not get an IP Address from my ISP. Help!
  1.3.2 IPCOP keeps crashing when I use p2p/bittorrent clients, what do I do?
  1.3.3 How do I add a custom host to IPCOP’s DNS?
  1.3.4 How do I use the builtin traffic shaper?
  1.3.5 How do I change my MTU settings?
  1.3.6 I am getting a Snort ’Oink Oink’ error, how do I fix it?
  1.3.7 Snort fails after rules update, what do I do?
  1.3.8 How do I rebuild my Zerina certificates?
  1.3.9 How do I run OpenVPN on Vista?
  1.3.10 How do I control access for VPN clients to my servers?
  1.3.11 I have added a computer to Blue but it is not connecting to the Internet. What do I do?
  1.3.12 How do I use DNS servers with IPCOP (i.e. which to specify for each interface)?
 1.4 Advanced IPCOP setups
  1.4.1 How do I configure IPCOP to work in 1:1 NAT mode?
  1.4.2 I added a wireless access point to the Blue NIC and I can’t access the web. What’s wrong?
  1.4.3 How do I configure IPCOP to force registration of wireless users before they can access the Internet (a.k.a. I want a Captive Portal on IPCOP)?
  1.4.4 How do I use multiple WAN interfaces with IPCOP?
  1.4.5 How do I configure IPCOP to support load balancing?
  1.4.6 How do I setup multiple of the same type of interface?
  1.4.7 I want to prevent outbound traffic, how do I do this?
  1.4.8 I have blocked port Y but program X can still connect to the Internet. How do I block program X from connecting?
  1.4.9 What are Cron Jobs/How do I edit IPCOP’s Cron Jobs?
  1.4.10 Multiple NAT routers behind IPCOP
  1.4.11 How do I block inbound traffic from repeat offenders?
  1.4.12 How do I allow the ’dial’ user to access more IPCOP web interface pages?
  1.4.13 How do I allow an unauthenticated user to access more IPCOP web interface pages?
  1.4.14 I would like to keep track if my LAN computers are online/offline, how do I do that?
  1.4.15 How do I setup a HA (High Availability) IPCOP setup?
  1.4.16 I would like to have additional graphs for individual IPs. How do I do this easily?
  1.4.17 I want to regenerate my SSL certificates, what do I do?
 1.5 Servers behind IPCOP
  1.5.1 I have added a server to the DMZ but it is not connecting to the Internet. What do I do?
  1.5.2 I can not access server X after installing IPCOP!
  1.5.3 I moved my server to the DMZ and can no longer access any of the services.
  1.5.4 I have added port forwarding rules but they don’t seem to work. What do I do?
  1.5.5 VOIP Server behind IPCOP
  1.5.6 How do I access a Windows Share from over the VPN?
 1.6 VPNs and IPCOP
  1.6.1 I have created a VPN between two IPCOPs but it will not connect. What am I doing wrong?
  1.6.2 I want to have roadwarrior access to IPCOP. How do I set it up?
  1.6.3 I want to use the builtin Microsoft VPN client. How do I connect to IPCOP?
  1.6.4 I have successfully created and connected to IPCOP via a VPN but I can not access any services/computers at the remote location. What’s wrong?
  1.6.5 My internet connection is not good and my VPNs will not stay connected. What can I do?
  1.6.6 How do I browse network shares over a VPN?
  1.6.7 What do each of the debug options do in VPN menu?
  1.6.8 I have OpenVPN installed and I want to be able to access other subnets in addition to Green. What do I need to do?
 1.7 Advanced features with IPCOP
  1.7.1 The built in traffic shaper for IPCOP is insufficient, what else can I use?
  1.7.2 I want to install service Y to IPCOP. How do I do it?
  1.7.3 I want to add service X to IPCOP but it requires make. How do I install it?
  1.7.4 I would like to port forward based on hostname not port, how can I do this?
  1.7.5 I would like to control who can and can’t access website. How do I do this?
  1.7.6 I have installed an addon to IPCOP. After upgrading IPCOP, the addon no longer works. What do I do?
  1.7.7 How do I determine what ports I need to open for application XYZ?
  1.7.8 What if I want to run application XYZ in/on Orange?
  1.7.9 Should I put application XYZ in Green or Orange?
  1.7.10 Why do some applications (ABC) need a public IP, and how do I fix that?
  1.7.11 How do I minimize the risk of running service XYZ on my IPCOP?
  1.7.12 How do I backup IPCOP to Bacula?
 1.8 Command line options
  1.8.1 How do I change the port forwarding settings from the command line?
  1.8.2 How do I change the blue access settings from the command line?
  1.8.3 How do I change the external access settings from the command line?
  1.8.4 Qos_NG is too complex to use. Is there something else I can use?
  1.8.5 How do I enable SSH access from the command line?
  1.8.6 What text editors are built into IPCOP?
2 Forum usage
3 Tutorials
 3.1 VPN Setup
  3.1.1 IPCOP to IPCOP VPN via IPSec
  3.1.2 Roadwarrior to IPCOP via OpenVPN
  3.1.3 OpenVPN and access to a remote IPCOP over IPCOP-to-IPCOP VPN
 3.2 Wireless with a Wireless Router
  3.2.1 Wireless router as a wireless access point
  3.2.2 Wireless router as a wireless router
 3.3 Creating an SSH Tunnel with IPCOP
 3.4 Setting up IPCOP behind another firewall
 3.5 How To Setup Modem and IPCOP for DSL PPPoE or PPPoA Internet Connection
  3.5.1 Configuration of the Modem/Router
  3.5.2 Configuration of IPCOP
  3.5.3 Final Crucial Issue
 3.6 Basic Networking Guide
 3.7 Hardware check tutorial
  3.7.1 Checking Hardware
  3.7.2 Checking IPCOP Install
  3.7.3 Determining which addon ’breaks’ IPCOP
 3.8 Copying files to IPCOP
 3.9 Running commands on IPCOP
 3.10 IPCOP and VMware
  3.10.1 VMware general setup
  3.10.2 Network specific configuration
  3.10.3 Installing IPCOP in VMware
 3.11 SSH with private keys
  3.11.1 Creating public/private keys with PuttyGen
  3.11.2 Enable SSH on IPCOP with public key
  3.11.3 Connecting to IPCOP with public keys - Putty
  3.11.4 Connecting to IPCOP with public keys - Additional steps
 3.12 SNatGUI Setup
 3.13 Converting Existing Setups to IPCOP
  3.13.1 Basic network
  3.13.2 Basic network with wireless
  3.13.3 Network with secure wireless
  3.13.4 Network with publicly accessible servers
  3.13.5 Network with publicly accessible servers on DMZ
  3.13.6 Example Worksheet: Converting a network with public IP servers to IPCOP w/SNatGUI
 3.14 Securing an existing IPCOP installation
 3.15 Bare Metal Recovery
  3.15.1 Requirements for BMR
  3.15.2 Hardware used in this example
  3.15.3 Preparing your network share
  3.15.4 Creating a backup of IPCOP
  3.15.5 Restoring IPCOP from a backup
 3.16 Adding additional interfaces to IPCOP (and get them to load correctly)
4 Basic Network Layouts
 4.1 Red-Green
 4.2 Red-Blue-Green
 4.3 Red-Orange-Blue-Green
 4.4 Networking 101: Basic Network Layout and Security
  4.4.1 LAN: How computers communicate
  4.4.2 Subnets: Logical order to the LAN
  4.4.3 Full Network: Subnets connected through routers
  4.4.4 Security: Full Networks with access controls
  4.4.5 IPCOP: A simplified network with access controls
5 Requested Material
 5.1 FAQs
 5.2 Tutorials
6 Getting in contact with the author
 6.1 Requesting Material
 6.2 Contributing to this document

List of Figures

1.1 Traffic between IPCOP interfaces
3.1 PuttyGen Initial Menu
3.2 PuttyGen Generating Keys
3.3 PuttyGen Personalize Settings
3.4 PuttyGen Personalized Settings
3.5 Putty Public Key Setup
4.1 Red-Green Setup
4.2 Red-Blue-Green Setup
4.3 Red-Orange-Blue-Green Setup

Preface

This is a FAQ of common questions asked to the ipcops.com[1] online forum and includes several tutorials for IPCOP version 1.4.21 (current version as of July 31, 2008). All third party links are included at the end of the FAQ for your convenience.

If you are linking to the html version of this FAQ, please use the following format:

http://ipcops.com/faq/ipcop_faq.html#[Section#]

Where Section# is 1.2, 1.5.1, etc.

If you wish to contribute or request additional FAQs/tutorials, please see chapter 6.


This FAQ is in the process of being translated into a Wiki. Once the translation has been completed, this FAQ will be updated to point to the appropriate Wiki page. Please note, as this work is done after my full time job, it may take time for the entire translation to happen. You patience during this time is greatly appreciated.

THIS DOCUMENTATION IS PROVIDED ’AS IS’ AND IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION OR THE ASSOCIATED SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Embedding this document on another site is prohibited. If you are reading this document and do not see a url starting with http://ipcops.com/faq, then report this to ds531 on ipcops.com.

Revision History






VersionDate Author Summary of changes




0.6.6 September 19, 2008ds531 Traffic Graphs Mods




0.6.5 July 31, 2008 ds531 Added Wiki information




0.6.4 July 22, 2008 up4fun Added info on IPCOP DNS caching




0.6.3 July 2, 2008 ds531 Added OpenVPN route rules




0.6.2 June 24, 2008 ds531 Updated IPCOP port modification info




0.6.1 June 15, 2008 weizen_42Web GUI Reference header info




0.6.0 May 18, 2008 ds531 Added Blue Mantra




0.5.11 May 4, 2008 ds531 Added BOT and VPN for RW access control




0.5.10 April 7, 2008 ds531 Added Vista-OpenVPN info and Zerina rest




0.5.9 March 28, 2008 ds531 Updated Site Information




0.5.8 March 22, 2008 ds531 Updated Site Information




0.5.7 March 18, 2008 ds531 Added HowTo for additional interfaces




0.5.6 February 3, 2008 ds531 Added info in regenerating certificates




0.5.5 February 2, 2008 ds531 Added link to extra graphs




0.5.4 January 14, 2008 ds531 Added Windows Firewall FAQ




0.5.3 December 5, 2007 ds531 Added backup IPCOP FAQ




0.5.2 December 3, 2007 ds531 Added Snort Error FAQ




0.5.1 December 2, 2007 ds531 Updates for IPCOP 1.4.18




0.5.0 November 29, 2007 ds531 Bare Metal Recovery tutorial




0.4.4 November 27, 2007 ds531 FAQ questions and new tutorials
(converting existing setups/securing an existing IPCOP)




0.4.3 November 22, 2007 ds531 FAQ questions and basic networking guide




0.4.2 November 12, 2007 ds531 SNatGUI tutorial added




0.4.1 September 15, 2007ds531 SSH via public keys




0.4.0 September 3, 2007 ds531 Various FAQ topics added










VersionDate Author Summary of changes




0.3.13 August 20, 2007 ds531 Fixed SSH port change




0.3.12 August 19, 2007 ds531 Added SSH port change and
dynamic dns info




0.3.11 August 10, 2007 ds531 Added link to Who’s Online
and simple traffic shaper link




0.3.10 July 27, 2007 ds531 Added web access info




0.3.9 July 22, 2007 ds531 Added Banish Information




0.3.8 July 4, 2007 ds531 Updated few links
and added VOIP information




0.3.7 May 29, 2007 ds531 Added proxy info




0.3.6 April 29, 2007 ds531 Added user login info




0.3.5 April 21, 2007 ds531 Updated Layer7 Blocker info




0.3.4 April 19, 2007 ds531 Updated Qos_NG info




0.3.3 April 14, 2007 ds531 Added Pluto Debug Info Link




0.3.2 April 9, 2007 ds531 Added Network Neighborhood FAQ




0.3.1 April 7, 2007 ds531 FAQ multiple PPPoE addresses




0.3.0 March 24, 2007 ds531 New tutorial on OpenVPN and VPN access to a remote
IPCOP site




0.2.9 March 19, 2007 ds531 Added FAQ change ports




0.2.8 March 18, 2007 ds531 Added SSH enable from command line and editing
files on IPCOP via WinSCP




0.2.7 March 16, 2007 ds531 Added new RedMAC file/link from 3MAT3




0.2.6 March 10, 2007 ds531 Update to UrlFilter info




0.2.5 March 10, 2007 ds531 Updates for 1.4.15 and FAQ for updates
and how to apply




0.2.4 March 7, 2007 ds531 Added FAQ on traffic graphs




0.2.3 March 5, 2007 ds531 Added FAQ on addons and updates




0.2.2 March 4, 2007 ds531 Updates for IPCOP 1.4.14 VPN changes




0.2.1 March 2, 2007 ds531 Updated errors




0.2.0 February 26, 2007ds531 VMware Tutorial added




0.1.7 February 25, 2007ds531 Command line, Gigabit NICs, VPN-Monitor
AdvProxy and UrlFilter FAQs
Copying files to IPCOP tutorial added




0.1.6 February 25, 2007gungadenBasic network diagrams added




0.1.5 February 24, 2007ds531 Added Hardware check tutorial
Extra Interfaces FAQ/link




0.1.4 February 20, 2007gungadenAdded basic networking tutorial
Added Dialup, IRQ, and MAC Spoof FAQ topics




0.1.3 February 19, 2007ds531 Added information about linking to html version




0.1.2 February 14, 2007ds531 Updated SSH tutorial and added Double NAT guide




0.1.1 February 12, 2007ds531 Added Forum usage




0.1.0 February 11, 2007ds531 Initial Release





Official Documentation

IPCOP[2] is an Open Source, Linux based firewall. Please read the install[3] and administration[4] documentation in addition to this Unofficial FAQ. If you need further assistance, try searching Google or posting a question to the IPCOP Support Site[1].

Chapter 1
FAQ

1.1 IPCOP Setup Issues

1.1.1 I just downloaded IPCOP but it will not install. Help!

Check all of the following

1.1.2 I am trying to use IPCOP in a testing environment but I can not access the Internet. What is wrong?

Make sure that you do not have a subnet overlap. Your Red and Green subnets must be different.

1.1.3 I have a Red-Blue-Green setup but I can not access computer on Blue from Green. Help!

See section 1.1.2.

1.1.4 I have a Red-Orange-Green setup connected by a switch. None of my computers can access the Internet, why?

Make sure each zone uses a different switch. If you have one switch connecting multiple zones, you defeat the point of using a firewall.

1.1.5 Is there any way I can disable NAT on IPCOP?

Please see section 1.4.1.

1.1.6 IPCOP will not recognize all of my NICs, what do I do?

  1. Remove all of your NICs
  2. Install one NIC in your first (PCI) slot
    (make sure it is a 10/100 NIC which is supported in the Linux 2.4.34 kernel, use a Linux LiveCD which uses the Linux 2.4.34 kernel to check if your NIC is supported)
  3. Boot the install
  4. If IPCOP recognizes your NIC
    This slot is good
  5. If IPCOP does not recognize your NIC
    This slot is BAD, make a note
  6. Shutdown IPCOP
  7. Move your NIC to the next slot
  8. Repeat steps 1 through 7 until you have gone through all of your (PCI) slots

Now place your cards in KNOWN working slots and boot/install IPCOP as usual.

1.1.7 How do I SSH into IPCOP?

1.1.8 How can I remotely access the web interface?

You must enable External Access to IPCOP. This is done by Firewall – External Access.

1.1.9 I have enabled remote access to the web interface but I can’t connect. What’s wrong?

Many ISPs block port 445 due to a known Windows flaw. Most ISPs will deny blocking any port but if you question them on port 445, they will admit it. Trying to get your ISP to open this port for you will get you very little progress. Instead, change your SSL port on IPCOP.

1.1.10 How do I change my SSL port for the web interface?

See section 1.2.14.

1.1.11 How do I change my setup type after install?

To change your setup, login via the console and type ’setup’.

1.1.12 My NIC won’t work, what do I do? (PCI IRQ Conflicts)

Unlike ISA and EISA cards, PCI cards do not select their own IRQ line. Instead they can only select one of four ’interrupt pins’, which are mapped by the motherboard chipset to IRQ lines. That is, only the motherboard BIOS knows how the INT to IRQ mapping is wired, and thus only the BIOS can change the IRQ mapping for the card. The IRQ mapping is usually configured at boot time by the PCI BIOS setup, with the the exact assignment algorithm being BIOS-specific. In What Order Are PCI Cards detected? There is no fixed rule, but use the following guidelines:

1.1.13 I want to use Gigabit ethernet NICs. Does IPCOP support Gigabit ethernet NICs?

IPCOP supports all NICs that are support under the Linux 2.4.34 kernel. While it is possible to modify IPCOP to support other Gigabit ethernet NICs, not many ISP support speeds greater than 200 Mbps. While Gigabit ethernet NICs might speed up data transfers between Green, Blue and Orange, most times your limiting factor will be hard drive read/write speeds.

1.1.14 I have added a second subnet/LAN to IPCOP. How do I get the web proxy to allow web request?

Edit /var/ipcop/proxy/acl and add the required lines to allow your second subnet/LAN.

1.1.15 How do I setup Dynamic DNS on IPCOP?

IPCOP has a built-in Dynamic DNS update client. To use it correctly, you must understand how IPCOP reads your hostname. For example, if your host name is

http://Example1.Dyndns.org

Your hostname is Example1 and your domain is Dyndns.org.

1.2 Administrating IPCOP

1.2.1 What is the difference between Port Forwarding and External Access?

Port Forwarding is for accessing computers behind IPCOP.
External Access is for accessing IPCOP itself.
For information on allowing traffic between interfaces, see Figure 1.1 on page §.

1.2.2 I just looked at my status page and noticed I am running a web server. What is it and how do I stop it?

IPCOP uses Apache[5] (an open source web server) to display the web interface to you. Without the web server, you would be unable to access/control IPCOP via your web browser. By default, only Green (and Blue if enabled through Blue Access) can access the web interface.

1.2.3 My consumer router has UPNP, how do I enable it on IPCOP?

IPCOP does not support UPNP.

1.2.4 My consumer router has Port Triggering, how do I enable it on IPCOP?

IPCOP does not support Port Triggering.

1.2.5 I have multiple IP addresses from my ISP. How do I configure IPCOP to respond to all of them?

First configure IPCOP to use a static IP address (see section 1.1.11). Once you have done that, goto the Alias page (Network – Alias) and add the additional IP addresses you want IPCOP to use.

1.2.6 I have added IP addresses to the Alias page but all of my requests come from one IP address. How do I change this?

By default, IPCOP will send all traffic out through the default IP address. You can use a mod called SNATGui[6] to have a particular computer send out via one of your Alias IPs.

1.2.7 How do I copy a file over to IPCOP?

Make sure you have enabled SSH via the web interface. Copying over files must be done through SFTP. For Windows users, use WinSCP[7] [see section 3.8 for more information on WinSCP].

1.2.8 How do I test port forwarding, external access, and/or my firewall for open ports?

To successfully test your IPCOP setup, you MUST be OUTSIDE of your network. If you are inside your network and attempt to use your Red address, the results that you get will not be accurate. For troubleshooting directions, please see section 1.5.4.

1.2.9 When I do a port scan, IPCOP shows port 113 is closed. How do I make port 113 unreplied?

Some older websites/programs use port 113 (Ident) to check if a remote computer exists on the connection. For this reason, IPCOP by default response to port 113 with a closed response. If you want IPCOP not to respond to port 113, do the following:

1.2.10 What traffic is allowed between interfaces?


PIC

Figure 1.1: Traffic between IPCOP interfaces


1.2.11 My traffic graphs are not updating, what do I do?

The steps to make your graphs work again are as follows:

  1. Login to IPCOP via consol or remote ssh (on Windows use Putty[10]) [see section 3.9 for more information on using Putty].
  2. At the console, run ’/usr/local/bin/makegraphs’
  3. Now when you run ’/usr/local/bin/makegraphs’

Traffic graphs should now be fixed.

1.2.12 I am trying to update IPCOP, do I have to apply all patches in order?

IPCOP updates need to be applied in the correct order. If you have a 1.4.5 install and the current version is 1.4.10, then you must apply the patches in the correct order (i.e. 1.4.6, 1.4.7, 1.4.8, etc) and reboot as required (so new kernels are applied).

1.2.13 How do I edit files on IPCOP?

Make sure you have enabled SSH via the web interface. Editing files must be done through SFTP. For Windows users, use WinSCP[7] [see section 3.8 for more information on using WinSCP].

1.2.14 How do I change the http and https ports IPCOP uses?

You have several options to change the ports IPCOP uses:

Please also see 1.8.3 for information on command line control over external access.

If you chose to edit the files manually, use the following steps:

  1. Edit Apache configuration files
    1. Connect to IPCOP via SSH using port 222
      (on Windows connect using Putty[10] [see section 3.9 for more information on using Putty])
    2. Type ’cd /etc/httpd/conf’
    3. Type ’vi httpd.conf’
    4. Find and replace all instances of 445 (only two entries to change) with the port number you wish to use
    5. save and close httpd.conf
    6. restart apache (type: killall httpd and then httpd -DSSL)
  2. Change the port forwarding reserves
    1. Edit ’/home/httpd/cgi-bin/portfw.cgi’
    2. Find line that looks like this: my @tcp_reserved = (81,222,445);
      change the 445 to the same port you changed above
    3. Save the changes
  3. Edit IPCOP header file
    1. Edit ’/var/ipcop/header.pl’
    2. Change the following to reflect your new port
       
      ### Make sure this is an SSL request  
      if ($ENV{’SERVER_ADDR’} && $ENV{’HTTPS’} ne ’on’) {  
      print "Status: 302 Moved\r\n";  
      print "Location: https:#$ENV{’SERVER_ADDR’}:445/$ENV{’PATH_INFO’}\r\n\r\n";  
      exit 0;  
      }

1.2.15 How do I set multiple public IP addresses with my PPPoE/PPPoA connection?

The External Alias menu is shown in the web interface only when IPCOP’s Red interface is set to Static. To access the External Alias menu and set multiple IP addresses, do the following:

  1. First add the Aliases to the WebGui
    1. Open https://IPCOP_IP:445/cgi-bin/aliases.cgi
    2. Enter the Alias IPs
      Note: This only adds the IP addresses to the Web Interface ONLY
  2. Now added them to the IPCOP system
    1. Edit /etc/rc.d/rc.local
    2. Add
      # PPPoe Aliases -------------------------------  
      sleep 3;  
      /sbin/ifconfig ppp0:1 [IP Address 1] netmask [IP Subnet 1]  
      /sbin/ifconfig ppp0:2 [IP Address 2] netmask [IP Subnet 2]  
      # PPPoe Aliases ---------------------------------

  3. Reboot and test using ifconfig

1.2.16 How do I login to IPCOP?

During install of IPCOP, you were prompted to create a password for several accounts. Theses accounts have specific uses described below:

1.2.17 How do I change the port IPCOP uses for SSH?

You need to manually edit several files, use the following steps:

  1. Edit SSH configuration files
    1. Connect to IPCOP via SSH using port 222
      (on Windows connect using Putty[10] [see section 3.9 for more information on using Putty])
    2. Type ’cd /etc/ssh’
    3. Type ’vi sshd_config’
    4. Find ’Port 222’ and replace with the port number you wish to use
    5. save and close sshd_config
  2. Change the port forwarding reserves
    1. Edit ’/home/httpd/cgi-bin/portfw.cgi’
    2. Find line that looks like this: my @tcp_reserved = (81,222,445);
      change the 222 to the same port you changed above
    3. Save the changes
  3. Restart SSH
    1. Run /usr/local/bin/restartssh This will terminate your SSH session. Reconnect on the port you set to verify SSH has changed.

    If you enabled External Access, update the rules to reflect your new SSH port.

1.2.18 I am receiving the following error message when trying to change settings in the web GUI: ’Invalid referer: doesn’t match servername!’

To be able to change settings throught the GUI, IPCop requires your browser to send referer info. If the browser does not send referer info, modifications are ignored and ’Invalid referer: doesn’t match servername!’ is logged. Referer settings can be found/modified: in FF open about:config, search for network.http.sendRefererHeader and modify from 0 to 1 (or 2 which is default). in Opera go Tools-¿Preferences-¿Network and tick ’Enable referrer logging’.

1.2.19 I don’t like the builtin graphs, where can I get better graphs?

Allan Kissack has a great site with multiple traffic graph mods[11]

1.3 Using IPCOP

1.3.1 I just installed IPCOP and I can not get an IP Address from my ISP. Help!

If you are using a cable modem, your ISP may be locking you to one IP address at a time. First try power cycling your cable modem. If that does not work, then you have two options:

To change your MAC address (version 1.4.x):

  1. IPCOP Addon
  2. IPCOP Addon via command line
  3. IPCOP Commandline At the IPCOP command prompt enter the following command -
        ifconfig [interface name] hw ether [new MAC address]  
     
        Example  ifconfig eth0 hw ether 01:02:03:04:05:06  
        

1.3.2 IPCOP keeps crashing when I use p2p/bittorrent clients, what do I do?

It has been reported that high number of connections through IPCOP can cause problems. One way to prevent IPCOP from crashing is by lowering the maximum number of connections your p2p/bittorrent client will use.

1.3.3 How do I add a custom host to IPCOP’s DNS?

There are two ways

Using the Host page option will overwrite any changes to /etc/hosts.

1.3.4 How do I use the builtin traffic shaper?

The builtin traffic shaper has three classes of priority. By default, traffic that does not have an assignment (i.e. ports not specified through the web interface) will have the Normal priority. This setup allows you to specify which traffic you want to have a higher or lower than Normal (or bulk) priority.

1.3.5 How do I change my MTU settings?

Change red MTU by adding system(’/sbin/ifconfig ppp0 mtu 1458’); in /etc/ppp/ip-up

1.3.6 I am getting a Snort ’Oink Oink’ error, how do I fix it?

If you are getting the following error:

Loading /var/ipcop/snort/oinkmaster.conf  
 
/usr/local/bin/oinkmaster.pl: Error: the output directory "/etc/snort/rules" isn’t writable by you.  
 
Oink oink. Exiting...

You need to do the following:

1.3.7 Snort fails after rules update, what do I do?

To fix this, you will need to edit ’/usr/local/bin/snortrules.pl’

1.3.8 How do I rebuild my Zerina certificates?

To remove the old certs and generate new certs

1.3.9 How do I run OpenVPN on Vista?

To run OpenVPN-GUI on Vista:

run /bin/openvpn-gui.exe as administrator

add to config file: route-method exe route-delay 2

As you found out, it works, but the ADD ROUTE command fails - the above changes will fix that (it’s a known bug in VISTA/OPENVPN-GUI).

1.3.10 How do I control access for VPN clients to my servers?

Please take a look at the documentation located on the Zerina site

http://zerina.de/zerina/?q=documentation/howto-bot-zerina

1.3.11 I have added a computer to Blue but it is not connecting to the Internet. What do I do?

Make sure you have read over the Blue Mantra

1.3.12 How do I use DNS servers with IPCOP (i.e. which to specify for each interface)?

The ipcop firewall has a caching dns proxy built in, and you need to understand how this affects your DNS configuration.

If your clients in green need to resolve IP addresses for servers in Orange, add these IP addresses and names into your DNS in green.

1.4 Advanced IPCOP setups

1.4.1 How do I configure IPCOP to work in 1:1 NAT mode?

IPCOP by default is a NAT router. You can configure IPCOP to map IP addresses using SNATGui[6] or use a firewall which supports 1:1 NAT such as Pfsense[14].

1.4.2 I added a wireless access point to the Blue NIC and I can’t access the web. What’s wrong?

Before a computer can access the web from the Blue zone, it must be added to Blue Access page. You can add the IP address and/or the MAC address of the computer in question. Once this has been added, the computer should be able to access the Internet. If you are using a wireless router, please see the tutorial in section 3.2.

1.4.3 How do I configure IPCOP to force registration of wireless users before they can access the Internet (a.k.a. I want a Captive Portal on IPCOP)?

While there exists some mods, such as CopSpot[15], to add Captive Portal features to IPCOP, other firewall products such as Pfsense[14] have Captive Portal built in. While you can mod IPCOP to support Captive Portal, Pfsense offers a better working solution. Any mods you do to IPCOP by break with IPCOP upgrades (see section 1.7.2).

1.4.4 How do I use multiple WAN interfaces with IPCOP?

As of the current version (1.4.21), IPCOP does not support multiple WAN interfaces. While it is possible to hack IPCOP to use multiple WAN interfaces, you will most likely do more damage to the Iptables in the process. Other firewall products, such as Pfsense[14], do support multiple WAN interfaces. There are hints that IPCOP version 1.5 will support multiple types of the same interface.

1.4.5 How do I configure IPCOP to support load balancing?

Please see section 1.4.4.

1.4.6 How do I setup multiple of the same type of interface?

As of the current version (1.4.21), IPCOP does not support multiple types of the same interface. While it is possible to create more than one of each interface, you will most likely do more damage to the Iptables in the process. Extra Interfaces[16] allows you to create up to four (4) additional Grey interfaces. Pfsense[14] does support multiple NICs of any type (32 at maximum). There are hints that IPCOP version 1.5 will support multiple types of the same interface.

1.4.7 I want to prevent outbound traffic, how do I do this?

By default, the current version of IPCOP (1.4.21) does not block outbound traffic. You can use a mod called Block Out Traffic (BOT)[17] to define what traffic is allowed outbound.

1.4.8 I have blocked port Y but program X can still connect to the Internet. How do I block program X from connecting?

Many programs will attempt to use other ports including ports 80 (http) and 443 (https) if the default port is blocked. There are a few things you can do

1.4.9 What are Cron Jobs/How do I edit IPCOP’s Cron Jobs?

Cron jobs are Unix/Linux automated jobs. The layout of the Cron is as follows:

# Use the pound character to delimit a comment  
# +---------------- minute (0 - 59)  
# |  +------------- hour (0 - 23)  
# |  |  +---------- day of month (1 - 31)  
# |  |  |  +------- month (1 - 12)  
# |  |  |  |  +---- day of week (0 - 7) (Sunday=0 or 7)  
# |  |  |  |  |  
# *  *  *  *  *  command to be executed  
  

To edit IPCOP’s Cron jobs:
Login to IPCOP’s console and type ’fcrontab -e’

1.4.10 Multiple NAT routers behind IPCOP

If you are going to setup multiple NAT routers behind IPCOP, make sure each router is using a different subnet. If you would like IPCOP to be able to forward traffic to a particular client not on IPCOP’s subnet, you will need to add route statements so IPCOP knows how to route the traffic.

1.4.11 How do I block inbound traffic from repeat offenders?

There was an addon called Banish[19]. The last version of Banish available is hosted here[20].

1.4.12 How do I allow the ’dial’ user to access more IPCOP web interface pages?