All of lore.kernel.org
 help / color / mirror / Atom feed
* Deleting subnet range from conntrack
@ 2013-01-08  2:56 Steve (Telsat Broadband)
  2013-01-08  3:50 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 3+ messages in thread
From: Steve (Telsat Broadband) @ 2013-01-08  2:56 UTC (permalink / raw)
  To: netfilter

Hi All,

As part of a walled gateway I have written, the gateway is listening on both
TCP and UDP for incoming connections.  For TCP, the connection is picked up
and authenticated and allowed to proceed through the gateway; this all
appears to work normally; however, under UDP, the unauthenticated data is
sent to the auth processing listener via a NAT 'REDIRECT' command.  This
command then authenticates the data, BUT the problem is that UDP data still
continues to be redirected to the auth processor even after authorisation.

If have found that if I run a 'conntrack -D -s xxx.xxx.xxx.xxx' on the IP in
question, the UDP data then flows through as expected.  The problem is, that
for some instances, I'm needing the authorise/permit a subnet or network
xxx.xxx.xxx.xxx/xx or and IPv6 subnet and it appears that conntrack doesn't
support this.

Is there a way to get around this and delete conntrack entries for the
subnet?

Thanks
Steve.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Deleting subnet range from conntrack
  2013-01-08  2:56 Deleting subnet range from conntrack Steve (Telsat Broadband)
@ 2013-01-08  3:50 ` Pablo Neira Ayuso
  2013-01-09 13:50   ` Eliezer Croitoru
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Neira Ayuso @ 2013-01-08  3:50 UTC (permalink / raw)
  To: Steve (Telsat Broadband); +Cc: netfilter

Hi Steve,

On Tue, Jan 08, 2013 at 01:56:48PM +1100, Steve (Telsat Broadband) wrote:
> Hi All,
> 
> As part of a walled gateway I have written, the gateway is listening on both
> TCP and UDP for incoming connections.  For TCP, the connection is picked up
> and authenticated and allowed to proceed through the gateway; this all
> appears to work normally; however, under UDP, the unauthenticated data is
> sent to the auth processing listener via a NAT 'REDIRECT' command.  This
> command then authenticates the data, BUT the problem is that UDP data still
> continues to be redirected to the auth processor even after authorisation.
> 
> If have found that if I run a 'conntrack -D -s xxx.xxx.xxx.xxx' on the IP in
> question, the UDP data then flows through as expected.  The problem is, that
> for some instances, I'm needing the authorise/permit a subnet or network
> xxx.xxx.xxx.xxx/xx or and IPv6 subnet and it appears that conntrack doesn't
> support this.
> 
> Is there a way to get around this and delete conntrack entries for the
> subnet?

Unfortunately not yet. But it is doable.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Deleting subnet range from conntrack
  2013-01-08  3:50 ` Pablo Neira Ayuso
@ 2013-01-09 13:50   ` Eliezer Croitoru
  0 siblings, 0 replies; 3+ messages in thread
From: Eliezer Croitoru @ 2013-01-09 13:50 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: Steve (Telsat Broadband), netfilter

Hey there,

A simple script that will invoke all conntrack sessions can do that and 
it is not really advised to do that in a very busy gateway or allow 
users trigger such event freely.

How exactly a AUTH processing listener works on data-grams? Just wondering?

In most cases UDP should be dropped to prevent this kind of issues.

Regards,
Eliezer

On 1/8/2013 5:50 AM, Pablo Neira Ayuso wrote:
> Hi Steve,
>
> On Tue, Jan 08, 2013 at 01:56:48PM +1100, Steve (Telsat Broadband) wrote:
>> Hi All,
>>
>> As part of a walled gateway I have written, the gateway is listening on both
>> TCP and UDP for incoming connections.  For TCP, the connection is picked up
>> and authenticated and allowed to proceed through the gateway; this all
>> appears to work normally; however, under UDP, the unauthenticated data is
>> sent to the auth processing listener via a NAT 'REDIRECT' command.  This
>> command then authenticates the data, BUT the problem is that UDP data still
>> continues to be redirected to the auth processor even after authorisation.
>>
>> If have found that if I run a 'conntrack -D -s xxx.xxx.xxx.xxx' on the IP in
>> question, the UDP data then flows through as expected.  The problem is, that
>> for some instances, I'm needing the authorise/permit a subnet or network
>> xxx.xxx.xxx.xxx/xx or and IPv6 subnet and it appears that conntrack doesn't
>> support this.
>>
>> Is there a way to get around this and delete conntrack entries for the
>> subnet?
>
> Unfortunately not yet. But it is doable.
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-09 13:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-08  2:56 Deleting subnet range from conntrack Steve (Telsat Broadband)
2013-01-08  3:50 ` Pablo Neira Ayuso
2013-01-09 13:50   ` Eliezer Croitoru

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.