Allow certain public IP addresses TOTAL access through IPCOP.

Posted on 2006-04-29
Medium Priority
Last Modified: 2010-05-18
Hello everyone,

I would like to configure, through the GUI, IPCOP to allow certain public IP addresses total access to one server.  I would rather not put that server on a DMZ zone, because I only want certain IP addresses to have access, all others should be subject to the firewall rules.

I am new to Linux, but can follow directions very well.  Will need explicit instructions.

Question by:wileavere
LVL 16

Expert Comment

ID: 16569498

What distrotuion are you using?
LVL 51

Accepted Solution

ahoffmann earned 2000 total points
ID: 16575366
linux uses iptables as packetfilter firewall, usually
You simply need following rules:

iptables -I INPUT 1 -p tcp -s IP1 -j ACCEPT
iptables -I INPUT 1 -p tcp -s IP2 -j ACCEPT
# .. and so on ..

keep in mind that this assumes that your firewall is already configured to allow related output traffic, otherwise you also need

iptables -I OUTPUT 1 -p tcp -d IP1 -j ACCEPT
iptables -I OUTPUT 1 -p tcp -d IP2 -j ACCEPT

I guess that it is not easy to add such simple rules with a GUI :-/
LVL 17

Expert Comment

by:Dushan De Silva
ID: 16576864
Use Linux iptables.

BR Dushan

Featured Post

 The Evil-ution of Network Security Threats

What are the hacks that forever changed the security industry? To answer that question, we created an exciting new eBook that takes you on a trip through hacking history. It explores the top hacks from the 80s to 2010s, why they mattered, and how the security industry responded.

Question has a verified solution.

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

Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
Fine Tune your automatic Updates for Ubuntu / Debian
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

840 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