Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

When I execute iptables-save I get output that looks like this:

:INPUT ACCEPT [43:2681]

The last time I worked with these tables I used to see output that looked more like this:

-A INPUT -p tcp --dport 80 -j ACCEPT
-A INPUT -p tcp --dport 443 -j ACCEPT

Some rules are still readable but most are incomprehensible.

How can I revert the output of iptables-save to the familiar syntax?

FWIW: It does work and my rules are being read correctly but I am unable to remove a rule because it says there is no match:

iptables -D INPUT -p tcp --dport 8000 -j ACCEPT

This is the same syntax that I used to add the rule in the first place (with a -A)

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.