mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-25 04:01:45 +02:00
Add NAT support with remote IPSEC zone; add UDP 4500 to ipsecnat support
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@398 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
feb0752113
commit
bdcf22b4f8
@ -1367,12 +1367,18 @@ setup_tunnels() # $1 = name of tunnels file
|
|||||||
run_iptables -A $inchain -p udp -s $1 --sport 500 --dport 500 $options
|
run_iptables -A $inchain -p udp -s $1 --sport 500 --dport 500 $options
|
||||||
else
|
else
|
||||||
run_iptables -A $inchain -p udp -s $1 --dport 500 $options
|
run_iptables -A $inchain -p udp -s $1 --dport 500 $options
|
||||||
|
run_iptables -A $inchain -p udp -s $1 --dport 4500 $options
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for z in `separate_list $3`; do
|
for z in `separate_list $3`; do
|
||||||
if validate_zone $z; then
|
if validate_zone $z; then
|
||||||
addrule ${FW}2${z} -p udp --sport 500 --dport 500 $options
|
addrule ${FW}2${z} -p udp --sport 500 --dport 500 $options
|
||||||
|
if [ $2 = ipsec ]; then
|
||||||
addrule ${z}2${FW} -p udp --sport 500 --dport 500 $options
|
addrule ${z}2${FW} -p udp --sport 500 --dport 500 $options
|
||||||
|
else
|
||||||
|
addrule ${z}2${FW} -p udp --dport 500 $options
|
||||||
|
addrule ${z}2${FW} -p udp --dport 4500 $options
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
error_message "Warning: Invalid gateway zone ($z)" \
|
error_message "Warning: Invalid gateway zone ($z)" \
|
||||||
" -- Tunnel \"$tunnel\" may encounter keying problems"
|
" -- Tunnel \"$tunnel\" may encounter keying problems"
|
||||||
@ -4495,7 +4501,6 @@ do_initialize() {
|
|||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
FUNCTIONS=$SHARED_DIR/functions
|
FUNCTIONS=$SHARED_DIR/functions
|
||||||
|
|
||||||
if [ -f $FUNCTIONS ]; then
|
if [ -f $FUNCTIONS ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user