Skip to contentSkip to conversation

IPtables (resend)

DISCUSSION Jet 1 participant 1 message Jan 20, 2003

lore
Share & tools
lore

Jet

author
#0 lore raw

----- Original Message -----
From: "Jet" <[email protected]>
To: "Miguel Amador L." <[email protected]>
Cc: <[email protected]>
Sent: Monday, January 20, 2003 11:00 AM
Subject: Re: IPtables

Quoted 11 lines

(sorry, I don't speak spanish)

What i do to mitigate the problem are as below:

iptables -A INPUT -i eth0 -p tcp ! --syn -m state --state NEW -j DROP

where eth0 is my network interface that face outside.
I still don't know if this will break any protocol (or service) to work properly.
So far, it seems to work for my testing.

Quoted 4 lines

Basically, here is how I test my firewall (A.B.C.1)
My firewall have a rule to allow incoming HTTP connection to my web server (A.B.C.8)
At my firewall, I run a tool called iptstate to show me the connection

state

Quoted 5 lines

on the firewall.
First I try with normal SYN connection.
hping -c 1 -S -a spoof.ip -p 80 A.B.C.8

Then, the tool, iptstate shows SYN_SEND, and immediately changed to

SYN_RECV

Quoted 7 lines

The TTL is set to one minute. This is good.
And this is correct state that firewall suppose to have.

Next, I try to do some evil test
hping -c 1 -A -a spoof.ip -p 80 A.B.C .8

Now, the tool, immediately shows the state of the connection as

ESTABLISHED

Quoted 27 lines

and having the
TTL as 120 hours. This is bad because this is a packet that have the state "NEW" with only "ACK"
tcp flag been turned on.

Imagine, it an attacker spoof with a lot of IP addresses (maybe >10K) of this type of packets, then
the firewall will filled up with all unnecessary packets that expire after 120 hours.
This means a DOS attack to your firewall.

I've experienced a performance slow down becasue of this.

- Jet
Security Analyst

email: [email protected]

----- Original Message -----
From: "Miguel Amador L." <[email protected]>
To: "Jet" <[email protected]>
Sent: Friday, January 17, 2003 10:47 PM
Subject: Re: IPtables

Quoted 5 lines
Quoted 1 line

Hi, i have the same problem, and i had to make a DMZ , on other ip range

for

Quoted 3 lines

work with servers. (it is the correct way)

but i know that may be can with combining DNAT and SNAT, but i don't

want

Quoted 31 lines
Quoted 4 lines

probe.

if you be can do it... plase , tell me how are you do it..

Quoted 9 lines

SAlu2
Miguel

PS: speak spanish ?

Quoted 1 line · Jet

Can anyone pls verify that whether iptables is vulnerable to the

following

Quoted 16 lines
Quoted 13 lines

bugtraq ID?

http://www.securityfocus.com/bid/6534

Base on my testing (1.2.7a), it is vulnerable too.

- Jet
Security Analyst

email: [email protected]