All of lore.kernel.org
 help / color / mirror / Atom feed
* newbie question : ip_conntrack_ftp
@ 2004-03-23 15:24 Mihael Kukec
  2004-03-23 16:48 ` Antony Stone
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Mihael Kukec @ 2004-03-23 15:24 UTC (permalink / raw)
  To: netfilter



Hello!


I'm using latest stable Debian, with 2.4.18 kernel. Unfortunately it does
not have ip_conntrack_ftp module included and I need it. Can someone give
me short instructions on that to do? Where to get source, and if there
are, some special instructions for compiling etc...




TIA





^ permalink raw reply	[flat|nested] 11+ messages in thread
* newbie question : ip_conntrack_ftp
@ 2004-03-23 15:13 Mihael Kukec
  2004-03-24  3:11 ` Alexander Samad
  0 siblings, 1 reply; 11+ messages in thread
From: Mihael Kukec @ 2004-03-23 15:13 UTC (permalink / raw)
  To: netfilter


Hello!

Excuse me for my poor English...

I'm using latest stable Debian, with 2.4.18 kernel. Unfortunately it does
not have ip_conntrack_ftp module included and I need it. Can someone give
me short instructions on that to do? Where to get code, if there are some
special instructions for compiling etc..


TIA




^ permalink raw reply	[flat|nested] 11+ messages in thread
* Ip_conntrack_rpc_tcp
@ 2004-03-23 14:44 Stindl Wolfgang EXT
  2004-03-23 15:05 ` newbie question : ip_conntrack_ftp Mihael Kukec
  0 siblings, 1 reply; 11+ messages in thread
From: Stindl Wolfgang EXT @ 2004-03-23 14:44 UTC (permalink / raw)
  To: 'netfilter@lists.netfilter.org'

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

Hi,

I have some trouble with ip_conntrack_rpc_tcp.
It seems, that it doesn't find the right rpc-packets when making an nfs mount.

Do you have any ideas what I'm doing wrong?

Thanks a lot
Wolfi

Here are the rules
iptables -F
iptables -F PREROUTING -t nat

iptables -P INPUT DROP
iptables -P OUTPUT DROP

iptables -A INPUT -p tcp --dport 111 -j LOG
iptables -A OUTPUT -p tcp --sport 111 -j LOG
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT

iptables -A INPUT -p tcp --dport 111 -m rpc -m state --state NEW -j ACCEPT
iptables -A INPUT -p UDP --dport 111 -m rpc -m state --state NEW -j ACCEPT

iptables -A INPUT -j LOG
iptables -A OUTPUT -j LOG



Here is some debugging output


Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: new packet to evaluate ..
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: packet has no data (may still be handshaking). [skip]
Mar 23 15:48:54 DEVil kernel: IN=eth0 OUT= MAC=00:30:05:3f:ca:c3:00:e0:00:5e:13:ad:08:00 SRC=10.8.15.12 DST=10.8.15.10 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=21635 DF PROTO=TCP SPT=716 DPT=111 WINDOW=5840 RES=0x00 SYN URGP=0
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: new packet to evaluate ..
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: packet has no data (may still be handshaking). [skip]
Mar 23 15:48:54 DEVil kernel: IN= OUT=eth0 SRC=10.8.15.10 DST=10.8.15.12 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=TCP SPT=111 DPT=716 
WINDOW=5792 RES=0x00 ACK SYN URGP=0
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: new packet to evaluate ..
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: packet has no data (may still be handshaking). [skip]
Mar 23 15:48:54 DEVil kernel: IN=eth0 OUT= MAC=00:30:05:3f:ca:c3:00:e0:00:5e:13:ad:08:00 SRC=10.8.15.12 DST=10.8.15.10 LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=21636 DF PROTO=TCP SPT=716 DPT=111 WINDOW=5840 RES=0x00 ACK URGP=0

This is the RPC Call

Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: new packet to evaluate ..
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: packet is from the initiator. [cont]
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: TCP header length is; tcplen=76 ..   (I added this to debugging-output
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: tcph id; tcph->doff=8 ..   (I added this to debugging-output
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: packet length is not correct. [skip]
Mar 23 15:48:54 DEVil kernel: IN=eth0 OUT= MAC=00:30:05:3f:ca:c3:00:e0:00:5e:13:ad:08:00 SRC=10.8.15.12 DST=10.8.15.10 LEN=96 TOS=0x00 PREC=0x00 TTL=64 ID=21637 DF PROTO=TCP SPT=716 DPT=111 WINDOW=5840 RES=0x00 ACK PSH URGP=0
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: new packet to evaluate ..
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: packet has no data (may still be handshaking). [skip]
Mar 23 15:48:54 DEVil kernel: IN= OUT=eth0 SRC=10.8.15.10 DST=10.8.15.12 LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=14112 DF PROTO=TCP SPT=111 DPT=716 WINDOW=5792 RES=0x00 ACK URGP=0


This should be the RPC-REPLY
As you can see: tcplen-(tcph->doff*4) != 32
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: new packet to evaluate ..
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: packet is from the receiver. [cont]
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: TCP header length is; tcplen=432 .. (I added this to debugging-output)
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: tcph id; tcph->doff=8 .. (I added this to debugging-output)
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: packet length is not correct. [skip]
Mar 23 15:48:54 DEVil kernel: IN= OUT=eth0 SRC=10.8.15.10 DST=10.8.15.12 LEN=452 TOS=0x00 PREC=0x00 TTL=64 ID=14113 DF PROTO=TCP SPT=111 DPT=716 
WINDOW=5792 RES=0x00 ACK PSH URGP=0


Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: new packet to evaluate ..
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: packet has no data (may still be handshaking). [skip]
Mar 23 15:48:54 DEVil kernel: IN=eth0 OUT= MAC=00:30:05:3f:ca:c3:00:e0:00:5e:13:ad:08:00 SRC=10.8.15.12 DST=10.8.15.10 LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=21638 DF PROTO=TCP SPT=716 DPT=111 WINDOW=6432 RES=0x00 ACK URGP=0
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: new packet to evaluate ..
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: packet is from the receiver. [cont]
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: TCP header length is; tcplen=68 ..
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: tcph id; tcph->doff=8 ..
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: packet length is not correct. [skip]
Mar 23 15:48:54 DEVil kernel: IN= OUT=eth0 SRC=10.8.15.10 DST=10.8.15.12 LEN=88 TOS=0x00 PREC=0x00 TTL=64 ID=14114 DF PROTO=TCP SPT=111 DPT=716 
WINDOW=5792 RES=0x00 ACK PSH URGP=0
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: new packet to evaluate ..
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: packet has no data (may still be handshaking). [skip]
Mar 23 15:48:54 DEVil kernel: IN=eth0 OUT= MAC=00:30:05:3f:ca:c3:00:e0:00:5e:13:ad:08:00 SRC=10.8.15.12 DST=10.8.15.10 LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=21639 DF PROTO=TCP SPT=716 DPT=111 WINDOW=6432 RES=0x00 ACK URGP=0
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: new packet to evaluate ..
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: packet has no data (may still be handshaking). [skip]
Mar 23 15:48:54 DEVil kernel: IN=eth0 OUT= MAC=00:30:05:3f:ca:c3:00:e0:00:5e:13:ad:08:00 SRC=10.8.15.12 DST=10.8.15.10 LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=21640 DF PROTO=TCP SPT=716 DPT=111 WINDOW=6432 RES=0x00 ACK FIN URGP=0
Mar 23 15:48:54 DEVil kernel: IN=eth0 OUT= MAC=00:30:05:3f:ca:c3:00:e0:00:5e:13:ad:08:00 SRC=10.8.15.12 DST=10.8.15.10 LEN=108 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=717 DPT=32771 LEN=88
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: new packet to evaluate ..
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: packet has no data (may still be handshaking). [skip]
Mar 23 15:48:54 DEVil kernel: IN= OUT=eth0 SRC=10.8.15.10 DST=10.8.15.12 LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=14115 DF PROTO=TCP SPT=111 DPT=716 
WINDOW=5792 RES=0x00 ACK FIN URGP=0
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: new packet to evaluate ..
Mar 23 15:48:54 DEVil kernel: ip_conntrack_rpc_tcp: packet has no data (may still be handshaking). [skip]

This is the NFS mount which will be dropped.

Mar 23 15:48:54 DEVil kernel: IN=eth0 OUT= MAC=00:30:05:3f:ca:c3:00:e0:00:5e:13:ad:08:00 SRC=10.8.15.12 DST=10.8.15.10 LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=21641 DF PROTO=TCP SPT=716 DPT=111 WINDOW=6432 RES=0x00 ACK URGP=0




[-- Attachment #2: Type: text/html, Size: 10343 bytes --]

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

end of thread, other threads:[~2004-03-24 16:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-23 15:24 newbie question : ip_conntrack_ftp Mihael Kukec
2004-03-23 16:48 ` Antony Stone
2004-03-23 17:16 ` Victor Julien
2004-03-24  7:25   ` Mihael Kukec
2004-03-24 16:44     ` Victor Julien
2004-03-24  7:28   ` Mihael Kukec
2004-03-23 17:22 ` Cedric Blancher
  -- strict thread matches above, loose matches on Subject: below --
2004-03-23 15:13 Mihael Kukec
2004-03-24  3:11 ` Alexander Samad
2004-03-24 13:04   ` Mihael Kukec
2004-03-23 14:44 Ip_conntrack_rpc_tcp Stindl Wolfgang EXT
2004-03-23 15:05 ` newbie question : ip_conntrack_ftp Mihael Kukec

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.