I have setup nat port mapping for udp/tcp port 19100 (what i set client to listen to) forwarding to my PC 192.168.1.2. Azureus "health" looks green, and NAT port test is OK. My download speeds are like 3kb/s MAX. I am using WRT54G running RC3. I'm using ISP with 500kb/s downstream speeds and when I did a downlaod test speed which proves no an ISP problem, and I get fast browsing and normal http downloads. I have setup the following rules in iptables:
Chain forwarding_rule (1 references)
pkts bytes target prot opt in out source destination
101 5052 ACCEPT tcp -- ppp0 * 0.0.0.0/0 192.168.1.2 tcp dpt:19100
536 51854 ACCEPT udp -- ppp0 * 0.0.0.0/0 192.168.1.2 udp dpt:19100
Chain prerouting_rule (1 references)
pkts bytes target prot opt in out source destination
104 5188 DNAT tcp -- ppp0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:19100 to:192.168.1.2
549 52485 DNAT udp -- ppp0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:19100 to:192.168.1.2
tcpdump off openwrt(192.168.1.1):
root@OpenWrt:/# tcpdump -i vlan1 port 19100
tcpdump: WARNING: vlan1: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on vlan1, link-type EN10MB (Ethernet), capture size 96 bytes
00:25:18.782401 IP 192.168.1.1.28876 > 192.168.1.2.19100: S 1011283665:1011283665(0) win 65535 <mss 1420,nop,nop,sackOK>
00:25:18.785891 IP 192.168.1.2.19100 > 192.168.1.1.28876: S 2209015110:2209015110(0) ack 1011283666 win 5840 <mss 1460,nop,nop,sackOK>
00:25:20.882851 IP 192.168.1.1.4301 > 192.168.1.2.19100: S 1257950128:1257950128(0) win 14600 <mss 1420,nop,nop,sackOK>
00:25:20.883464 IP 192.168.1.1.28876 > 192.168.1.2.19100: . ack 1 win 65535
00:25:20.883729 IP 192.168.1.2.19100 > 192.168.1.1.4301: S 2214336243:2214336243(0) ack 1257950129 win 5840 <mss 1460,nop,nop,sackOK>
00:25:21.182630 IP 192.168.1.1.28876 > 192.168.1.2.19100: P 1:69(68) ack 1 win 65535
00:25:21.182875 IP 192.168.1.2.19100 > 192.168.1.1.28876: . ack 69 win 5840
00:25:21.188555 IP 192.168.1.2.19100 > 192.168.1.1.28876: R 1:1(0) ack 69 win 5840
00:25:21.520604 IP 192.168.1.1.4085 > 192.168.1.2.19100: P 2584002200:2584002268(68) ack 2209224011 win 8520
00:25:21.522425 IP 192.168.1.1.4301 > 192.168.1.2.19100: . ack 1 win 14600
00:25:21.523378 IP 192.168.1.2.19100 > 192.168.1.1.4085: R 2209224011:2209224011(0) win 0
00:25:22.441982 IP 192.168.1.1.4301 > 192.168.1.2.19100: P 1:69(68) ack 1 win 14600
00:25:22.442893 IP 192.168.1.2.19100 > 192.168.1.1.4301: . ack 69 win 5840
00:25:22.447420 IP 192.168.1.2.19100 > 192.168.1.1.4301: R 1:1(0) ack 69 win 5840
tcpdump off my pc with bt client (192.168.1.2)
[root@toys ~]# tcpdump -i eth0 port 19100
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
00:27:02.945430 IP 192.168.1.1.4841 > 192.168.1.2.19100: S 2138721331:2138721331(0) win 17280 <mss 1420,nop,nop,sackOK>
00:27:02.956572 IP 192.168.1.2.19100 > 192.168.1.1.4841: S 2287407907:2287407907(0) ack 2138721332 win 5840 <mss 1460,nop,nop,sackOK>
00:27:04.045287 IP 192.168.1.1.12007 > 192.168.1.2.19100: S 2027357628:2027357628(0) win 65535 <mss 1420,nop,nop,sackOK>
00:27:04.045386 IP 192.168.1.2.19100 > 192.168.1.1.12007: S 2295375483:2295375483(0) ack 2027357629 win 5840 <mss 1460,nop,nop,sackOK>
00:27:04.229083 IP 192.168.1.1.1931 > 192.168.1.2.19100: UDP, length 58
00:27:04.229937 IP 192.168.1.1.4841 > 192.168.1.2.19100: . ack 1 win 17280
00:27:04.230770 IP 192.168.1.2.19100 > 192.168.1.1.1931: UDP, length 32
00:27:05.805755 IP 192.168.1.1.62361 > 192.168.1.2.19100: S 1934993328:1934993328(0) win 65535 <mss 1420,nop,nop,sackOK>
00:27:05.805840 IP 192.168.1.2.19100 > 192.168.1.1.62361: S 2301602627:2301602627(0) ack 1934993329 win 5840 <mss 1460,nop,nop,sackOK>
00:27:05.806991 IP 192.168.1.1.3478 > 192.168.1.2.19100: S 4096191101:4096191101(0) win 64240 <mss 1420,nop,nop,sackOK>
00:27:05.807044 IP 192.168.1.2.19100 > 192.168.1.1.3478: S 2287115427:2287115427(0) ack 4096191102 win 5840 <mss 1460,nop,nop,sackOK>
00:27:05.807226 IP 192.168.1.1.4841 > 192.168.1.2.19100: P 1:69(68) ack 1 win 17280
00:27:05.807257 IP 192.168.1.2.19100 > 192.168.1.1.4841: . ack 69 win 5840
00:27:05.808776 IP 192.168.1.1.12007 > 192.168.1.2.19100: . ack 1 win 65535
00:27:05.808993 IP 192.168.1.1.12007 > 192.168.1.2.19100: P 1:69(68) ack 1 win 65535
00:27:05.809019 IP 192.168.1.2.19100 > 192.168.1.1.12007: . ack 69 win 5840
00:27:05.818220 IP 192.168.1.2.19100 > 192.168.1.1.4841: R 1:1(0) ack 69 win 5840
00:27:05.919387 IP 192.168.1.2.19100 > 192.168.1.1.12007: R 1:1(0) ack 69 win 5840
00:27:06.427426 IP 192.168.1.1.3478 > 192.168.1.2.19100: . ack 1 win 65320
00:27:06.427884 IP 192.168.1.1.62361 > 192.168.1.2.19100: . ack 1 win 65535
00:27:06.748395 IP 192.168.1.1.4171 > 192.168.1.2.19100: P 632763982:632764000(18) ack 1681023098 win 65102
The thing is that I can setup the same udp/tcp port 19100 on my nokia dsl router, and get full 2mbit speeds (different ISP). Is there some configuration i'm missing or incomplete on the wrt54g??
