logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: SYN_RECV connections
Author
kevinstr



Joined: 06 Jan 2017
Posts: 2

PostPosted: Sat 07 Jan '17 8:47    Post subject: SYN_RECV connections Reply with quote

Hi all,

I've noticed that my server has a lot of syn_recv connections no matter what I do. I've changed the configuration to mitigate that with syn_cookies etc but no luck.

Could that in any way be related to mpm prefork's settings? That's the only thing that I haven't touched.

Thanks in advance
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 1248
Location: Amsterdam, NL, EU

PostPosted: Sat 07 Jan '17 13:54    Post subject: Reply with quote

Which OS? On my Redhat/Centos6 servers I have a few firewall rules to limit SYN connections.
Back to top
kevinstr



Joined: 06 Jan 2017
Posts: 2

PostPosted: Sat 07 Jan '17 14:03    Post subject: Reply with quote

Jan-E wrote:
Which OS? On my Redhat/Centos6 servers I have a few firewall rules to limit SYN connections.


thanks for your reply.

Its ubuntu 14

You mean connlimit?
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 1248
Location: Amsterdam, NL, EU

PostPosted: Sat 07 Jan '17 14:11    Post subject: Reply with quote

connlimit or just a limit 5/minute.

Read this post and the comments:
http://blog.bodhizazen.net/linux/prevent-dos-with-iptables/
Do a search for '-syn' on that page.

My rules:
Code:
/sbin/iptables -A INPUT -p tcp --syn -m limit --limit 5/minute -j LOG  \
   --log-prefix "Firewalled packet:"
/sbin/iptables -A FORWARD -p tcp --syn -m limit --limit 5/minute -j LOG \
   --log-prefix "Firewalled packet:"
Back to top


Reply to topic   Topic: SYN_RECV connections View previous topic :: View next topic
Post new topic   Forum Index -> Apache