[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bittorrent and pf.conf rules



anybody have any sample pf.conf rules for a workstation using bittorrent?

The workstation is natted behind an openbsd 3.3 gateway.

So far my rules look like this, i not sure if this is okay:

set block-policy return

scrub in all

altq on fxp0 priq bandwidth 98% queue { q_pri, q_def }
queue q_pri priority 7
queue q_def priority 1 priq(default)

nat on fxp0 from fxp1:network to any -> (fxp0)
rdr on fxp0 inet proto tcp from any to (fxp0) -> 10.1.1.4
rdr on fxp0 inet proto udp from any to (fxp0) -> 10.1.1.4

pass in on fxp0 inet proto tcp from any to (fxp0) port { 22, 88, 6881><6889 
} ke
ep state flags S/SAFR
pass in on fxp0 inet proto udp from any to 10.1.1.4 keep state
pass out all keep state

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus