PDA

Bekijk de volledige versie : BitTorrent (BTGET) Port Problem



vtdworker
23-02-2006, 21:55
I have a problem with my bit torrent, it is not working on the correct ports.

Here is what a netstat -n produced when running btget.


Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 **WAN IP**:1156 84.92.161.228:6885 ESTABLISHED
tcp 0 1 **WAN IP**:1147 68.226.172.165:32459 SYN_SENT
tcp 0 0 **WAN IP**:1129 70.24.74.83:6346 ESTABLISHED
tcp 0 0 **WAN IP**:1161 82.40.66.109:6881 ESTABLISHED
tcp 0 1 **WAN IP**:1162 80.192.247.50:23207 SYN_SENT
tcp 0 1 **WAN IP**:1127 196.206.194.238:65535 SYN_SENT
tcp 0 1 **WAN IP**:1159 84.184.114.190:13785 SYN_SENT
tcp 0 1 **WAN IP**:1150 68.148.253.250:6882 SYN_SENT
tcp 0 1 **WAN IP**:1167 213.140.22.65:6881 SYN_SENT
tcp 0 0 **WAN IP**:1144 24.14.115.132:23108 ESTABLISHED
tcp 0 1 **WAN IP**:1165 82.37.33.147:6882 SYN_SENT
tcp 0 1 **WAN IP**:1175 217.165.1.183:5002 SYN_SENT
tcp 0 1 **WAN IP**:1166 84.52.15.82:11347 SYN_SENT
tcp 0 1 **WAN IP**:1142 87.74.96.207:21348 SYN_SENT
tcp 0 1 **WAN IP**:1130 71.116.68.249:26783 SYN_SENT
tcp 0 0 **WAN IP**:1172 201.241.82.42:6868 ESTABLISHED
tcp 0 1 **WAN IP**:1155 72.192.160.67:13446 SYN_SENT
tcp 0 0 **WAN IP**:1140 24.132.236.250:5252 ESTABLISHED
tcp 0 1 **WAN IP**:1146 24.217.228.187:31252 SYN_SENT
tcp 0 1 **WAN IP**:1163 24.236.212.89:6881 SYN_SENT
tcp 0 341 **WAN IP**:1173 200.112.42.198:25219 ESTABLISHED
tcp 0 1 **WAN IP**:1133 139.168.56.214:6881 SYN_SENT
tcp 0 0 **WAN IP**:1128 68.64.154.214:9827 ESTABLISHED
tcp 0 1 **WAN IP**:1151 212.151.202.174:58408 SYN_SENT
tcp 0 1 **WAN IP**:1141 220.253.75.241:7000 SYN_SENT
tcp 0 1 **WAN IP**:1149 83.73.2.10:5077 SYN_SENT
tcp 0 1 **WAN IP**:1126 85.210.45.32:25663 SYN_SENT
tcp 0 0 **WAN IP**:1145 70.30.0.49:9871 ESTABLISHED
tcp 0 52 ::ffff:192.168.1.1:22 ::ffff:192.168.1.1:4690 ESTABLISHED
tcp 0 0 ::ffff:192.168.1.1:22 ::ffff:192.168.1.1:4665 ESTABLISHED
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
unix 8 [ ] DGRAM 333 /dev/log
unix 2 [ ] DGRAM 1065
unix 2 [ ] DGRAM 958
unix 2 [ ] DGRAM 776
unix 3 [ ] STREAM CONNECTED 448
unix 3 [ ] STREAM CONNECTED 447
unix 2 [ ] DGRAM 445
unix 2 [ ] DGRAM 345
unix 2 [ ] DGRAM 336


I am using the standard ports. Here is my /opt/etc/torrent.conf

##
# Configuration
# NOTE: no spaces around the = sign
# the config will be sourced (eg. . torrent.conf)

SOURCE=/tmp/harddisk/ftp_pub/torrent/source
WORK=/tmp/harddisk/ftp_pub/torrent/work
TARGET=/tmp/harddisk/ftp_pub/torrent/target
MAILTO=
MAILFROM=
USER=admin
GROUP=root
DATE_FORMAT="%d %h %H:%M"

# btget port range environment
BTLIB_MINPORT=56881
export BTLIB_MINPORT
BTLIB_MAXPORT=56889
export BTLIB_MAXPORT
#time between logs
LOG_TIME=59

# Seed torrent after completition (YES or NO)
AUTOSEED="YES"


#Colors for command line. # comment out if not needed
GREEN="\033[32;1m"
#NC="\033[0m"
#BACK_UP="\033[1K\033[0G"
NORMAL="\033[0m"
WARN="\033[33;1m"
#BAD="\033[31;1m"
BOLD="\033[1m"
#GOOD="\033[32;1m"



As you can see from the conf it should be between ports 56881-56889, but from the netstat this does not seem to be the case when btget runs. I installed libbt using ipkg.

Firmware: 1.9.2.7-7b (Oleg)
libbt: 1.05-3

How can I correct this. Thanks in advance for any help.

oleo
24-02-2006, 10:59
Run
. /opt/etc/torrent.conf
It is an Itsy Bitsy Teeny Weenie Dot and Space Source Command :)

Then run btget. But really; This is ment to be sourced from torrent_admin, torrent_watchdog or even better /opt/share/www/cgi-bin/torrent.cgi

tokyoturnip
24-02-2006, 18:32
Don't see what your problem is. You set your BT client to listen on 56881-56889 and you showed us a netstat of ports it is connecting to ON FOREIGN CLIENTS.
Grep for LISTENING ports on the local machine, then worry about if you have a problem. (Not meant to sound harsh or mean).