forked from extern/shorewall_code
Back out IPSEC 2.6 partial
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1376 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
0881af787a
commit
cc57c8493f
@ -1418,20 +1418,9 @@ setup_tunnels() # $1 = name of tunnels file
|
|||||||
|
|
||||||
setup_one_ipsec() # $1 = gateway $2 = Tunnel Kind $3 = gateway zones
|
setup_one_ipsec() # $1 = gateway $2 = Tunnel Kind $3 = gateway zones
|
||||||
{
|
{
|
||||||
local kind=$2 noah= markval=
|
local kind=$2 noah=
|
||||||
|
|
||||||
case $kind in
|
case $kind in
|
||||||
*:*:*)
|
|
||||||
markval=${kind#*}
|
|
||||||
kind=${kind%%:*}
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
case $kind in
|
|
||||||
*:[1-9]*)
|
|
||||||
markval=${kind#*}
|
|
||||||
kind=${kind%:*}
|
|
||||||
;;
|
|
||||||
*:*)
|
*:*)
|
||||||
noah=${kind#*:}
|
noah=${kind#*:}
|
||||||
[ $noah = noah -o $noah = NOAH ] || fatal_error "Invalid IPSEC modifier $noah in tunnel \"$tunnel\""
|
[ $noah = noah -o $noah = NOAH ] || fatal_error "Invalid IPSEC modifier $noah in tunnel \"$tunnel\""
|
||||||
@ -2129,7 +2118,7 @@ setup_tc1() {
|
|||||||
# Link to the TC mangle chains from the main chains
|
# Link to the TC mangle chains from the main chains
|
||||||
#
|
#
|
||||||
|
|
||||||
run_iptables -t mangle -A FORWARD -m mark --mark 0 -j tcfor
|
run_iptables -t mangle -A FORWARD -j tcfor
|
||||||
run_iptables -t mangle -A PREROUTING -j tcpre
|
run_iptables -t mangle -A PREROUTING -j tcpre
|
||||||
run_iptables -t mangle -A OUTPUT -j tcout
|
run_iptables -t mangle -A OUTPUT -j tcout
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user