Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

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.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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