diff options
author | Ermal <eri@pfsense.org> | 2012-10-30 22:06:45 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-10-30 22:06:45 +0000 |
commit | e08a5153f9a281fdbb3a0cb66fddfea4b23a19a6 (patch) | |
tree | 52bb7651c5b134d6f94af0de2ac7b7597a2a74f1 /etc/inc/vpn.inc | |
parent | d8bddd2a44ce5776d2dfd3c4db79576e073f5aa0 (diff) | |
download | pfsense-e08a5153f9a281fdbb3a0cb66fddfea4b23a19a6.zip pfsense-e08a5153f9a281fdbb3a0cb66fddfea4b23a19a6.tar.gz |
Fixes #2300. Add static route even for ip aliases selected to avoid issues.
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r-- | etc/inc/vpn.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index b83edc8..7981a64 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -935,7 +935,10 @@ EOD; /* static route needed? */ if (preg_match("/^carp|^[a-z0-9]+_vip/i", $ph1ent['interface'])) $parentinterface = link_carp_interface_to_parent($ph1ent['interface']); - else + else if (is_ipaddr($ph1ent['interface'])) { + $vip = find_virtual_ip_alias($ph1ent['interface']); + $parentinterface = $vip['interface']; + } else $parentinterface = $ph1ent['interface']; if (is_ipaddr($rgip)) { |