#!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 mohaa on a peecee at 192.168.1.3 ; essential tweaks.. nbsize maxipsess 511 ; tweak the NAT / timeout settings ; you may need to play with these.. modify nat global tcpidletimeout 3600 tcpclosewait 30 tcptimeout 19 udptimeout 9 enable ; the mohaa UDP firewall rule.. create ipf rule entry ruleid 12201 ifname public dir in act accept transprot eq udp destport range 12201 12300 seclevel high medium low ; NAT rule.. create nat rule entry ruleid 12201 rdr lcladdrfrom 192.168.1.3 lcladdrto 192.168.1.3 destportfrom num 12201 destportto num 12300 # one rule to NAT them all.. create nat rule entry ruleid 100000 napt # make the changes permanent.. commit