diff options
-rw-r--r-- | etc/inc/system.inc | 2 | ||||
-rw-r--r-- | etc/inc/vpn.inc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index c5329f2..d5ff189 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -255,7 +255,7 @@ function system_routing_configure() { if(isset($config['staticroutes']['enablefastrouting'])) mwexec("/sbin/sysctl net.inet.ip.fastforwarding=1"); - $route_str = exec_command("/usr/bin/netstat -rn"); + $route_str = exec_command("/usr/bin/netstat -rnf inet"); /* clear out old routes, if necessary */ if (file_exists("{$g['vardb_path']}/routes.db")) { diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index f099f93..26631d7 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -153,7 +153,7 @@ function vpn_ipsec_configure($ipchg = false) mwexec("/sbin/sysctl net.inet.ip.fastforwarding=0"); /* this loads a route table which is used to determine if a route needs to be removed. */ - exec("/usr/bin/netstat -rn", $route_arr, $retval); + exec("/usr/bin/netstat -rnf inet", $route_arr, $retval); $route_str = implode("\n", $route_arr); /* resolve all local, peer addresses and setup pings */ |