]> git.ipfire.org Git - people/ms/network.git/commitdiff
ipsec: GRE: Use outer IP addresses for peering
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Aug 2017 19:10:23 +0000 (19:10 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Aug 2017 19:10:23 +0000 (19:10 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/helpers/ipsec-updown

index eb5fc210062feb09830666c140d7a0e91bc7a0eb..4ef3e88f429862ba72fc8ca282d9a4fa6a121e9e 100644 (file)
@@ -48,8 +48,8 @@ case "${PLUTO_VERB}" in
                                if ! device_exists "${INTERFACE}"; then
                                        ip_tunnel_add "${INTERFACE}" \
                                                --mode="gre" \
-                                               --local-address="${TUNNEL_ADDRESS}" \
-                                               --remote-address="${TUNNEL_PEER}"
+                                               --local-address="${PLUTO_ME}" \
+                                               --remote-address="${PLUTO_PEER}"
 
                                        device_set_up "${INTERFACE}"
                                fi
@@ -78,7 +78,7 @@ case "${PLUTO_VERB}" in
 
        down-client|down-client-v6|down-host|down-host-v6)
                case "${MODE}" in
-                       vti)
+                       gre-*|vti)
                                if device_exists "${INTERFACE}"; then
                                        device_set_down "${INTERFACE}"