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

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.