]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ipsec-interfaces: Don't throw away errors when creating routes
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 10 May 2024 12:02:26 +0000 (12:02 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 19 May 2024 07:59:59 +0000 (09:59 +0200)
This partly reverts 87a97a431915849cf6d19e1b7137b4fb0b6dd91d.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/scripts/ipsec-interfaces

index 974d3ac8457c0c38e211f69b2c9aa51c8116a721..b05b2009c4f866b128df551eb3abef852f095850 100644 (file)
@@ -115,7 +115,7 @@ main() {
        # We are done when IPsec is not enabled
        if [ "${ENABLED}" = "on" ]; then
                # Enable route table lookup
-               ip rule add lookup "${ROUTE_TABLE}" prio "${ROUTE_TABLE_PRIO}" >/dev/null 2>&1
+               ip rule add lookup "${ROUTE_TABLE}" prio "${ROUTE_TABLE_PRIO}"
 
                while IFS="," read -r "${VARS[@]}"; do
                        # Check if the connection is enabled
@@ -158,7 +158,7 @@ main() {
 
                                                log "Creating route to ${rightsubnet} (via ${address} and ${RED_INTF})"
                                                ip route add table "${ROUTE_TABLE}" "${rightsubnet}" proto static \
-                                                       dev "${RED_INTF}" src "${address}" >/dev/null 2>&1
+                                                       dev "${RED_INTF}" src "${address}"
                                        done
 
                                        # No interface processing required