LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-08-2018, 02:18 PM   #1
Arion Programer
LQ Newbie
 
Registered: Sep 2015
Posts: 10

Rep: Reputation: Disabled
max Connections limit By (iptables) ???


hi,...
iptables v1.3.7
i want to limit connections for destination ip (1.2.3.4)
what i do ?
 
Old 03-08-2018, 03:21 PM   #2
Arion Programer
LQ Newbie
 
Registered: Sep 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
i tested this:
iptables -I FORWARD -p tcp --syn --dport 443 -m connlimit --connlimit-above 1 -j REJECT

but not work
 
Old 03-23-2018, 09:26 PM   #3
nejnej25
Member
 
Registered: Dec 2017
Location: Asia
Distribution: Slackware 14.2,CentOS 7, Ubuntu, Debian
Posts: 116

Rep: Reputation: Disabled
You might want to try this:

iptables -I OUTPUT -p tcp --syn -s 1.2.3.4 -m limit --limit "N/(s/m/..)" --limit-burst "N" -j ACCEPT
iptables -A OUTPUT -s 1.2.3.4 -j DROP

Last edited by nejnej25; 03-23-2018 at 09:28 PM.
 
  


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 - limit amount of tcp connections Epidemias Linux - Security 3 05-30-2012 09:21 AM
Max concurrent ssh connections limit vbarakam@yahoo.com Linux - Newbie 1 07-13-2009 12:19 AM
Max conn. limit with Iptables. crime Linux - Security 2 04-25-2008 05:47 PM
howto limit max concurent connections ?? fritz001 Slackware 6 08-11-2005 11:38 AM
APACHE: limit max connections from the same IP ? tclwp Linux - Networking 3 06-24-2005 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:08 AM.

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