IPTables Config Problem

ganjamike

Cadet 4th Year
Registriert
Nov. 2005
Beiträge
86
Hallo zusammen,

ich habe ein kleines Problem...
Ich unterstütze mehrere Linux - Distributionen im Seed von den CD/DVDs die man sich via Torrent laden kann.

Das Problem was ich habe, ist das ich anscheinend die IPTables falsch aufgesetzt habe oder die TorrentTracker den Rechner pingen können müssen.

Da ich mich da jetzt leider nicht wirklich auskenne, wende ich mich hier an diejenigen die das wissen ;-)

Die Ports sind 6112-6200 die der Bittornado nutzt. Ich paste mal die ganze config, da ich mich nicht wirklich mit IPTables auskenne und das HowTo was ich zur Zeit lese .. noch länger dauern könnte ;-) Währe nett wenn ihr auch Anregungen bringt, was falsch ist, was verbesserungswürdig wäre...


Thx for help

gz
- ChillazZ

Code:
Chain INPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ssh 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http 
ACCEPT     all  --  localhost            anywhere            
icmp_packets  icmp --  anywhere             anywhere            
LOG        all  --  anywhere             anywhere            LOG level debug prefix `IPTABLES-IN Default Drop: ' 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:44400 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:44401 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:27950 
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ftp 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpts:49152:65534 flags:FIN,SYN,RST,ACK/SYN 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:44402 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpts:61580:62000 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpts:6118:6200 

Chain FORWARD (policy DROP)
target     prot opt source               destination         

Chain OUTPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ftp-data 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ftp 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ssh 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:telnet 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:smtp 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:nicname 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:domain 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:pop3 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:ntp 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:imap 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:https 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:783 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:imaps 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:mysql 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:12000 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:15000 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:2210 
ACCEPT     all  --  anywhere             localhost           
icmp_packets  icmp --  anywhere             anywhere            
LOG        all  --  anywhere             anywhere            LOG level debug prefix `IPTABLES-OUT Default Drop: ' 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:27950 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:44400 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:44401 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:44402 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpts:61580:62000 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpts:6118:6200 

Chain icmp_packets (2 references)
target     prot opt source               destination         
ACCEPT     icmp --  anywhere             anywhere            icmp echo-reply 
ACCEPT     icmp --  localhost            anywhere            icmp echo-request 
DROP       icmp --  anywhere             anywhere            icmp echo-request 
ACCEPT     icmp --  anywhere             anywhere            icmp destination-unreachable 
ACCEPT     icmp --  anywhere             anywhere            icmp time-exceeded
 
Du schreibst 6112-6200/tcp werden eingehend benötigt. Zugelassen ist in dem Bereich aber nur 6118-6200/tcp.

Solange du dich mit iptables nicht auskennst, solltest du es nicht verwenden. Laß das Skript, was die vielen Einstellungen vornimmt, gar nicht erst laufen. Dann sollte die Standardkonfiguration gelten, in der alles erlaubt ist. Manuell zurücksetzen kannst du deine Konfiguration mit:
$ iptables -F
$ iptables -X
$ iptables -P INPUT ACCEPT
$ iptables -P FORWARD ACCEPT
$ iptables -P OUTPUT ACCEPT
 
hau dir doch webmin drauf. da kannste iptables um einiges komfortabler einrichten...
 
Zurück
Oben