Server Fault is a question and answer site for system and network administrators. 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

On a standard Ubuntu server have I done

vi /etc/sysctl.conf did I enable


then executed

iptables -t nat -A POSTROUTING -j MASQUERADE
sysctl -p /etc/sysctl.conf

and then


but what I wanted to do was

iptables-save > /etc/iptables.up.rules

Question I assume iptables-save have overridden the default iptables rules, which was not what I wanted.

How do I undo that?

share|improve this question

closed as off-topic by Magellan, Tim Howland, Scott Pack, Falcon Momot, mdpc Oct 11 '13 at 15:25

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – Magellan, Tim Howland, Scott Pack, Falcon Momot, mdpc
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 5 down vote accepted

iptables-save just outputs your iptables rules into a savable format. If you didn't redirect the output into a file nothing should have changed.

share|improve this answer

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