LinuxQuestions.org
Review your favorite Linux distribution.
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 11-06-2006, 09:14 PM   #1
Blackout_08
Member
 
Registered: Jan 2004
Posts: 35

Rep: Reputation: 15
Iptaples help FC5


I want to implement iptables using FC5. I attempted to use Fwbuilder but it was complicated and I was unable to use it.

Im on a machine using an IP 10.0.23.1 255.255.0.0
It is static. What i must accomplish is:
- Blacklist (drop packets from) any host that performs a port scan
- Blacklist any host attempting to use an illegal HTTP method (such as
PUT or Delete)
- Limit packets to ne1 host to a max of 10% of the available bandwidth
- Log information about any host which transfers more than 100kb in one connection (don't block just log)
- Fingerprint and log the machine type of any host sending a packet to a port on which services aren't run on.

If someone can provide me with some help that would be great.. syntax even better . Like i said im using iptables (netfilter).
 
Old 11-07-2006, 06:12 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
- Blacklist (drop packets from) any host that performs a port scan
Iptables has no concept of what is a "port scan". Use for instance Snort (IDS) with the Guardian add-on. If you want to blacklist IP addresses or ranges from a static list without criteria you can do something like "cat list | while read ip; do iptables -s $address -j DROP; done". If you want dynamic blocking you can define criteria with Iptables rules and then let those packets flow through iptables "recent" or "hashlimit" module rules.


- Blacklist any host attempting to use an illegal HTTP method (such as PUT or Delete)
Iptables has no concept of what is a "HTTP method". Block these in your webservers configuration file. Also check out "mod_evasive" and "mod_security2".


- Limit packets to ne1 host to a max of 10% of the available bandwidth
Bandwidth management or shaping is the domain of "tc" from the "iproute2" package. Searching LQ for "bandwidth shaping" should turn up a lot of helpful threads.


- Log information about any host which transfers more than 100kb in one connection (don't block just log)
LQ should already have some threads on bandwidth accounting. Try searching please. For this and shaping: if you do not want to build rulesets by hand yourself search Freshmeat and Sourceforge for tools for doing this for you.


- Fingerprint and log the machine type of any host sending a packet to a port on which services aren't run on.
Invoking active fingerprint of a remote system is a nice way for others to actually make your machine DoS itself to death. Nice ;-p And what good is remote system information? Not a lot. Defaulting to a "deny" policy, not forwarding traffic if not necessary and only opening up necessary ports is the best (less exposure) way to start.


Please check out the LQ FAQ: Security references post #2 "Netfilter, firewall, Iptables, Ipchains, DoS, DDoS" for generic Iptables tutorials, script repo's and more.
 
  


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
installing a guest FC5 on FC5 xen using NFS niverson Fedora 0 08-11-2006 03:27 PM
1. Noobie install FC5; 2. FC5 spits out garbage after 'starting udev' nja1 Linux - Newbie 2 07-16-2006 02:48 PM
Boot failure after upgrading FC5 TR3 to FC5 Official Release fsb1284 Fedora 3 03-25-2006 09:12 AM
FC5-test3 --> FC5-release - Anyone tried it? GL1800 Fedora 5 03-22-2006 04:16 PM
Iptaples Logs mallikarjun Linux - Security 5 12-07-2002 07:50 AM

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

All times are GMT -5. The time now is 10:04 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