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.

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

2 Answers 2

Ufw doesn't have a show command try

ufw status 

or

ufw status numbered

Have a look at the ufw man page.

share|improve this answer
1  
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
3  
This is related to your question how ? –  Iain Nov 22 '11 at 23:15
1  
@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
1  
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

 
discard

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.