All of lore.kernel.org
 help / color / mirror / Atom feed
* Netfilter and SCTP
@ 2003-04-30 12:50 Cyrille Colin
  2003-04-30 14:04 ` Ray Leach
  2003-04-30 14:24 ` Martin Josefsson
  0 siblings, 2 replies; 5+ messages in thread
From: Cyrille Colin @ 2003-04-30 12:50 UTC (permalink / raw)
  To: netfilter


Hi,

I would like to know how Netfilter's translator deals with SCTP / IP packets 
(Stream Control Transmission Protocol, IP protocol 132).

similarly to UDP, it should be able to translate the source adress in the IP 
header, and the source port in the SCTP common header, if needed. And 
recompute SCTP and IP headers checksums.

is this currently supported ? if not how Netfilter behave when receiving 
such a packet ??

any help on this would be very much appreciated... seems that NAT boxes do 
not like SCTP very much...


Thanks

Cyrille





_________________________________________________________________
MSN Messenger : discutez en direct avec vos amis ! 
http://www.msn.fr/msger/default.asp



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

* Re: Netfilter and SCTP
  2003-04-30 12:50 Netfilter and SCTP Cyrille Colin
@ 2003-04-30 14:04 ` Ray Leach
  2003-04-30 15:12   ` Maciej Soltysiak
  2003-04-30 14:24 ` Martin Josefsson
  1 sibling, 1 reply; 5+ messages in thread
From: Ray Leach @ 2003-04-30 14:04 UTC (permalink / raw)
  To: Netfilter Mailing List

[-- Attachment #1: Type: text/plain, Size: 1125 bytes --]

Hi

Isn't SCTP just a sub-protocol of TCP/IP?

If it is then you can use rules like this:

iptables -A FORWARD -i eth0 -p 132 -s 1.2.3.4 -m state --state
NEW,ESTABLISHED,RELATED -j ACCEPT


This is what I do for protocol 47 which is used by MS VPN connections.

Ray

On Wed, 2003-04-30 at 14:50, Cyrille Colin wrote:
> Hi,
> 
> I would like to know how Netfilter's translator deals with SCTP / IP packets 
> (Stream Control Transmission Protocol, IP protocol 132).
> 
> similarly to UDP, it should be able to translate the source adress in the IP 
> header, and the source port in the SCTP common header, if needed. And 
> recompute SCTP and IP headers checksums.
> 
> is this currently supported ? if not how Netfilter behave when receiving 
> such a packet ??
> 
> any help on this would be very much appreciated... seems that NAT boxes do 
> not like SCTP very much...
> 
> 
> Thanks
> 
> Cyrille
> 
> 
> 
> 
> 
> _________________________________________________________________
> MSN Messenger : discutez en direct avec vos amis ! 
> http://www.msn.fr/msger/default.asp
> 
> 

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: Netfilter and SCTP
  2003-04-30 12:50 Netfilter and SCTP Cyrille Colin
  2003-04-30 14:04 ` Ray Leach
@ 2003-04-30 14:24 ` Martin Josefsson
  2003-05-03 15:14   ` Harald Welte
  1 sibling, 1 reply; 5+ messages in thread
From: Martin Josefsson @ 2003-04-30 14:24 UTC (permalink / raw)
  To: Cyrille Colin; +Cc: Netfilter

On Wed, 2003-04-30 at 14:50, Cyrille Colin wrote:
> Hi,
> 
> I would like to know how Netfilter's translator deals with SCTP / IP packets 
> (Stream Control Transmission Protocol, IP protocol 132).
> 
> similarly to UDP, it should be able to translate the source adress in the IP 
> header, and the source port in the SCTP common header, if needed. And 
> recompute SCTP and IP headers checksums.
> 
> is this currently supported ? if not how Netfilter behave when receiving 
> such a packet ??
> 
> any help on this would be very much appreciated... seems that NAT boxes do 
> not like SCTP very much...

iptables doesn't have support for SCTP yet, noone has sent a patch for
it :)

-- 
/Martin


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

* Re: Netfilter and SCTP
  2003-04-30 14:04 ` Ray Leach
@ 2003-04-30 15:12   ` Maciej Soltysiak
  0 siblings, 0 replies; 5+ messages in thread
From: Maciej Soltysiak @ 2003-04-30 15:12 UTC (permalink / raw)
  To: Ray Leach; +Cc: Netfilter Mailing List

Hi,

> Isn't SCTP just a sub-protocol of TCP/IP?
Well, i do not know about SCTP, but if the SCTP protocol stores
IP/port information inside the packet (like eg. FTP PORT), then
this information has to be rewritten by a clever conntrack module.

I have to read on SCTP, i do not even know what is it for :-D

Regards,
Maciej Soltysiak



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

* Re: Netfilter and SCTP
  2003-04-30 14:24 ` Martin Josefsson
@ 2003-05-03 15:14   ` Harald Welte
  0 siblings, 0 replies; 5+ messages in thread
From: Harald Welte @ 2003-05-03 15:14 UTC (permalink / raw)
  To: Martin Josefsson; +Cc: Cyrille Colin, Netfilter

[-- Attachment #1: Type: text/plain, Size: 889 bytes --]

On Wed, Apr 30, 2003 at 04:24:42PM +0200, Martin Josefsson wrote:
> iptables doesn't have support for SCTP yet, noone has sent a patch for
> it :)

yes, but I am very interested in SCTP (I've read all the specs some time
ago)... unfortunately there is way too much high-priority stuff on my
TODO list, so I don't think that I'll be able to provide a patch soon.

What we would need is an implementation of the following modules:

ip_conntrack_sctp.c
ip_nat_sctp.c
ipt_sctp.c
libipt_sctp.c

> /Martin

-- 
- Harald Welte <laforge@netfilter.org>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

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

end of thread, other threads:[~2003-05-03 15:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-30 12:50 Netfilter and SCTP Cyrille Colin
2003-04-30 14:04 ` Ray Leach
2003-04-30 15:12   ` Maciej Soltysiak
2003-04-30 14:24 ` Martin Josefsson
2003-05-03 15:14   ` Harald Welte

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.