forked from extern/shorewall_code
Allow SNAT using primary IP and ADD_SNAT_ALIASES=Yes
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@305 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
b3cc7636ad
commit
9f691d20e4
@ -2697,6 +2697,10 @@ verify_os_version() {
|
||||
################################################################################
|
||||
add_ip_aliases()
|
||||
{
|
||||
local external
|
||||
local interface
|
||||
local primary
|
||||
|
||||
do_one()
|
||||
{
|
||||
#
|
||||
@ -2732,8 +2736,9 @@ add_ip_aliases()
|
||||
while [ $# -gt 0 ]; do
|
||||
external=$1
|
||||
interface=$2
|
||||
primary=`find_interface_address $interface`
|
||||
shift;shift
|
||||
do_one
|
||||
[ "x${primary}" = "x${external}" ] || do_one
|
||||
done
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user