Changeset 22227


Ignore:
Timestamp:
2010-07-16T08:03:15+02:00 (6 years ago)
Author:
jow
Message:

[package] firewall: allow redirecting only destination port (#7197)

Location:
trunk/package/firewall
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/firewall/Makefile

    r22215 r22227  
    1010 
    1111PKG_VERSION:=2 
    12 PKG_RELEASE:=7 
     12PKG_RELEASE:=8 
    1313 
    1414include $(INCLUDE_DIR)/package.mk 
  • trunk/package/firewall/files/lib/core_redirect.sh

    r22215 r22227  
    2727        fw_callback pre redirect 
    2828 
    29         [ -n "$redirect_src" -a -n "$redirect_dest_ip" ] || { 
    30                 fw_die "redirect ${redirect_name}: needs src and dest_ip" 
     29        [ -n "$redirect_src" -a -n "$redirect_dest_ip$redirect_dest_port" ] || { 
     30                fw_die "redirect ${redirect_name}: needs src and dest_ip or dest_port" 
    3131        } 
    3232 
     
    5454                } 
    5555 
     56                [ -n "$redirect_dest_ip" ] && \ 
    5657                fw add $mode f zone_${redirect_src}_forward ACCEPT ^ { $redirect_src_ip $redirect_dest_ip } { \ 
    5758                        -d $redirect_dest_ip \ 
Note: See TracChangeset for help on using the changeset viewer.