Re: pf and bittorrent



Hi,
Thanks for your reply. I'd prefer to use the standard ports, so as to
assure maximum compatibility. I've added the rules, which bittorrent client
do you use is it on a linux box and how is it invoked?
Thanks.
Dave.

"Clever Monkey" <spamtrap@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:Rx4si.20322$13.3835@xxxxxxxxxxxxxxx!nnrp1.uunet.ca...
Dave wrote:
Hello,
I've got an obsd pf gateway. Behind it is a centos5 client that i
want to be able to use bittorrent. I've added rules to my pf.conf
redirecting incoming bittorrent ports 6881 through 6999 to the centos
box, and allowing outgoing traffic, yet i get no downloads, and errors
when trying to connect to the trackerless server or something like that.
Does anyone have this working?

I see you are discussing this else-thread, but for reference, here are the
germane parts of my pf.conf for BitTorrent:

BitTorrent="50001"

# BitTorrent
rdr on $ext_if inet proto { udp, tcp } from any to $ext_if port
$BitTorrent -> ($int_if:network) port $BitTorrent

# Allow BitTorrent traffic, and shortcut the rest of the rules
pass in quick on $ext_if inet proto { tcp, udp } from any to any port
$BitTorrent

I'm not sure if this is ideal or not, but it works. In the past I had to
redirect to specific internal hosts, but the wildcarding seem to work ok.
Note I changed the BitTorrent port to 50001. I found I did not seem to
need a range. I'm probably not letting myself connect to as many peers,
but (as I said) this works Good Enough for me.

--
clvrmnky <mailto:spamtrap@xxxxxxxxxxxxxxxx>

Direct replies will be blacklisted. Replace "spamtrap" with my name to
contact me directly.


.



Relevant Pages

  • Re: Can anyone assist me in setting up a router to run with Bittorrent?
    ... I guess I'm lucky because Bittorrent is so popular. ... Can anyone help me setup my router for running efficiently ... BitTorrent requires certain inbound ports be open so ... Port forwarding allows the ports to be open ...
    (comp.security.firewalls)
  • Re: bittorrent router settings
    ... Netgear router. ... I've never needed to use bittorrent but the occasion arose the other ... from resetting the firewall rules to block always when I'm not using ... your bittorrent client to use a certain port or set of ports rather than ...
    (uk.comp.homebuilt)
  • Re: FC2 BitTorrent URLs
    ... > 120 open ports on my ADSL modem that's the real killer. ... Quoting from the bittorrent FAQ at http://btfaq.com/serve/cache/25.html ... the first client you open will bind to 6881, the next to 6882, etc. ...
    (Fedora)
  • Re: BitTorrent issues with FC4 isos
    ... NMAP your machine from the outside and see if ports ... I've never used BitTorrent before, but I just installed it on my older PC, ... install it to - but it will be interesting to see how long it takes the ...
    (Fedora)
  • Re: FC-1 firewall script for bittorrent
    ... Without unblocking the ports bittorrent will indeed work, ... > occasion got download speeds that have maxed out my DSL connection. ...
    (Fedora)