Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Change port UDP 514 for remote syslog

    Scheduled Pinned Locked Moved webGUI
    1 Posts 1 Posters 2.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      javcasta
      last edited by

      Hello.
      I was reading this post:

      http://forum.pfsense.org/index.php?topic=47086.0;prev_next=prev

      jimp said it:

      That should be as easy as putting something like "192.168.x.x:2000" in the server box, but it looks like our input validation doesn't allow that. Would be easy to disable that input validation in /usr/local/www/diag_logs_settings.php and try that out.

      I try it:

      Diagnostics > edit file > /usr/local/www/diag_logs_settings.php

      And in this "if",

      if (!$input_errors) {
      		$config['syslog']['reverse'] = $_POST['reverse'] ? true : false;
      		$config['syslog']['nentries'] = (int)$_POST['nentries'];
                      /* add by javcasta 24-2-2013  http://javcasta.com */
      		$config['syslog']['remoteserver'] = $_POST['remoteserver'].':594';
      		$config['syslog']['remoteserver2'] = $_POST['remoteserver2'];
      		$config['syslog']['remoteserver3'] = $_POST['remoteserver3'];
      		$config['syslog']['filter'] = $_POST['filter'] ? true : false;
      		$config['syslog']['dhcp'] = $_POST['dhcp'] ? true : false;
      		$config['syslog']['portalauth'] = $_POST['portalauth'] ? true : false;
      		$config['syslog']['vpn'] = $_POST['vpn'] ? true : false;
      		$config['syslog']['apinger'] = $_POST['apinger'] ? true : false;
      		$config['syslog']['relayd'] = $_POST['relayd'] ? true : false;
      		$config['syslog']['hostapd'] = $_POST['hostapd'] ? true : false;
                      $config['syslog']['logall'] = $_POST['logall'] ? true : false;
      		$config['syslog']['system'] = $_POST['system'] ? true : false;
      		$config['syslog']['disablelocallogging'] = $_POST['disablelocallogging'] ? true : false;
      		$config['syslog']['enable'] = $_POST['enable'] ? true : false;
      		$oldnologdefaultblock = isset($config['syslog']['nologdefaultblock']);
      		$config['syslog']['nologdefaultblock'] = $_POST['logdefaultblock'] ? false : true;
      		$config['syslog']['rawfilter'] = $_POST['rawfilter'] ? true : false;
      		if($config['syslog']['enable'] == false) {
      			unset($config['syslog']['remoteserver']);
      			unset($config['syslog']['remoteserver2']);
      			unset($config['syslog']['remoteserver3']);
      		}
      

      I change the line

      $config['syslog']['remoteserver'] = $_POST['remoteserver'];
      

      adding another port (default is 514 in remote rsyslog server)

      $config['syslog']['remoteserver'] = $_POST['remoteserver'].':594';
      

      And work fine!. :-)

      Javier Castañón
      Técnico de comunicaciones, soporte y sistemas.

      Mi web: https://javcasta.com/

      Soporte scripting/pfSense https://javcasta.com/soporte/

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.