Skip to contentSkip to conversation

Direction Confusion

DISCUSSION Ian Latter 1 participant 1 message Jun 16, 2003 netfilter

lore
Share & tools
lore

Ian Latter

author
#0 lore raw

Hi Ricky,

The FTP module (which I studied profusely to build the RSH and RPC
modules) does that because the FTP protocol runs over TCP. Most of the NetBios guff is udp based ... and udp broadcasts at that.

If you want to make a module/helper decision based on the UDP
broadcasts that are "leaving" your system/LAN, then you assess the outgoing packet(s) .. ie .. seek the original direction .. and hunt through the data in the packet(s).

Regards,

----- Original Message -----

Quoted 26 lines

From: "Ricky Foo" <[email protected]>
To: <[email protected]>
Subject: Direction Confusion
Date: Mon, 16 Jun 2003 04:06:58 +0000

Hi all,

For the netbios name service protocol, it is not request-reply based. I have observed from ethereal that the client machine will send a request out but will not receive back any replies. Thus for the similar code segment part below for my case, what should I put since the connection will never be "established" or "related" nor "reply" in any sense?

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
this is the part for FTP:

	/* Until there's been traffic both ways, don't look in packets. */
	if (ctinfo != IP_CT_ESTABLISHED
	    && ctinfo != IP_CT_ESTABLISHED+IP_CT_IS_REPLY) {
		printk("ftp: Conntrackinfo = %un", ctinfo);
		return NF_ACCEPT;
	}


    Ricky
Quoted 6 lines

_________________________________________________________________
Get 10mb of inbox space with MSN Hotmail Extra Storage
http://join.msn.com/?pgmarket=en-sg

--
Ian Latter
Internet and Networking Security Officer
Macquarie University