valdis
> What is the best "sme server" way to achieve this, so that on reboots all is configured correctly
Configure custom templates, see
http://mirror.contribs.org/smeserver/contribs//gordonr/devguide/html/devguide.html#TEMPLATESIn simple terms you create the desired custom template fragment by copying and editing an existing fragment, or making a new one in the ..../templates-custom folder.
Then expand the particular template and the custom template contents will override the standard template and write to the config file.
I believe the template you want for iptables is
/etc/e-smith/templates/etc/rc.d/init.d/masq/....
Make a new one in
/etc/e-smith/templates-custom/etc/rc.d/init.d/masq/fragmentname
Expand with
expand-template /etc/rc.d/init.d/masq
Sorry I can't help you with iptable rules or which fragment to use though.