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 192.168.15.0 - 192.168.15.255?

sudo ufw allow from 192.168.15.0/255
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.

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: faqs.org/docs/iptables
–
pyloverJan 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 PerrinAug 5 '14 at 18:43