LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-26-2001, 04:46 PM   #1
AndrewG
LQ Newbie
 
Registered: Nov 2001
Location: San Diego, CA
Distribution: RedHat
Posts: 2

Rep: Reputation: 0
IPchains - Allowing certain blocked IP's


I'm running IP chains on my Redhat Box. I have the following line that blocks addresses defined as reserved by the IANA.

ipchains -A input -i $EXTERNAL_INTERFACE -s 65.0.0.0/8 -j DENY -l

The problem is that some @home users aren't able to access my webserver. I want to allow the following range:

@Home Network (NETBLK-HOME-3BLK)HOME-3BLK 65.0.0.0 - 65.15.255.255
@Home Network (NETBLK-SNDGCA1-CA-7) SNDGCA1-CA-7 65.13.96.0 - 65.13.111.255

Any help would be appreciated.

 
Old 12-31-2001, 04:44 PM   #2
infinity6
Member
 
Registered: Dec 2001
Posts: 66

Rep: Reputation: 15
First of all, search some of the other posts out there. There is a plethora of info on both ipchains and iptables here in the forum. Secondly, you should probably read up on what ipchains is, how it works, and some of the configuration options. The best place to start is http://www.linuxdoc.org - go to the alphabetical HTML listing and find ipchains. Lastly, the first range you've specified includes the second range. If you want to allow 65.0.0.0 - 65.254.254.254 (255 is broadcast and should never be specified if avoidable) you could simply add:

ipchains -P input DENY
ipchains -A input -i $EXT_IF -s 65.0.0.0/8 -j ACCEPT

This is the polar opposite of what you setup, but would allow only 65. addresses to access your machine. If anybody else out there has better info, please post it.
 
  


Reply



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
IPTables - Multiple Public IP's to private IP's matneyc Linux - Security 8 05-27-2005 12:23 PM
allowing bittorrent through an ipchains firewall chucky88 Linux - Security 1 04-15-2004 06:10 PM
Allowing only certain IP's to see my web site. bruce1271 Linux - General 5 01-22-2004 01:03 PM
ipchains & blocked ports? jasonhbishop Linux - Networking 3 06-03-2002 08:43 PM
Allowing a specific host to connect using ipchains Gameon Linux - Security 7 01-17-2002 04:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:23 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration