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

This is what I get when I try to see the current iptables configuration:

nes@sw-eng:~$ sudo ufw show
ERROR: Unsupported action 'show'

So, what else is there?

share|improve this question
You could always just iptables -nL – Zoredache Nov 22 '11 at 23:23

Ufw doesn't have a show command try

ufw status 


ufw status numbered

Have a look at the ufw man page.

share|improve this answer
That isn't very revealing when the firewall is still off. nes@sw-eng:~$ sudo ufw status Status: inactive – Niko Schwarz Nov 22 '11 at 23:13
This is related to your question how ? – Iain Nov 22 '11 at 23:15
@NikoSchwarz Sure it is, it's telling you exactly what the firewall is doing; that's what you asked it. – Chris S Nov 23 '11 at 0:38
I'd like to see the rules that would be active if I switched the firewall on. – Niko Schwarz Nov 23 '11 at 10:43
That really is a different question to the one you asked, ufw show raw may be what you want then. – Iain Nov 23 '11 at 11:01

Try sudo ufw status

The Ubuntu community documentation has a page dedicated to UFW.

share|improve this answer

Your Answer


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

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