LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 01-13-2004, 02:12 AM   #1
ganninu
Member
 
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 123.123.0.0/16 -d 0.0.0.0/0

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?

Ganninu.

Last edited by ganninu; 01-13-2004 at 02:50 AM.
 
Old 01-13-2004, 11:18 AM   #2
depaul
Member
 
Registered: Jul 2003
Posts: 88

Rep: Reputation: 15
use iptables...
 
  


Reply


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 02: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 10:06 AM
tracing ips endezeichen Linux - Networking 6 11-27-2003 07:38 AM
eth0:9 incorrect IPs ,and eth0 not IPs WannaLearnLinux Linux - Networking 10 10-26-2003 08:50 PM
IPChains hostname has multiple IPs is resolves to? Ionized Linux - Networking 1 07-30-2002 01:03 AM


All times are GMT -5. The time now is 07:06 AM.

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