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

I want to allow all LAN traffic to my Ubuntu server. I have read the documentation and see the command, but when I try to edit the command for my IP range I get an error. How can I allow all traffic starting at -

sudo ufw allow from ERROR: Bad source address

It seems like the 15 (third octal) is causing the error. Almost like UFW does not expect a LAN to have a unique IP set.

Thank you

share|improve this question
good question, but ufw is a simple interface above the iptables, you may able to do more control over packets via iptables. i prefer you to read this nice article about iptables: – pylover Jan 7 '13 at 23:50
@pylover This is not helpful for this question. UFW is useful to simplifiy iptable tasks and what he wants to do is possible with it. – Christopher Perrin Aug 5 '14 at 18:43
up vote 6 down vote accepted
sudo ufw allow from
share|improve this answer
Does 0/24 include IPs such as – Christopher Altman Oct 13 '09 at 16:16
Yes. includes adresses from to – Roy Oct 13 '09 at 16:41
Thank you, now the documentation makes more sense. – Christopher Altman Oct 14 '09 at 1:33

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.