mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Log actual interface rather than CARP interface
This commit is contained in:
parent
7bc4057d5c
commit
12df13d44d
@ -277,7 +277,7 @@ function vpn_ipsec_configure($ipchg = false) {
|
||||
/* if the remote gateway is in the local subnet, then don't add a route */
|
||||
if(! ip_in_subnet($tunnel['remote-gateway'], "{$subnet_ip}/{$subnet_bits}")) {
|
||||
if(is_ipaddr($gatewayip)) {
|
||||
log_error("IPSEC interface is not WAN but {$tunnel['interface']}, adding static route for VPN endpoint {$tunnel['remote-gateway']} via {$gatewayip}");
|
||||
log_error("IPSEC interface is not WAN but {$parentinterface}, adding static route for VPN endpoint {$tunnel['remote-gateway']} via {$gatewayip}");
|
||||
mwexec("/sbin/route delete -host {$tunnel['remote-gateway']}");
|
||||
mwexec("/sbin/route add -host {$tunnel['remote-gateway']} {$gatewayip}");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user