But the sme server does not have a bridge mode option or a dmz option, and the standard Centos way of storing firewall config, etc will not work, I think.
Syncmaster says that the server runs in gateway mode here: "Yes, you are correct - INPUT should be FORWARD" (Only gateway mode will use forward chain.)
The procedure I suggested should as the short form be decribed as this:
1. Set up a standard forwarding using the server-manager panel.
2. Set an aditional filter as the new first rule: "iptables -I FORWARD -i eth1 -m state --state new -s ! 80.90.89.90 -j DROP"
The position at the top of the rule stack will be the critical parameter. If doint it the standard sme server way by modifying teplate with -A, appending new rules will not work at all, as this will apply the new rule at the bottom at the rule stack where it will have no effect.
(I would believe that to use -I in the template setup in some way would breake the logic of the sme server firewall configuration, but I have never tried it. It could be tried, but it is difficult to know if there should be some side effects as the use of -I as an replacement for -A could change some basic things)
If the situation is rather static, you have a portforwarding or two, and nothing is changed, the new rule should keep its position at the top of the rule stack when applied as suggested. If the firewall is restarted the rule is lost until it applied again, this is true.
I belive the applying the extra filter from /etc/rc.d/rc.local will work as long as things (forwardings and etc) are static and as long as it will keep its position at the top of the rule stack. (While standard sme server procedure will locate it on the bottom (?!) So it is not very secure, but most of the time I will guess it will do its job to restrict the source ip's that can be forwarded. If it does not work, the sme server will just work like normal.
Things will have to be tested and then it will show. I would not have inserted firewall rules at the top of the rule stack using the template system, I would expect it to give problems, but I might quite surely be wrong as I have not tested it.
(-A append, the rule will be at the bottom. -I insert, the rule will be at the top. The sequence of the rules is ratehr critical and in this case the rule will have to be inserted at the top to do the "add on filtering" before the other rules. If applied at standard possition, at the bottom, and after the other rules, it will have no effect.)