* conntrack module question?
@ 2010-11-05 9:21 Husnu Demir
2010-11-05 11:12 ` Jan Engelhardt
0 siblings, 1 reply; 3+ messages in thread
From: Husnu Demir @ 2010-11-05 9:21 UTC (permalink / raw)
To: Netfilter Developer Mailing List
[-- Attachment #1: Type: text/plain, Size: 838 bytes --]
Hi,
I am using conntrack module for a while. As suggested configuration I do add ;
-A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -m conntrack --ctstate INVALID -j DROP
At the top of the configuration. After that I added the drop rule as;
-A FORWARD -i eth0 -o eth1 -m set --match-set STOPALL src -j DROP
This rule is not statefull and should drop everything. I added an IP address,
174.142.179.235 a SPAMMER, to stop its communication. But it did no stop. As far
as I know in TCP connection the packets is not in ESTABLISHED state but could be
RELATED :(.
I wrote "drop everything from STOPALL list", but the connection is not dropped. If
I wrote the the DROP statement above the 1st rule, it will drop all the
connection. What is wrong? I do not want to write DROP statement to the top?
Thanks.
[-- Attachment #2: hdemir.vcf --]
[-- Type: text/x-vcard, Size: 164 bytes --]
begin:vcard
fn:Husnu Demir
n:Demir;Husnu
email;internet:hdemir@metu.edu.tr
tel;work:+903122103330
tel;fax:+903122103303
x-mozilla-html:FALSE
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: conntrack module question?
2010-11-05 9:21 conntrack module question? Husnu Demir
@ 2010-11-05 11:12 ` Jan Engelhardt
2010-11-05 12:56 ` Husnu Demir
0 siblings, 1 reply; 3+ messages in thread
From: Jan Engelhardt @ 2010-11-05 11:12 UTC (permalink / raw)
To: Husnu Demir; +Cc: Netfilter Developer Mailing List
On Friday 2010-11-05 10:21, Husnu Demir wrote:
>Hi,
>
>I am using conntrack module for a while. As suggested configuration I do add ;
>
>
>-A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
>-A FORWARD -m conntrack --ctstate INVALID -j DROP
>
>At the top of the configuration. After that I added the drop rule as;
>
>-A FORWARD -i eth0 -o eth1 -m set --match-set STOPALL src -j DROP
>
>I added an IP address,
>174.142.179.235 a SPAMMER, to stop its communication. But it did no stop.
How are you determining this?
>I wrote "drop everything from STOPALL list", but the connection is not dropped.
It drops packets, not connections.
>If
>I wrote the the DROP statement above the 1st rule, it will drop all the
>connection. What is wrong?
Perhaps nothing. You clearly accept established connections first,
so only new ones will be ignored. It does not change existing ones.
>I do not want to write DROP statement to the top?
Do you?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: conntrack module question?
2010-11-05 11:12 ` Jan Engelhardt
@ 2010-11-05 12:56 ` Husnu Demir
0 siblings, 0 replies; 3+ messages in thread
From: Husnu Demir @ 2010-11-05 12:56 UTC (permalink / raw)
Cc: Netfilter Developer Mailing List
[-- Attachment #1: Type: text/plain, Size: 1652 bytes --]
On 11/05/2010 01:12 PM, Jan Engelhardt wrote:
>
> On Friday 2010-11-05 10:21, Husnu Demir wrote:
>> Hi,
>>
>> I am using conntrack module for a while. As suggested configuration I do add ;
>>
>>
>> -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
>> -A FORWARD -m conntrack --ctstate INVALID -j DROP
>>
>> At the top of the configuration. After that I added the drop rule as;
>>
>> -A FORWARD -i eth0 -o eth1 -m set --match-set STOPALL src -j DROP
>>
>> I added an IP address,
>> 174.142.179.235 a SPAMMER, to stop its communication. But it did no stop.
>
> How are you determining this?
In fact this address collecting passwords from a hacked site and I want tot stop
it. It is an HTTP connection. And If I put this IP to the list I coud connect the
web site. But if I put the rule above the first rule I could not connect.
http://www.formchamp.com/form.php?id=1120
is the actual SCAM site.
>
>> I wrote "drop everything from STOPALL list", but the connection is not dropped.
>
> It drops packets, not connections.
But if it cannot send any packets how a connection can be established?
>
>> If
>> I wrote the the DROP statement above the 1st rule, it will drop all the
>> connection. What is wrong?
>
> Perhaps nothing. You clearly accept established connections first,
> so only new ones will be ignored. It does not change existing ones.
>
>> I do not want to write DROP statement to the top?
>
> Do you?
In fact my all drop statements are at the top accept first one. I had some
different issues when I wrote it below. It seems better for me to keep it at the
top. Perpahps I should re-consider it.
thanks.
hdemir.
[-- Attachment #2: hdemir.vcf --]
[-- Type: text/x-vcard, Size: 164 bytes --]
begin:vcard
fn:Husnu Demir
n:Demir;Husnu
email;internet:hdemir@metu.edu.tr
tel;work:+903122103330
tel;fax:+903122103303
x-mozilla-html:FALSE
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-11-05 12:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-05 9:21 conntrack module question? Husnu Demir
2010-11-05 11:12 ` Jan Engelhardt
2010-11-05 12:56 ` Husnu Demir
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.