I was using Slackware for a couple of years. As far as I remember you could write script for iptables or use something like shorewall .... Then include the full path to the script in rc.local file.