From: jeeecha@inbox.lv Subject: NAT for DirectConnect (NeoModus P2P protocol) Date: Sun, 7 Sep 2003 04:04:49 +0300 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <1062896689.3f5a8431e07a6@www2.inbox.lv> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="-moq10628966890e662bcf21b0a4eedb974747f876683a" Content-Transfer-Encoding: 7bit Return-path: To: netfilter-devel@lists.netfilter.org Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org ---moq10628966890e662bcf21b0a4eedb974747f876683a Content-Type: text/plain; charset=windows-1257 Content-Transfer-Encoding: 8bit I tried to write a conntrack and nat modules for DirectConnect protocol. I have a slight problem with this though - DirectConnect uses both UDP (for search results) and TCP (for uploads/downloads). I took irc modules as an example and I got TCP connections working correctly. However with UDP only first returned search result gets past the router. I browsed the mailing list archive and only post related to this was about how the expectations work stating that only a single expectation is awaited. Is there a way to work around this? They way DirectConnect performs search: IP --> SIP (search request on master TCP connection) IP <-- IP1 (search results from client 1 {UDP packet}) IP <-- IP2 (search results from client 2) ... and so on ... Currently my code gets the first search result just fine, however further results do not drop into the module and thus do not get NATted. If anyone has an idea, I would appreciate that. Besides, I wonder why hasnt anyone written the modules for DirectConnect already...it is becoming widely used P2P file sharing protocol lately. Thanks in advance, Jekabs P.S. I am not subscribed to the list, could you please send response directly to this mail? http://games.inbox.lv - 1000s of FREE on-line games. Dress Up Doll, 3D Chess, Tetris, Mario, Car Racer, Pool and many more! ---moq10628966890e662bcf21b0a4eedb974747f876683a Content-Type: text/html; charset=windows-1257 Content-Transfer-Encoding: 8bit
I tried to write a conntrack and nat modules for DirectConnect protocol.
I have a slight problem with this though - DirectConnect uses
both UDP (for search results) and TCP (for uploads/downloads). I took irc
modules as an example and I got TCP connections working correctly.
However with UDP only first returned search result gets past the router.
I browsed the mailing list archive and only post related to this was about
how the expectations work stating that only a single expectation is awaited.

Is there a way to work around this?

They way DirectConnect performs search:
IP --> SIP (search request on master TCP connection)
IP <-- IP1 (search results from client 1 {UDP packet})
IP <-- IP2 (search results from client 2)
... and so on ...

Currently my code gets the first search result just fine, however further
results do not drop into the module and thus do not get NATted.

If anyone has an idea, I would appreciate that. Besides, I wonder why hasnt
anyone written the modules for DirectConnect already...it is becoming widely
used P2P file sharing protocol lately.

Thanks in advance,
Jekabs

P.S. I am not subscribed to the list, could you please send response
directly to this mail?

games.inbox.lv - Mario, Car Racer, Tetris, Pool, Chess and 1000s of FREE games! Hey, click, play!
---moq10628966890e662bcf21b0a4eedb974747f876683a--