Hardware node reboot does not retain iptables [message #36175] |
Tue, 26 May 2009 18:32 |
|
I'm sure there's a solution to this, but maybe I've missed something. I have Debian 5.0 Lenny installed on both of my hardware nodes. To cut to the chase, everything works fine; however, subsequently following a reboot the iptables natting is not retained therefore no packets can be passed outside of the VPS. Using the command found in the documentation seems to do the trick: iptables -t nat -A POSTROUTING -s Y.Y.Y.Y/24 -o eth0 -j SNAT --to X.X.X.X. But I was wondering if anyone would have a solution for automating this upon boot?
Edit: The reboot occurs on the hardware node.
[Updated on: Tue, 26 May 2009 18:40] Report message to a moderator
|
|
|
|
|