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