#!v0.1 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; This is an ARSE (Automatic Router Scripting Engine) script ; [For Viking I chipset] ; ; for more details see here.. ; http://corz.org/windows/software/accessories/Automatic-Router-Scripting-Engine/ ; ; for BitTorrent running on a peecee at 192.168.1.3 ; essential tweaks.. nbsize maxipsess 511 ; tweak the NAT / timeout settings ; you may want to play with these, still.. modify nat global tcpidletimeout 3600 tcpclosewait 30 tcptimeout 30 udptimeout 45 enable ; BitTorrent (we don't use "default" ports - you will probably want to alter these) create ipf rule entry ruleid 49200 ifname public dir in act accept transprot eq num 6 destport range 49200 49209 seclevel high medium low create ipf rule entry ruleid 49201 ifname public dir in act accept transprot eq num 17 destport range 49200 49209 seclevel high medium low ; NAT rule create nat rule entry ruleid 49200 rdr lcladdrfrom 192.168.1.3 lcladdrto 192.168.1.3 destportfrom num 49200 destportto num 49209 ; don't forget to set the same ports in your BitTorrent client (Azureus) ; if you use a lesser client, you will need more complex rules. ; So, get Azzy! # one rule to NAT them all.. create nat rule entry ruleid 100000 napt # make the changes permanent.. commit