aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Freebsd (ipfw) and aMule  (Read 2659 times)

livebrain

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 41
Freebsd (ipfw) and aMule
« on: April 01, 2006, 05:57:36 PM »

those are my fw rules:

vr0 = external ip
rl0 & dc0 = lan
#************************************************************************
ipfw -q -f flush

cmd="ipfw add"
ports="20,21,22,80,901,443,6667"

$cmd 1 allow all from any to any via dc0
$cmd 2 allow all from any to any via rl0
$cmd 3 allow all from any to any via lo0

$cmd 5 divert natd all from any to any in via vr0
$cmd 10 check-state

# ISP domain name server  -=[ N E T C A B O ]=-
$cmd 15 skipto 500 all from any to 212.213.164.28 out keep-state
$cmd 16 skipto 500 all from any to 212.113.164.28 out keep-state
$cmd 17 skipto 500 all from any to 212.113.164.26 out keep-state
$cmd 18 skipto 500 all from any to 212.113.164.27 out keep-state
$cmd 19 skipto 500 all from any to 212.113.164.25 out keep-state

$cmd 100 skipto 500 icmp from any to any out via vr0 keep-state
$cmd 101 skipto 500 tcp from any to any $ports out setup keep-state

$cmd 450 den all from any to any

$cmd 500 divert natd all from any to any out via vr0
$cmd 510 allow all from any to any
#****************************************************************************

i tried:
ipfw add 200 allow tcp from any to me 4662
ipfw add 201 allow udp from any to me 4672
ipfw add 202 allow udp from any to me 4665

can anyone tellme what rules should i put in my fw in order to give full acesso to amule ?



UPS: i posted in the wrong section  :]
« Last Edit: April 02, 2006, 06:48:27 AM by livebrain »
Logged