Ignore:
Timestamp:
2011-06-30T03:36:09+02:00 (5 years ago)
Author:
jow
Message:

[package] firewall: restore local port relocation ability from r26617

File:
1 edited

Legend:

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

    r27317 r27318  
    3535                } 
    3636 
    37                 fwdchain="zone_${redirect_src}_forward" 
     37                fwdchain="zone_${redirect_src}${redirect_dest_ip:+_forward}" 
    3838 
    3939                natopt="--to-destination" 
     
    105105                        } 
    106106 
    107                         [ -n "$destaddr" ] && \ 
    108107                        fw add $mode f ${fwdchain:-forward} ACCEPT + \ 
    109108                                { $redirect_src_ip $redirect_dest_ip } { \ 
    110                                 $srcaddr $destaddr $redirect_proto \ 
     109                                $srcaddr ${destaddr:--m conntrack --ctstate DNAT} \ 
     110                                $redirect_proto \ 
    111111                                $srcports $destports \ 
    112112                                $redirect_src_mac \ 
Note: See TracChangeset for help on using the changeset viewer.