#!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 WinMX 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 # WinMX firewall rules.. create ipf rule entry ruleid 6257 ifname public dir in act accept transprot eq num 17 destport eq num 6257 seclevel high medium low create ipf rule entry ruleid 6699 ifname public dir in act accept transprot eq num 6 destport eq num 6699 seclevel high medium low # NAT.. create nat rule entry ruleid 6257 rdr lcladdrfrom 192.168.1.3 lcladdrto 192.168.1.3 destportfrom num 6257 destportto num 6257 create nat rule entry ruleid 6699 rdr lcladdrfrom 192.168.1.3 lcladdrto 192.168.1.3 destportfrom num 6699 destportto num 6699 # one rule to NAT them all.. create nat rule entry ruleid 100000 napt # make the changes permanent.. commit