Ignore:
Timestamp:
2010-05-19T23:35:23+02:00 (7 years ago)
Author:
jow
Message:

[package] firewall:

  • fix ip6tables rules when icmp_type option is set
  • add "family" option to zones, forwardings, redirects and rules to selectively apply rules to iptables and/or ip6tables
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/firewall/files/lib/core_forwarding.sh

    r21286 r21508  
    88                string src "" \ 
    99                string dest "" \ 
     10                string family "" \ 
    1011        } || return 
    1112        [ -n "$forwarding_name" ] || forwarding_name=$forwarding__name 
     
    2728        } 
    2829 
    29         fw add i f $chain $target ^ 
     30        local mode=$(fw_get_family_mode ${forwarding_family:-x} ${forwarding_dest:-${forwarding_src:--}} i) 
     31 
     32        fw add $mode f $chain $target ^ 
    3033 
    3134        # propagate masq zone flag 
Note: See TracChangeset for help on using the changeset viewer.