Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34

Thread: HOWTO: open ports (for bittorrent?) from the command line

  1. #1
    Join Date
    Nov 2005
    Location
    Taunton, England
    Beans
    931
    Distro
    Ubuntu 10.04 Lucid Lynx

    HOWTO: open ports (for bittorrent?) from the command line

    By default, ubuntu is totally locked down, and will not allow incoming connections. To rectify this, its very simple - just 1 command

    Code:
    sudo iptables -A INPUT -p tcp --dport 6881 -j ACCEPT
    this is the port that the built in ubuntu bittorrent client uses, so this is the example i give. just issue that 1 command and you're good to go.

    if you want to revert back to how it was before

    Code:
    sudo iptables -A INPUT -p tcp --dport 6881 -j DROP
    i cant believe this hasnt already been posted
    Last edited by Choad; January 11th, 2007 at 12:55 PM. Reason: added some tags
    sudo make me a sandwich

  2. #2
    Join Date
    Dec 2006
    Beans
    9

    Talking Re: HOWTO: open ports (for bittorrent?) from the command line

    thanx for the tip

  3. #3
    Join Date
    Feb 2006
    Location
    Pennsylvania
    Beans
    3

    Re: HOWTO: open ports (for bittorrent?) from the command line

    Thanks, I also used it for ports 4662 & 4672 (aMule) and now KAD isn't firewalled anymore.

  4. #4
    Join Date
    Jun 2006
    Beans
    233

    Re: HOWTO: open ports (for bittorrent?) from the command line

    holy crap! i've been trying for months to get this stuff (amule) working! you get my vote for 'post of the year'!

    -steve=D>
    Registered Ubuntu User #6991, Registered Linux User #424168

  5. #5
    Join Date
    Dec 2006
    Beans
    66

    Re: HOWTO: open ports (for bittorrent?) from the command line

    Thanks.

    By the way, its good to hear that linux is completely shut-down by default. Most linux distros now-a-days are trying to open things up to make things 'easier' like windows does.

    Glad this sticks to security!

    Granted, my bittorrent by default worked before but had trouble uploading /well/, this might rectify this problem. Too bad the darned university won't let me torrent.

  6. #6
    Join Date
    Apr 2005
    Location
    Guatemala
    Beans
    92
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: open ports (for bittorrent?) from the command line

    Ok, I've done everything! I have forwarded the relevant ports in my router, I've opened the ports on ubuntu with the command above, and I added it to my iptables, so its permanent. When Deluge still insisted on reporting no incoming connections I decided to upgrade my router's firmware, but it didn't fix a thing. Right now I've got my computer on the DMZ Host of my router, and it STILL shows no incoming connections. What is happening?

  7. #7
    Join Date
    Nov 2005
    Location
    Taunton, England
    Beans
    931
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: open ports (for bittorrent?) from the command line

    Quote Originally Posted by amgeex View Post
    Ok, I've done everything! I have forwarded the relevant ports in my router, I've opened the ports on ubuntu with the command above, and I added it to my iptables, so its permanent. When Deluge still insisted on reporting no incoming connections I decided to upgrade my router's firmware, but it didn't fix a thing. Right now I've got my computer on the DMZ Host of my router, and it STILL shows no incoming connections. What is happening?
    trying to download a poorly seeded torrent?
    sudo make me a sandwich

  8. #8
    Join Date
    Apr 2005
    Location
    Guatemala
    Beans
    92
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: open ports (for bittorrent?) from the command line

    No, in fact, the torrent has 300+ seeds and 500+ peers, so no, its not poorly seeded.

  9. #9
    Join Date
    Dec 2005
    Location
    Vegas
    Beans
    61

    Re: HOWTO: open ports (for bittorrent?) from the command line

    Run a port scan on your self to see if the port is actually open. Also maybe try taking a look at the packets as they are trying to pass with wireshark or tshark. You might be able to find out what is stopping the packets that way.

  10. #10
    Join Date
    Apr 2005
    Location
    Guatemala
    Beans
    92
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: open ports (for bittorrent?) from the command line

    Thanks. I have scanned myself already, and the port is open. I will try to see the packets, which is something I haven't done. I'll post back to let you know.

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

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