Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Tom" <gunsuper@atm.cyberec.com>
To: netfilter@lists.netfilter.org
Subject: Problem for Bittorrent Application behind Linux Firewall
Date: Tue, 23 Sep 2003 17:16:41 +0800	[thread overview]
Message-ID: <049201c381b3$672939f0$5a01a8c0@wireless.cheung.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1711 bytes --]

Hello Everyone:

I have encountered a problem when implementing my Linux Firewall using iptables together with some applications like Bittorrent.It's peer to peer application sharing program.My Linux have two network interfaces, one is connecting to my internal LAN with IP range 192.168.1.0/24 and other network interface is connecting to internet via ADSL modem using PPPoE.

Before I illustrated my situation to you, I have tried to use "BT client" called Bittorrent S-5.7.3(Shadow's Experimental) to download file from the others. It has no problem for download but the light turns "YELLOW" to indicate that I'm behind firewall.Then I add some rules to my iptables to allow traffic can pass via in my machines in LAN from outside.

The following is my iptables rules.According to my understanding, BT use the ports 6881 to 6889,Then I forward these ports to my machines in LAN.

#! /bin/sh
iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 6881:6889 -j DNAT --to 192.168.1.90:6881-6889
iptables -A FORWARD -p tcp -s 192.168.1.90 --dport 6881:6889 -j ACCEPT

After I have implemented these rules, my light for BT client turns to "GREEN" mean that it's operational.Then I try to make some BT file for someone to download behind firewall, but problem occurs. The light is always "RED" - there are no connections from other clients.

So I would like to know that what happens to my linux firewall and how can I do to achieve my goal that creating BT files behind firewall for others to download ?

The above chain rules already prove that outside traffic can come in to my client machine.

I appreciate if anyone can help me to solve these problems...many thx !!

Tom Cheung
23 Sept 2003

[-- Attachment #2: Type: text/html, Size: 3192 bytes --]

             reply	other threads:[~2003-09-23  9:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-23  9:16 Tom [this message]
2003-09-23  9:46 ` Problem for Bittorrent Application behind Linux Firewall Eric Leblond
2003-10-03 11:03 ` Harald Welte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='049201c381b3$672939f0$5a01a8c0@wireless.cheung.com' \
    --to=gunsuper@atm.cyberec.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox