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.
|
 |
03-30-2006, 01:17 AM
|
#1
|
Member
Registered: Apr 2002
Distribution: Ubuntu, Arch, freeBSD, Slackware
Posts: 210
Rep:
|
block first icmp pakets then let them go
Hi all,
I am trying to build a set of rules (with iptables) to create a partial icmp blocking. I want to block the first 4 icmp packets and after that 4 to let them go.
Is it possible to do that?
|
|
|
03-30-2006, 06:12 AM
|
#2
|
Member
Registered: Apr 2002
Distribution: Ubuntu, Arch, freeBSD, Slackware
Posts: 210
Original Poster
Rep:
|
I tryed with -m limit, but is not quite a solution...
iptables -A INPUT -p icmp -m limit --limit 6/min -j DROP
iptables -A INPUT -p icmp -m limit --limit 2/min -j ACCEPT
iptables -A INPUT -p icmp -j DROP
but it is anoing to wait a minnute
|
|
|
03-30-2006, 11:05 AM
|
#3
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
yeah, i think the "limit" match would suck in this case...
sounds like you might be better-off using the "nth" match:
http://netfilter.org/projects/patch-...l#pom-base-nth
just a thought...
|
|
|
03-31-2006, 01:18 AM
|
#4
|
Member
Registered: Apr 2002
Distribution: Ubuntu, Arch, freeBSD, Slackware
Posts: 210
Original Poster
Rep:
|
looks like more fore me  i'll give it a try ... thx win32sux 
|
|
|
All times are GMT -5. The time now is 11:49 PM.
|
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
|
|