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 02-11-2009, 05:37 PM   #1
phpinfo
LQ Newbie
 
Registered: Jan 2009
Posts: 9

Rep: Reputation: 0
OS X like Stealth Mode - iptables ??


OS X Leopard Server has firewall options for TCP and UDP stealth mode, which does things like block port scans etc. If you try to do a port scan you won't get any results.

I am using RHEL4. Is there a way to setup iptables in similar fashion with "stealth mode" and block port scans etc.?

Last edited by phpinfo; 02-11-2009 at 05:38 PM.
 
Old 02-11-2009, 05:52 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by phpinfo View Post
OS X Leopard Server has firewall options for TCP and UDP stealth mode, which does things like block port scans etc. If you try to do a port scan you won't get any results.

I am using RHEL4. Is there a way to setup iptables in similar fashion with "stealth mode" and block port scans etc.?
Yes. If you only send inbound packets in states RELATED and ESTABLISHED to ACCEPT (and all others to DROP), then that is considered "stealth mode". Example:
Code:
iptables -P INPUT DROP
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT
 
  


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 stealth patch PlatinumX Linux - Security 3 10-21-2008 07:26 AM
Stealth iptables ruleset Mux Linux - Security 10 02-21-2007 02:54 AM
Running linux in stealth mode mrpc_cambodia Red Hat 0 11-15-2004 07:53 PM
IPTables in Stealth mode bentman78 Linux - Networking 1 04-06-2004 03:43 PM
iptables - advanced port blocking/stealth mode siymann Linux - Security 1 10-26-2001 05:21 AM

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

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