Ik heb sinds kort ADSL gedeeld door middel van een Linux router (iptables)
nou gaat dat wel goed, alleen downloaden met Bittorrent gaat erg traag.
Ik gebruik Bittorrent 3.4.2, released on April 4, 2004.
Ik heb hier al wel veel dingen over gelezen en gevonden ( google, btfaq sites, en hier op got.tweakers.net ).
Heb al verschillende dingen geprobeerd maar het helpt alleemaal niet echt veel downladen gaat niet sneller dan 5/6 kb.
Mijn netwerk ligt er nu als volgt.
Speedtouch 510 ADSL Modem [eth0: 192.168.0.1 ]
|
Linux Router [ eth0: 192.168.0.155 ] [eth1: 10.0.0.155]
|
Switch
|
Mijn PC [eth0: 10.0.0.17 ] PC Ouders [eth0: 10.0.0.199]
Ik heb in de speedtouch aangegeven dat de poorten 6881 tot 6889 moeten worden geforward naar de PC waarop de bittorrent client draait.
De vraag is nu of de onderstaande config goed is of dat ik deze config nog moet
aanpassen of dat ik iets in mijn rc.firewall van mn linux router moeten veranderen.
(waar ik zoals je kunt zien ook al diverse dingen voor heb geprobeerd)
[Speedtouch config]
Desination IP - Source IP - Source Port - Desination Port
10.0.0.17 - 0.0.0.0 - 6881 - 6881
10.0.0.17 - 0.0.0.0 - 6882 - 6882
10.0.0.17 - 0.0.0.0 - 6883 - 6883
10.0.0.17 - 0.0.0.0 - 6884 - 6884
10.0.0.17 - 0.0.0.0 - 6885 - 6885
10.0.0.199 - 0.0.0.0 - 6886 - 6886
10.0.0.199 - 0.0.0.0 - 6887 - 6887
10.0.0.199 - 0.0.0.0 - 6888 - 6888
10.0.0.199 - 0.0.0.0 - 6889 - 6889
10.0.0.199 - 0.0.0.0 - 6890 - 6890
Voor mijn PC heb ik bij file types, dit gezet voor .torrent files
"C:\Program Files\BitTorrent\btdownloadgui.exe" --responsefile "%1" --minport "6881" --maxport "6885"
en voor de pc van mijn ouders
"C:\Program Files\BitTorrent\btdownloadgui.exe" --responsefile "%1" --minport "6886" --maxport "6890"
Mijn rc.firwall script
IPTABLES=/usr/sbin/iptables
EXTERNAL_ETH=eth0
INTERNAL_ETH=eth1
EXTERNAL_IP=83.118.79.152
$IPTABLES --flush
#IP fowarding
$IPTABLES -A POSTROUTING -t nat -o $INTERNAL_ETH -j SNAT --to-source $EXTERNAL_IP
$IPTABLES -P FORWARD ACCEPT
##
## Bittorrent poorten doorsturen
##
BT_CLIENT1=10.0.0.17
BT_PORTS_CLIENT1_START=6881;
BT_PORTS_CLIENT1_END=6885;
BT_CLIENT2=10.0.0.199;
BT_PORTS_CLIENT2_START=6886;
BT_PORTS_CLIENT2_END=6890;
#$IPTABLES -t nat -A PREROUTING --destination 192.168.0.155 -i eth0 -p tcp --dport $BT_PORTS_CLIENT1_START:$BT_PORTS_CLIENT1_E
#$IPTABLES -t nat -A PREROUTING --destination 192.168.0.155 -i eth0 -p tcp --dport $BT_PORTS_CLIENT2_START:$BT_PORTS_CLIENT2_E
#$IPTABLES -t nat -A PREROUTING -i eth0 -p tcp --dport $BT_PORTS_CLIENT1_START:$BT_PORTS_CLIENT1_END -j DNAT --to $BT_CLIENT1
#$IPTABLES -A FORWARD -i $EXTERNAL_ETH -o $INTERNAL_ETH -p tcp -d $BT_CLIENT1 --dport $BT_PORTS_CLIENT1_START:$BT_PORTS_CLIEN
#$IPTABLES -t nat -A PREROUTING -i eth0 -p tcp --dport $BT_PORTS_CLIENT2_START:$BT_PORTS_CLIENT2END -j DNAT --to-destination $
#$IPTABLES -A FORWARD -s $BT_CLIENT2 -p tcp --dport $BT_PORTS_CLIENT2_START:$BT_PORTS_CLIENT2_END -j ACCEPT
nou gaat dat wel goed, alleen downloaden met Bittorrent gaat erg traag.
Ik gebruik Bittorrent 3.4.2, released on April 4, 2004.
Ik heb hier al wel veel dingen over gelezen en gevonden ( google, btfaq sites, en hier op got.tweakers.net ).
Heb al verschillende dingen geprobeerd maar het helpt alleemaal niet echt veel downladen gaat niet sneller dan 5/6 kb.
Mijn netwerk ligt er nu als volgt.
Speedtouch 510 ADSL Modem [eth0: 192.168.0.1 ]
|
Linux Router [ eth0: 192.168.0.155 ] [eth1: 10.0.0.155]
|
Switch
|
Mijn PC [eth0: 10.0.0.17 ] PC Ouders [eth0: 10.0.0.199]
Ik heb in de speedtouch aangegeven dat de poorten 6881 tot 6889 moeten worden geforward naar de PC waarop de bittorrent client draait.
De vraag is nu of de onderstaande config goed is of dat ik deze config nog moet
aanpassen of dat ik iets in mijn rc.firewall van mn linux router moeten veranderen.
(waar ik zoals je kunt zien ook al diverse dingen voor heb geprobeerd)
[Speedtouch config]
Desination IP - Source IP - Source Port - Desination Port
10.0.0.17 - 0.0.0.0 - 6881 - 6881
10.0.0.17 - 0.0.0.0 - 6882 - 6882
10.0.0.17 - 0.0.0.0 - 6883 - 6883
10.0.0.17 - 0.0.0.0 - 6884 - 6884
10.0.0.17 - 0.0.0.0 - 6885 - 6885
10.0.0.199 - 0.0.0.0 - 6886 - 6886
10.0.0.199 - 0.0.0.0 - 6887 - 6887
10.0.0.199 - 0.0.0.0 - 6888 - 6888
10.0.0.199 - 0.0.0.0 - 6889 - 6889
10.0.0.199 - 0.0.0.0 - 6890 - 6890
Voor mijn PC heb ik bij file types, dit gezet voor .torrent files
"C:\Program Files\BitTorrent\btdownloadgui.exe" --responsefile "%1" --minport "6881" --maxport "6885"
en voor de pc van mijn ouders
"C:\Program Files\BitTorrent\btdownloadgui.exe" --responsefile "%1" --minport "6886" --maxport "6890"
Mijn rc.firwall script
IPTABLES=/usr/sbin/iptables
EXTERNAL_ETH=eth0
INTERNAL_ETH=eth1
EXTERNAL_IP=83.118.79.152
$IPTABLES --flush
#IP fowarding
$IPTABLES -A POSTROUTING -t nat -o $INTERNAL_ETH -j SNAT --to-source $EXTERNAL_IP
$IPTABLES -P FORWARD ACCEPT
##
## Bittorrent poorten doorsturen
##
BT_CLIENT1=10.0.0.17
BT_PORTS_CLIENT1_START=6881;
BT_PORTS_CLIENT1_END=6885;
BT_CLIENT2=10.0.0.199;
BT_PORTS_CLIENT2_START=6886;
BT_PORTS_CLIENT2_END=6890;
#$IPTABLES -t nat -A PREROUTING --destination 192.168.0.155 -i eth0 -p tcp --dport $BT_PORTS_CLIENT1_START:$BT_PORTS_CLIENT1_E
#$IPTABLES -t nat -A PREROUTING --destination 192.168.0.155 -i eth0 -p tcp --dport $BT_PORTS_CLIENT2_START:$BT_PORTS_CLIENT2_E
#$IPTABLES -t nat -A PREROUTING -i eth0 -p tcp --dport $BT_PORTS_CLIENT1_START:$BT_PORTS_CLIENT1_END -j DNAT --to $BT_CLIENT1
#$IPTABLES -A FORWARD -i $EXTERNAL_ETH -o $INTERNAL_ETH -p tcp -d $BT_CLIENT1 --dport $BT_PORTS_CLIENT1_START:$BT_PORTS_CLIEN
#$IPTABLES -t nat -A PREROUTING -i eth0 -p tcp --dport $BT_PORTS_CLIENT2_START:$BT_PORTS_CLIENT2END -j DNAT --to-destination $
#$IPTABLES -A FORWARD -s $BT_CLIENT2 -p tcp --dport $BT_PORTS_CLIENT2_START:$BT_PORTS_CLIENT2_END -j ACCEPT