View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 01-13-2004, 03:12 AM   #1
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Rep: Reputation: 30
Using IPCHAINS to allow only a range of IPs

Is it possible to deny all incoming packets and allow only packets coming from the range of IP addresses 123.123.X.X using IP chains (kernel 2.2) ?

I'm trying to use this:

# ipchains -P input DENY
# ipchains -A input -j ALLOW -p all -s -d

I cannot really know if it would work or not since i cannot implement it right now. My doubt arises whether the two above rules should be interchanged or not... I would also like to know how to log packets which are denied (the man pages say to specify LOG as target... but I also want DENY... does this mean specifying 'DENY LOG' as target?


Last edited by ganninu; 01-13-2004 at 03:50 AM.
Old 01-13-2004, 12:18 PM   #2
Registered: Jul 2003
Posts: 88

Rep: Reputation: 15
use iptables...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid: acl'ing range of IPs ivanatora Linux - Software 4 05-05-2005 03:43 AM
how to define a specific range of IPs and/or multiple IPs in an iptables rule?... TheHellsMaster Linux - Security 9 09-20-2004 11:06 AM
tracing ips endezeichen Linux - Networking 6 11-27-2003 08:38 AM
eth0:9 incorrect IPs ,and eth0 not IPs WannaLearnLinux Linux - Networking 10 10-26-2003 09:50 PM
IPChains hostname has multiple IPs is resolves to? Ionized Linux - Networking 1 07-30-2002 02:03 AM

All times are GMT -5. The time now is 05:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration