From cbe12b8de3fa374e535d4478ab84a4a2c5f6e725 Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 24 Oct 2013 16:32:12 -0400 Subject: Add source address selection to syslog settings, so it can work more effectively over a VPN. Fixes #355 --- usr/local/www/diag_logs_settings.php | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'usr') diff --git a/usr/local/www/diag_logs_settings.php b/usr/local/www/diag_logs_settings.php index 8e7513c..9c84f84 100755 --- a/usr/local/www/diag_logs_settings.php +++ b/usr/local/www/diag_logs_settings.php @@ -52,6 +52,8 @@ $pconfig['nentries'] = $config['syslog']['nentries']; $pconfig['remoteserver'] = $config['syslog']['remoteserver']; $pconfig['remoteserver2'] = $config['syslog']['remoteserver2']; $pconfig['remoteserver3'] = $config['syslog']['remoteserver3']; +$pconfig['sourceip'] = $config['syslog']['sourceip']; +$pconfig['ipproto'] = $config['syslog']['ipproto']; $pconfig['filter'] = isset($config['syslog']['filter']); $pconfig['dhcp'] = isset($config['syslog']['dhcp']); $pconfig['portalauth'] = isset($config['syslog']['portalauth']); @@ -106,6 +108,8 @@ if ($_POST) { $config['syslog']['remoteserver'] = $_POST['remoteserver']; $config['syslog']['remoteserver2'] = $_POST['remoteserver2']; $config['syslog']['remoteserver3'] = $_POST['remoteserver3']; + $config['syslog']['sourceip'] = $_POST['sourceip']; + $config['syslog']['ipproto'] = $_POST['ipproto']; $config['syslog']['filter'] = $_POST['filter'] ? true : false; $config['syslog']['dhcp'] = $_POST['dhcp'] ? true : false; $config['syslog']['portalauth'] = $_POST['portalauth'] ? true : false; @@ -325,6 +329,40 @@ function check_everything() { + + + +
+ + +

+ + + + + + + +
+ + + + onClick="enable_change(false)"> -- cgit v1.1