Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On a standard Ubuntu server have I done

vi /etc/sysctl.conf did I enable

net.ipv4.ip_forward=1

then executed

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

and then

iptables-save

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.

add comment

1 Answer

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

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