Changeset 27469


Ignore:
Timestamp:
2011-07-06T08:26:12+02:00 (7 years ago)
Author:
cshore
Message:

[package] firewall: fix udp rules for tcpudp proto rules using src_port and dest_port after modification by the parsing of the tcp rule

File:
1 edited

Legend:

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

    r27317 r27469  
    6666        fw_get_negation dest_spec '-d' "${rule_dest_ip:+$rule_dest_ip/$rule_dest_ip_prefixlen}" 
    6767 
     68        local rule_src_port_copy 
     69        local rule_dest_port_copy 
     70 
    6871        [ "$rule_proto" == "tcpudp" ] && rule_proto="tcp udp" 
     72        rule_src_port_copy="$rule_src_port" 
     73        rule_dest_port_copy="$rule_dest_port" 
    6974        for rule_proto in $rule_proto; do 
     75                rule_src_port="$rule_src_port_copy" 
     76                rule_dest_port="$rule_dest_port_copy" 
    7077                fw_get_negation rule_proto '-p' "$rule_proto" 
    7178                for rule_src_port in ${rule_src_port:-""}; do 
Note: See TracChangeset for help on using the changeset viewer.