Find the answer to your Linux question:
Results 1 to 5 of 5
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Posts
    12

    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.?

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Wow, "Stealth Mode". Nice marketing buzzword.
    If you do not want a port reachable, you should close the application that opens it.
    And just not responding to ping requests doesn't make you invisible by any means.

    That said, you can of course block all ICMP requests.
    Linux Iptables allow or block ICMP ping request

    and you can "block" all ports except the ones explicitly named by you.
    Iptables - Noah.org
    Debian GNU/Linux -- You know you want it.

  3. #3
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    This is not hard to setup and in RH this is the default setup.
    Just start iptables and you are done.

    Here is a TUTORIAL for Iptables.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  4. #4
    Linux Newbie
    Join Date
    May 2007
    Location
    Bangalore, India
    Posts
    100
    Would be great if there was a simple BASH script (to be run as root via sudo perhaps) to turn this off and on, on-the-fly.
    A man learns from his experience. A smart man learns from the experience of others, while a smarter man experiences life after knowing other's experiences.

    BE THE SMARTER MAN.

  5. #5
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    To start the firewall
    Code:
     service iptables start
    To stop the firewall
    Code:
    service iptables stop
    To reset the firewall
    Code:
    service iptables restart

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •