Changeset 36554


Ignore:
Timestamp:
2013-05-06T12:01:45+02:00 (5 years ago)
Author:
jow
Message:

ipset-dns: support simultaneously populating IPv4 and IPv6 sets

Location:
trunk/package/network/services/ipset-dns
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/services/ipset-dns/files/ipset-dns.config

    r36552 r36554  
    11# declare an ipset-dns listener instance, multiple allowed 
    22config ipset-dns 
    3         # use given ipset 
    4         option ipset 'domain-filter' 
     3        # use given ipset for type A (IPv4) responses 
     4        option ipset 'domain-filter-ipv4' 
     5 
     6        # use given ipset for type AAAA (IPv6) responses 
     7        option ipset6 'domain-filter-ipv6' 
    58 
    69        # use given listening port 
  • trunk/package/network/services/ipset-dns/files/ipset-dns.init

    r36552 r36554  
    2222start_instance() { 
    2323        local cfg="$1" 
    24         local ipset port dns 
     24        local ipset ipset6 port dns 
    2525 
    2626        config_get ipset "$cfg" ipset 
    27         [ -n "$ipset" ] || { 
     27        config_get ipset6 "$cfg" ipset6 
     28        [ -n "$ipset$ipset6" ] || { 
    2829                echo "No ipset specified for instance $cfg" >&2 
    2930                return 1 
     
    3940 
    4041        SERVICE_PID_FILE="/var/run/ipset-dns-$port.pid" \ 
    41                 service_start /usr/sbin/ipset-dns "$ipset" "$port" "$dns" 
     42                service_start /usr/sbin/ipset-dns "$ipset" "$ipset6" "$port" "$dns" 
    4243} 
    4344 
Note: See TracChangeset for help on using the changeset viewer.