Solved

IPCOP Configuration / Firewall

Posted on 2010-08-25
11
1,347 Views
Last Modified: 2012-05-10
I am setting up an IPCOP firewall, but having a few issues.

My set up is green/red

I want Green to be on a 10.10.10.1/24 network & Red plugged in to a router (switch) on a 192.168.0.1/24 (external IP on router is static)
I have read that if the red is Static,  i need to enter the Primary/Secondary DNS + gateway address of router (by doing this, i am not sure how the red knows about the 192.168.0.1/24 network or this is just the gateway to the internet)
Would it work ok if i set up red on DHCP?

Even if the Red is not working, i should at least be able to connect to the IPCOP box on the 10.10.10.0/24 Network, but even that is not working!
Can't even ping it

Has anybody successfully install IPCOP in this type of Network?

Cheers
0
Comment
Question by:defrey
  • 4
  • 3
  • 2
  • +1
11 Comments
 
LVL 4

Expert Comment

by:tzwimfam
ID: 33518730
I leave Red set to DHCP and allow my isp to assign it an IP address.  
Are you sure you know which one is green and red?  I had that problem once.
0
 
LVL 1

Author Comment

by:defrey
ID: 33518839
Not 100 % sure, how do you find out?
0
 
LVL 9

Expert Comment

by:Barry Gill
ID: 33518877
the BEST thing to do is got to your ifcfg-eth0 and ifcfg-eth1 files, edit them and bind the MAC address of each interface to a file.
This way you are guaranteed an interface no matter what.
If the version of IPCOP you are on is 2.0 or greater, you should in fact have this mac binding already. You just need to identify which of the NICs is which.

Also, that config is very common, there should be no issues with it.
You may not be able to ping it because afaik ping is not enabled by default.
Also check that you have enabled routing between the interfaces.
0
 
LVL 1

Author Comment

by:defrey
ID: 33519052
Would you recommend to use IPCOP version 2.0 or higher instead of 4.2.1?
0
 
LVL 9

Expert Comment

by:Barry Gill
ID: 33519110
the 1.4 range still uses a very outdated version of the linux kernel, 2.4.
The last changes logged for 1.4.21 were logged in July 2008.

Personally I wouldn't be using that at all.
I would rather build a CentOS server with no additional services and install smoothwall.
(if you have great linux skills, custom build a Gentoo linux server with smoothwall...)

From: http://www.ipcop.org/2.0.0/en/admin/html/whatsnew.html
1.3. What's New in v2.0?

IPCop v2.0 is a development of v1.4, but incorporates some significant improvements.

    *      Linux kernel 2.6.27
    *      New hardware support, including Cobalt, sparc and PPC platforms.
    *      New installer, which allows you to install to flash or hard drives, and to select interface cards and assign them to particular networks.
    *      Access to all web interface pages is now password protected.
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
LVL 1

Author Comment

by:defrey
ID: 33519267
Dont have any Linux Skills at all!
Shall i go for IPCOP V2.0?
0
 
LVL 4

Accepted Solution

by:
tzwimfam earned 500 total points
ID: 33519328
I am happy with 1.4.21 and it should work for you.  You should be able to set red to dhcp and if you can't connect to the green have you tried switching the cables to check to see if red and green are where you think they are?
0
 
LVL 9

Expert Comment

by:Barry Gill
ID: 33519951
If you have no linux skills then stick with it, just go edit your ifcfg-eth files and add mac addresses into them so you never have an accidental swap of interfaces.
from /etc/sysconfig/network-scripts/ifcfg-eth1
# devicename
DEVICE=eth1
HWADDR=xx:xx:xx:xx:xx:xx
BOOTPROTO=static
IPADDR=x.x.x.x
NETMASK=255.255.255.0
GATEWAY=XXX.XXX.XXX.XXX
HOSTNAME=node-name.name-of-domain.com
DOMAIN=name-of-domain.com

The line you need to make sure is there is HWADDR=mac address, you can get the MAC address from the command ifconfig

0
 
LVL 10

Expert Comment

by:pfrancois
ID: 33529615
The green interface is eth0, the red one is eth1. IPCop works even if red is down.

An easy way to see which interface is connected is to connect only one network interface and to look at the output of "ifconfig eth0" and "ifconfig eth1". You will see traffic on the connected interface because the number near to RX bytes and TX bytes is increasing in the output of ifconfig:

eth0      Link encap:Ethernet  HWaddr 00:xx:xx:xx:xx:xx  
          inet addr:10.10.10.1  Bcast:10.10.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1702900 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2418525 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:244771020 (233.4 MB)  TX bytes:2818471625 (2687.9 MB)
          Interrupt:5 Base address:0x1400

(I suppose the IP address of your green interface is 10.10.10.1)

If you don't understand what I mean with "run ifconfig", you can also surf to IPCop at the webpage through the green interface:

https://10.10.10.1:443/cgi-bin/netstatus.cgi

and you will see the output of ifconfig for each interface. If nothing happens, you probably are connected to the red interface. Connect to the green interface and you will be able to see that webpage.
0
 
LVL 10

Expert Comment

by:pfrancois
ID: 33584976
@defrey: Have you solved your problem? If your setup is correct, you can connect a laptop/desktop on the green interface, even if the red interface is down and receive an IP address. If you have doubts on which NIC is red and which is green, just try to connect your laptop/desktop at both: only one will give you an IP address through DHCP.
0
 
LVL 1

Author Closing Comment

by:defrey
ID: 33722544
none
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I found an issue or “bug” in the SonicOS platform (the firmware controlling SonicWALL security appliances) that has to do with renaming Default Service Objects, which then causes a portion of the system to become uncontrollable and unstable. BACK…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now