WebUIからだとAdministration開いてfirewall scriptに保存すればおk
sshからやるならnvramのrc_firewallにスクリプトをぶち込む

詳しくは↓
ttp://www.dd-wrt.com/wiki/index.php/Startup_Scripts