diff options
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | scripts/vyatta-wlb-connection | 4 | ||||
-rw-r--r-- | templates/show/wan-load-balance/connection/node.def | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index aeef63a..f0d9b3b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,6 +13,7 @@ sbin_SCRIPTS = scripts/vyatta-wanloadbalance.pl sbin_SCRIPTS += scripts/vyatta-wanloadbalance.init bin_sudo_users_SCRIPTS = scripts/vyatta-wlb-status +bin_sudo_users_SCRIPTS += scripts/vyatta-wlb-connection curver_DATA = cfg-version/wanloadbalance@1 diff --git a/scripts/vyatta-wlb-connection b/scripts/vyatta-wlb-connection new file mode 100644 index 0000000..40060ae --- /dev/null +++ b/scripts/vyatta-wlb-connection @@ -0,0 +1,4 @@ +#!/bin/sh + +cat /proc/net/ip_conntrack | grep ' mark=[1-9]' + diff --git a/templates/show/wan-load-balance/connection/node.def b/templates/show/wan-load-balance/connection/node.def index 84de67c..d76fb51 100644 --- a/templates/show/wan-load-balance/connection/node.def +++ b/templates/show/wan-load-balance/connection/node.def @@ -1,6 +1,6 @@ help: Show Wide Area Network (WAN) load-balancing flow run: if [ -f /var/load-balance/wlb.out ] ; then - sudo cat /proc/net/ip_conntrack | grep ' mark=[1-9]' + sudo ${vyatta_bindir}/sudo-users/vyatta-wlb-connection else echo WAN load balancing is not configured fi |