Skip to content
  1. Dec 15, 2015
  2. Oct 28, 2015
    • Hannu Nyman's avatar
      luci-app-firewall: limit zone name length to 11 characters · 87b6bb0d
      Hannu Nyman authored
      
      
      Change the maximum length of a firewall zone name from 14 to 11 characters.
      
      Longer names break iptables rule generation (max. 29 chars are allowed).
      
      XT_EXTENSION_MAXNAMELEN = 29
      29 - sizeof("postrouting_") - sizeof("_rule") - sizeof("\0") = 11
      
      References to:
      https://github.com/openwrt/luci/issues/507
      https://dev.openwrt.org/ticket/20380
      
      Signed-off-by: default avatarHannu Nyman <hannu.nyman@iki.fi>
      87b6bb0d
  3. Sep 17, 2015
  4. Aug 26, 2015
    • Hannu Nyman's avatar
      firewall: validate max length of zone name · 34e875b3
      Hannu Nyman authored
      
      
      fw3 sets the maximum length of the zone name to 14 and
      ignores zone definitions with too long names.
      http://nbd.name/gitweb.cgi?p=firewall3.git;a=blob;f=zones.h;hb=HEAD#l25
      http://nbd.name/gitweb.cgi?p=firewall3.git;a=blob;f=zones.c;hb=HEAD#l195
      
      Add a simple validation to ensure that the new zone name is short enough.
      This should fix issue #345
      
      Signed-off-by: default avatarHannu Nyman <hannu.nyman@iki.fi>
      34e875b3
  5. Apr 21, 2015
  6. Jan 26, 2015
  7. Jan 16, 2015
  8. Jan 08, 2015