Koozali.org: home of the SME Server

Best way to save an iptables addition..

nick

Best way to save an iptables addition..
« on: May 03, 2006, 12:26:05 PM »
I have to do some port forwarding to an internal machine, but I wanted it to be a bit more restrictive than the port forwarding in the control panel allows, in fact I've modified the rules to allow access from only two addresses..

My question is the best way to save it, I've noticed a few people saying that I should create my own rule under templates-custom/etc/rc.d/init.d/masq/

should I do a 90ForwardedTCP80addition(or sth similar), or is there another, more elegant/correct way to do it?

also, the name of the ForwardedTCP chain changes, what would be the correct syntax for obtaining it, $NEW_ForwardedTCP?

nick

Best way to save an iptables addition..
« Reply #1 on: May 05, 2006, 12:13:51 PM »
I really need to find out how to do this, and no, I can't read the documentation. I can't see ibiblio, and I have no idea why.