I've set up iptables to forward from port 80 to port 8090:

iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8090

However the redirect is gone after rebooting. What's the canonical SuSE place to save iptables configs and where's the place to configure them to be reloaded on reboot?

link|improve this question

50% accept rate
feedback

1 Answer

Tables are flushed after each reboot but there are ways to save the config and load it again at startup.

iptables-save > /path/to/file

To load the config you simply use:

iptables-restore < /path/to/file

The best way to load this is to put the restore command in the interface config; that way it will only load when your interface goes up.

link|improve this answer
See edit, I was after a more detailed SuSE-specific answer. – Robert Atkins Jun 16 '11 at 9:35
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.