Skip to contentSkip to conversation

how to implement "SYN Proxy firewall"with syn cookies for "Preventing syn flood

DISCUSSION 陈志峰 3 participants 3 messages Apr 28, 2005 – Apr 29, 2005 netfilter

lore
Share & tools
lore

陈志峰

author
#0 lore raw

i am a newman for linux.

recently i want to implement "SYN Proxy firewall"with syn cookies for "Preventing

SYN Flood".

but i do not know how to implement it?

Please help me. Thank you for any answer and any question.

can you give me a particular answer and some code? can i implement it on netfilter-

iptable? how implement?

#1 lore raw

try searching the ml.
imho, netfilter is not such a heal-all, things like "syn proxy" maybe to complex, just try something simple like limit.

2005/4/28, 陈志峰 <[email protected]>:

Quoted 17 lines

i am a newman for linux.

recently i want to implement "SYN Proxy firewall"with syn cookies for "Preventing

SYN Flood".

but i do not know how to implement it?

Please help me. Thank you for any answer and any question.

can you give me a particular answer and some code? can i implement it on netfilter-

iptable? how implement?

Signature · 2 lines
freewizard (at) gmail.com 
http://blog.tsing.org/freewizard/
#2 lore raw
In reply to 陈志峰
Quoted 6 lines · On Thu, 28 Apr 2005, [GB2312] ��־�� wrote:

recently i want to implement "SYN Proxy firewall"with syn cookies for "Preventing

SYN Flood".

but i do not know how to implement it?

The simplest approach would be TPROXY with a good user-space proxy (TPROXY aware), running with SYN-cookies enabled.

If you do not require the original client IP to be preserved during an attack then a good user-space proxy is sufficient, used in conjunction with the standard REDIRECT target.

In both cases a limit match is useful to define a threshold when to start proxying.

Regards
Henrik