Results 1 to 15 of 102

Thread: [How to] rtorrent & ntorrent

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    Why not use:
    PHP Code:
    iptables -I INPUT 1 -p tcp --syn -"$1" --dport 10000:11000 -j ACCEPT 
    instead of:
    PHP Code:
    for P in 10000:11000; do
      
    iptables -I INPUT 1 -p tcp --syn -"$1" --dport $P -j ACCEPT
    done 
    Finally, are you sure that rtorrent needs that much ports to be opened? I guess the default value is something like 4-10 ports.

    Actually I suggest the following rework of the minimalistic post-firewall file:

    PHP Code:
    #! /bin/sh

    ## FIREWALL
    ## set default policy
    iptables -P INPUT DROP
    # remove last default rule
    iptables -D INPUT -j DROP

    ## Allow access to various router services from WAN
    ## open 10000-11000 for rtorrent
    iptables -A INPUT -p tcp --syn -"$1" --dport 10000:11000 -j ACCEPT 
    This allows painless addition of the new rules in the end of the INPUT chain which is generally more correct way in comparison with inserting them in the beginning.

    However, strictly speaking this method implies a requirement to set: Internet Firewall - Basic Config - Logged packets type: NONE
    Last edited by al37919; 24-12-2007 at 12:48.

Similar Threads

  1. Replies: 28
    Last Post: 02-06-2013, 20:58
  2. Ipkg rtorrent Packet gesucht
    By FastJack in forum German Discussion - Deutsch (DE)
    Replies: 1
    Last Post: 23-10-2007, 17:37
  3. older rtorrent version
    By FastJack in forum WL-500gP Q&A
    Replies: 1
    Last Post: 23-10-2007, 09:40
  4. [How To] Oleg Firmware installeren.
    By Dragonar in forum Dutch Discussion - Nederlands
    Replies: 7
    Last Post: 08-05-2007, 18:34
  5. [HOW TO] Timeouts beim Laden von bestimmten Seiten beheben - MTU Problem
    By modnet25 in forum German Discussion - Deutsch (DE)
    Replies: 3
    Last Post: 03-09-2006, 10:55

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •