OpenVZ Forum


Home » General » Support » Hardware node reboot does not retain iptables
Hardware node reboot does not retain iptables [message #36175] Tue, 26 May 2009 18:32 Go to previous message
crunch is currently offline  crunch
Messages: 2
Registered: May 2009
Location: N/A
Junior Member

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

 
Read Message
Read Message
Read Message
Previous Topic: VE and network communications
Next Topic: Clock Drift
Goto Forum:
  


Current Time: Sun Oct 20 21:14:43 GMT 2024

Total time taken to generate the page: 0.05651 seconds