Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .