Re: pf and bittorrent
- From: Clever Monkey <spamtrap@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 01 Aug 2007 14:46:09 -0400
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.
.
- Follow-Ups:
- Re: pf and bittorrent
- From: Dave
- Re: pf and bittorrent
- References:
- pf and bittorrent
- From: Dave
- pf and bittorrent
- Prev by Date: Re: pf and bittorrent
- Next by Date: Intel Desktop Board D201GLY
- Previous by thread: Re: pf and bittorrent
- Next by thread: Re: pf and bittorrent
- Index(es):
Relevant Pages
|