Gentoo Archives: gentoo-user

From: Albert Hopkins <marduk@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] No torrent upload
Date: Tue, 12 Jun 2007 14:56:49
Message-Id: 1181659479.6073.22.camel@blackwidow.nbk
In Reply to: Re: [gentoo-user] No torrent upload by Florian Philipp
1 On Tue, 2007-06-12 at 16:27 +0200, Florian Philipp wrote:
2 > > Have you tried running netstat?
3 >
4 > netstat
5 > Active Internet connections (w/o servers)
6 > Proto Recv-Q Send-Q Local Address Foreign Address State
7 > tcp 0 1 HOMER_GENTOO64.PHHE:ftp 212-87-13-68.sds.:40202 FIN_WAIT1
8 >
9 > Active UNIX domain sockets (w/o servers)
10 > Proto RefCnt Flags Type State I-Node Path
11 > unix 2 [ ] DGRAM 975
12 > @/org/kernel/udev/udevd
13 > [...]
14 > nothing interesting except the first line.
15
16 So you see no SYN requests to your server on port 21
17 >
18 >
19 > > Have you ensured rtorrent is
20 > > listning on TCP 21 (in Linux you usually have to be running as root to
21 > > do this)
22 >
23 > Yes. It runs as root (not that I would like it, maybe I should chroot it...)
24 > and port 21 is rtorrent's only chance to download. So, it works.
25
26 Chrooting is not going to get around needding root access to listen on
27 port 21. Plus don't you still need to be root to chroot?
28 >
29 > You mean stuff like iptables? No.
30
31 This is my theory but I haven't verified it. Bittorrent clients are
32 programmed to listen/connect to a range of ports by default (I think it
33 starts at 6882). Your client is connecting and saying "connect to me on
34 port 21". The other clients see this but it's not in their IP range so
35 they refuse to connect to you. You might be able to tell your client to
36 listen on tcp/21 but that doesn't mean everyone else has told their
37 clients to connect.
38
39 But if you are sure this *has* worked then that would make my theory
40 incorrect. Like I said I've never verified it, but that seems like the
41 likely scenario.
42
43 The other scenario is if you're not even seeing SYN requests is that
44 requests are being blocked to your computer from that port, possibly by
45 your ISP. But again if this were the case then it should also be the
46 case for Windows, Knoppix, etc.
47
48 Can you verify your claim (i.e. go into knoppix or whatever, run
49 rtorrent on tcp/21 and verify via netstat that clients are connecting to
50 you on that port)?
51
52 --
53 Albert W. Hopkins
54
55 --
56 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] No torrent upload Florian Philipp <f.philipp@××××××.de>