LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-02-2018, 12:06 AM   #1
alekseev
LQ Newbie
 
Registered: Jul 2018
Posts: 16

Rep: Reputation: Disabled
iptables --limit 32/sec --limit-burst 32


PHP Code:
iptables -A INPUT -p tcp --dport 80 -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables 
-A INPUT -p tcp --dport 80 -m conntrack --ctstate NEW -m limit --limit 32/sec --limit-burst 32 -j ACCEPT
iptables 
-P INPUT DROP 
How can I calculate the maximum possible number of new connections? Can I start with the characteristics of the server?
 
Old 08-03-2018, 09:06 AM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Quote:
Originally Posted by alekseev View Post
How can I calculate the maximum possible number of new connections? Can I start with the characteristics of the server?
Not sure I understand your question. You are only allowing 32 new connection/sec so the most you can have new is 32 every second.
 
  


Reply

Tags
iptables



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
Delay pool squid burst speed limit sujarwo Linux - Networking 0 01-24-2018 03:45 PM
pam_limits(sudo:session): wrong limit value 'unlimited' for limit type 'soft' pankajd Linux - Software 3 12-28-2010 09:59 PM
Iptales --limit-burst problems hdinn Linux - Security 1 04-01-2010 01:23 PM
"-m limit --limit-burst 20" with my Netfilter doesn't work probably hdinn Linux - Networking 1 08-20-2009 07:49 AM
Upload AND download limit to 100 kilobytes / sec +Yan Linux - Networking 2 03-01-2007 04:57 AM

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

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