summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/interfaces.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-12-27 16:54:40 +0545
committerRenato Botelho <renato@netgate.com>2016-12-27 17:34:26 -0200
commit25e5d826704b25d59eb3fcbb05792564687ac942 (patch)
tree57d4d1190b6f91d9500eb2f104c238c03b4c5bd6 /src/usr/local/www/interfaces.php
parent639cfc1b2fc5e791568163b37511831bae701e5d (diff)
downloadpfsense-25e5d826704b25d59eb3fcbb05792564687ac942.zip
pfsense-25e5d826704b25d59eb3fcbb05792564687ac942.tar.gz
Fix #3560 correctly handle disabled static routes
1) util.inc - add parameter to get_staticroutes() so the caller can choose to see all static routes or only the ones that are currently enabled. 2) filter.inc - just process enabled static routes when making direct networks list, tonathosts etc. 3) services.inc - only include enabled static routes when making confogs for DHCP(6) Relay. 4) unbound.inc - only include enable static routes in unbound_acls_config 5) rc.newroutedns - only trigger if there is an enabled static route. Note: GUI validation has been left as-is. e.g. in system_gateways we don not allow to delete a gateway if there is a disabled static route using it... If people want to delete "higher level" stuff, then they need to first delete the disabled static route(s). Otherwise it will get rather "risky" having disabled static routes in the config that refer to gateways that no longer exist, or have a subnet range that now matches a local interafce or... (cherry picked from commit cf08b49e20810a0aa953561892b1d5bee353957e)
Diffstat (limited to 'src/usr/local/www/interfaces.php')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud