I am hoping someone can help me with what is hopefully a very silly error on my part. I've had to swap from Gargoyle as my wireless performance was terrible and I was only getting 50% of my max connection speed on a wired connection. In gargoyle I was able to simply set up a rule to block outoging dns requests for a range of ip addresses (i.e. force them to use the routers dns server). I cant seem to get the syntax correct in the firewall rules in openwrt. I have the following section in the firewall config file

config rule
    option src 'lan'
    option dest 'wan'
    option name 'BlockDNS'
    option extra '-m iprange --src-range 192.168.xx.3-192.168.xx.16'
    option src_port '53'
    option dest_port '53'
    option target 'DROP'

But when I restart the firewall from a terminal prompt I get the following error message -

(null) v6: iprange: Bad value for "--src-range" option: "192.168.xx.3"

(Just to confirm - the xx is replaced with the subnet of my router in the config file)

Can anyone point out my mistake?
Thanks
Roger.

(Last edited by rwbarrett on 8 Jun 2014, 13:31)