Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-19-2002, 03:52 AM
|
#1
|
Member
Registered: May 2002
Posts: 113
Rep:
|
Blocking TCP | SYN scans
Is there anyway to block TCP | SYN scans while keeping some ports open? For example, could you configure your firewall to tell the difference between a SYN scan packet and a SYN packet trying to establish a connection to your web server? I'm using IPTABLES in my script.
|
|
|
05-19-2002, 06:24 AM
|
#2
|
Moderator
Registered: May 2001
Posts: 29,415
|
Re: Blocking TCP | SYN scans
For example, could you configure your firewall to tell the difference between a SYN scan packet and a SYN packet trying to establish a connection to your web server?
If it's only got a SYN flag, then you can't, because there is no *difference* between a "scan" and a "regular" SYN packet. You can filter on having "malformed packets" aka weird combination of flags. This is the INVALID classification in Iptables' statefull packet filter (the conn_track gizmo).
|
|
|
05-19-2002, 07:40 AM
|
#3
|
Senior Member
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541
Rep:
|
Check out portsentry. That might be in the neighborhood of what you're looking for
|
|
|
05-19-2002, 08:41 AM
|
#4
|
Moderator
Registered: May 2001
Posts: 29,415
|
Check out portsentry. That might be in the neighborhood of what you're looking for
Using Portsentry to block hosts by adding a null route or adding em to the fw script to block, what does "nmap -T insane -D ${lotsa_decoys} ${any_invalid_flags} ${your_host}" do?
*For ${lotsa_decoys} read linuxquestions.org, slashdot, wired, cnn, freshmeat, your border router, any linux vendor update uri, etc, etc you get it.
|
|
|
All times are GMT -5. The time now is 07:09 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|