[IPCop-devel] Multiple Green NICs…

List:       ipcop-devel
Subject:    Re: [IPCop-devel] Multiple Green NICs…
From:       Paul Van Allsburg <paulvan () novagate ! com>
Date:       2004-05-22 22:12:41
Message-ID: 40AFD059.6030702 () novagate ! com
[Download message RAW]

Runar Skraastad wrote:
> tir, 18.05.2004 kl. 22.04 skrev Neil A. Hillard:
>>        I’ve had a search but not come up with anything suitable.  Has
>>anyone setup IPCop with multiple Green NICs ???  I have a requirement
>>for three Green NICs so that individual departments have full Internet
>>access but do not have access to each other’s networks.
>>        Any advice would be appreciated.
>>        Many thanks in advance,
>>                                Neil.
> Hi Neil!
> I’ sorry for this late answer: Yes it’s possible, but it requires you to
> get your hands dirty 😉
> You can do this, with a number of different comersial firewall/routers.
> But at the moment there is no mod that will solve this on IPCop
> To do this, you have to follow this steps 🙂 (if you choose to use
> 1.4b3 instead you dont have to add an ekstra nic.)
> Log onto your IPCop. Choose an color for your nic, In the example I use
> yellow 🙂
> 1. Adding an ekstra nic.
> This is the part where I’m not 100% sertain. I’e only done this one
> time, and thats over an year ago. So you need to test this.
> First of all, you need to know what driver your card will use,
> Backup your settings file with
> cp /var/ipcop/ethernet/settings /var/ipcop/ethernet/settings.bak
> Open for editing with
> vi /var/ipcop/ethernet/settings
> add:
> YELLOW_DEV=<probarbly eth3>
> YELLOW_DRIVER=<drivername you need e.g 3c509>
> YEllOW_DRIVER_OPTIONS=<most likely you can leave this blank>
> YELLOW_ADDRESS=<choose an ip here e.g.>
> YELLOW_NETMASK=<the appropiate netmask e.g.>
> YELLOW_NETADDRESS=<the address to the ip-range for this net e.g.
> YELLOW_BROADCAST=<the broadcast address e.g.>
> Now, reboot your IPCop and run ifconfig, it should list your yellow card
> along with the others
> 2. Changing firewall rules
> backup your rc.local file with
> cp /etc/rc.d/rc.local /etc/rc.d/rc.local.bak
> Open it with
> vi /etc/rc.d/rc.local
> Add this lines:
> # Denying all traffic between the green nets
> /sbin/iptables -A CUSTOMFORWARD -i $YELLOW_DEV -o $GREEN_DEV -j DROP
> /sbin/iptables -A CUSTOMFORWARD -i $ORANGE_DEV -o $GREEN_DEV -j DROP
> /sbin/iptables -A CUSTOMFORWARD -i $GREEN_DEV -o $YELLOW_DEV -j DROP
> /sbin/iptables -A CUSTOMFORWARD -i $GREEN_DEV -o $ORANGE_DEV -j DROP
> # Denying
> # Allowing all other traffic from the added green nets
> /sbin/iptables -A CUSTOMFORWARD -i $ORANGE_DEV -j ACCEPT
> /sbin/iptables -A CUSTOMFORWARD -i $YELLOW_DEV -j ACCEPT
> # Allowing
> /sbin/iptables -A CUSTOMINPUT -i $ORANGE_DEV -j ACCEPT
> /sbin/iptables -A CUSTOMINPUT -i $YELLOW_DEV -j ACCEPT
> Now, rebboot and test the two nets, if you dont have the proxy active,
> they should have complete contakt to internett but not to each other 🙂
> 3. Making proxy work for the ekstra nets
> 4. Making dhcp work for the ekstra nets
> 3 and 4 is even more dirty work. If you don’t need it, forget it. But if
> you need it, contact me off list. I will guide you through it 🙂
> But first you need to test step 1 and 2. In case of an problem, contact
> me 🙂
> Regards
> RuS

I’d like to make dhcp work for the extra nets…
Then I’d like to Add DansGuardian on one of the networks.
But, I’ll tackle this one step at a time.


Read more at IPCop-devel mailing list


2 responses to “[IPCop-devel] Multiple Green NICs…

  1. I’ve had a similar problem but worked it out by dividing one network into a coupple subnets.Then computers from one subnet wouldn’t see computers from other subnets.
    It works cool but there’s a problem with the proxy.It won’t let clients connect to certain services like http://ftp.I‘ll keep searching for the answer.

    Best regards,

  2. That was with only one green interface.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s